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 | | #include "common/compile_check_begin.h" |
50 | | |
51 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
52 | | |
53 | | void warn_with_bitshuffle_error(int64_t val); |
54 | | |
55 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
56 | | // size type blocks with lz4. |
57 | | // |
58 | | // The page format is as follows: |
59 | | // |
60 | | // 1. Header: (16 bytes total) |
61 | | // |
62 | | // <num_elements> [32-bit] |
63 | | // The number of elements encoded in the page. |
64 | | // |
65 | | // <compressed_size> [32-bit] |
66 | | // The post-compression size of the page, including this header. |
67 | | // |
68 | | // <padded_num_elements> [32-bit] |
69 | | // Padding is needed to meet the requirements of the bitshuffle |
70 | | // library such that the input/output is a multiple of 8. Some |
71 | | // ignored elements are appended to the end of the page if necessary |
72 | | // to meet this requirement. |
73 | | // |
74 | | // This header field is the post-padding element count. |
75 | | // |
76 | | // <elem_size_bytes> [32-bit] |
77 | | // The size of the elements, in bytes, as actually encoded. In the |
78 | | // case that all of the data in a page can fit into a smaller |
79 | | // integer type, then we may choose to encode that smaller type |
80 | | // to save CPU costs. |
81 | | // |
82 | | // This is currently only implemented in the UINT32 page type. |
83 | | // |
84 | | // NOTE: all on-disk ints are encoded little-endian |
85 | | // |
86 | | // 2. Element data |
87 | | // |
88 | | // The header is followed by the bitshuffle-compressed element data. |
89 | | // |
90 | | template <FieldType Type> |
91 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
92 | | public: |
93 | | using Self = BitshufflePageBuilder<Type>; |
94 | | friend class PageBuilderHelper<Self>; |
95 | | |
96 | 865k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 408k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 48.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 6.24k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 161k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 70.1k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 8.85k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 12.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.9k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 191 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 37.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 47.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 286 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.35k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 190 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.90k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 16.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 810 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 729 | Status init() override { return reset(); } |
|
97 | | |
98 | 154M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 153M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 50.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 11.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 396k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 70.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 49.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 12.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 17.2k | 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 | 98 | 198 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 118k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 92.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 340 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.29k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 90 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.44k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 36.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 50.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 33.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 8.16k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.72M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.72M | return add_internal<false>(vals, count); |
102 | 1.72M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 760k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 760k | return add_internal<false>(vals, count); | 102 | 760k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 50.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 50.3k | return add_internal<false>(vals, count); | 102 | 50.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 11.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.8k | return add_internal<false>(vals, count); | 102 | 11.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 396k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 396k | return add_internal<false>(vals, count); | 102 | 396k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 70.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 70.9k | return add_internal<false>(vals, count); | 102 | 70.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 49.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 49.0k | return add_internal<false>(vals, count); | 102 | 49.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 12.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 12.1k | return add_internal<false>(vals, count); | 102 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 17.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 17.2k | return add_internal<false>(vals, count); | 102 | 17.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 198 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 198 | return add_internal<false>(vals, count); | 102 | 198 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 118k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 118k | return add_internal<false>(vals, count); | 102 | 118k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 92.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 92.1k | return add_internal<false>(vals, count); | 102 | 92.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 340 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 340 | return add_internal<false>(vals, count); | 102 | 340 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.29k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.29k | return add_internal<false>(vals, count); | 102 | 7.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 90 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 90 | return add_internal<false>(vals, count); | 102 | 90 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.44k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.44k | return add_internal<false>(vals, count); | 102 | 5.44k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 36.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 36.5k | return add_internal<false>(vals, count); | 102 | 36.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 50.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 50.0k | return add_internal<false>(vals, count); | 102 | 50.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.37k | return add_internal<false>(vals, count); | 102 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 33.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 33.3k | return add_internal<false>(vals, count); | 102 | 33.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 8.16k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 8.16k | return add_internal<false>(vals, count); | 102 | 8.16k | } |
|
103 | | |
104 | 153M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 153M | return add_internal<true>(vals, count); |
106 | 153M | } |
107 | | |
108 | | template <bool single> |
109 | 154M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 154M | DCHECK(!_finished); |
111 | 154M | if (_remain_element_capacity == 0) { |
112 | 0 | *num_written = 0; |
113 | 0 | return Status::OK(); |
114 | 0 | } |
115 | | |
116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
117 | | // the row count of a single men tbl could be very large. |
118 | | // a real log: |
119 | | /* |
120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
121 | | */ |
122 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). |
125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
126 | 154M | uint32_t to_add = cast_set<UInt32>( |
127 | 154M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
129 | 154M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 154M | size_t orig_size = _data.size(); |
131 | | // This may need a large memory, should return error if could not allocated |
132 | | // successfully, to avoid BE OOM. |
133 | 154M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 154M | _count += to_add; |
135 | 154M | _remain_element_capacity -= to_add; |
136 | 154M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 154M | *num_written = to_add; |
139 | 154M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; |
142 | | return Status::OK(); |
143 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
145 | | *reinterpret_cast<const uint16_t*>(vals); |
146 | | return Status::OK(); |
147 | 152M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 152M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 152M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 152M | return Status::OK(); |
151 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
153 | | *reinterpret_cast<const uint64_t*>(vals); |
154 | | return Status::OK(); |
155 | | } |
156 | 152M | } |
157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
159 | 154M | return Status::OK(); |
160 | 154M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 760k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 760k | DCHECK(!_finished); | 111 | 760k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 760k | uint32_t to_add = cast_set<UInt32>( | 127 | 760k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 760k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 760k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 760k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 760k | _count += to_add; | 135 | 760k | _remain_element_capacity -= to_add; | 136 | 760k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 760k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 760k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 760k | return Status::OK(); | 160 | 760k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 152M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 152M | DCHECK(!_finished); | 111 | 152M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 152M | uint32_t to_add = cast_set<UInt32>( | 127 | 152M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 152M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 152M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 152M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 152M | _count += to_add; | 135 | 152M | _remain_element_capacity -= to_add; | 136 | 152M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 152M | *num_written = to_add; | 139 | 152M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 152M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 152M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 152M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 152M | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | 152M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 152M | return Status::OK(); | 160 | 152M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 50.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 50.3k | DCHECK(!_finished); | 111 | 50.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 50.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 50.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 50.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 50.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 50.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 50.3k | _count += to_add; | 135 | 50.3k | _remain_element_capacity -= to_add; | 136 | 50.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 50.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 50.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 50.3k | return Status::OK(); | 160 | 50.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.8k | DCHECK(!_finished); | 111 | 11.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 11.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 11.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 11.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.8k | _count += to_add; | 135 | 11.8k | _remain_element_capacity -= to_add; | 136 | 11.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 11.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.8k | return Status::OK(); | 160 | 11.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 396k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 396k | DCHECK(!_finished); | 111 | 396k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 396k | uint32_t to_add = cast_set<UInt32>( | 127 | 396k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 396k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 396k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 396k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 396k | _count += to_add; | 135 | 396k | _remain_element_capacity -= to_add; | 136 | 396k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 396k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 396k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 396k | return Status::OK(); | 160 | 396k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 70.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 70.9k | DCHECK(!_finished); | 111 | 70.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 70.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 70.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 70.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 70.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 70.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 70.9k | _count += to_add; | 135 | 70.9k | _remain_element_capacity -= to_add; | 136 | 70.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 70.9k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 70.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 70.9k | return Status::OK(); | 160 | 70.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 49.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 49.0k | DCHECK(!_finished); | 111 | 49.0k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 49.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 49.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 49.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 49.0k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 49.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 49.0k | _count += to_add; | 135 | 49.0k | _remain_element_capacity -= to_add; | 136 | 49.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 49.0k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 49.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 49.0k | return Status::OK(); | 160 | 49.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 12.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 12.1k | DCHECK(!_finished); | 111 | 12.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 12.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 12.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 12.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 12.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 12.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 12.1k | _count += to_add; | 135 | 12.1k | _remain_element_capacity -= to_add; | 136 | 12.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 12.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 12.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 12.1k | return Status::OK(); | 160 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 17.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 17.2k | DCHECK(!_finished); | 111 | 17.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 17.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 17.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 17.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 17.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 17.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 17.2k | _count += to_add; | 135 | 17.2k | _remain_element_capacity -= to_add; | 136 | 17.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 17.2k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 17.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 17.2k | return Status::OK(); | 160 | 17.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 198 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 198 | DCHECK(!_finished); | 111 | 198 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 198 | uint32_t to_add = cast_set<UInt32>( | 127 | 198 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 198 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 198 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 198 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 198 | _count += to_add; | 135 | 198 | _remain_element_capacity -= to_add; | 136 | 198 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 198 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 198 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 198 | return Status::OK(); | 160 | 198 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 118k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 118k | DCHECK(!_finished); | 111 | 118k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 118k | uint32_t to_add = cast_set<UInt32>( | 127 | 118k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 118k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 118k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 118k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 118k | _count += to_add; | 135 | 118k | _remain_element_capacity -= to_add; | 136 | 118k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 118k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 118k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 118k | return Status::OK(); | 160 | 118k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 92.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 92.1k | DCHECK(!_finished); | 111 | 92.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 92.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 92.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 92.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 92.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 92.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 92.1k | _count += to_add; | 135 | 92.1k | _remain_element_capacity -= to_add; | 136 | 92.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 92.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 92.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 92.1k | return Status::OK(); | 160 | 92.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 340 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 340 | DCHECK(!_finished); | 111 | 340 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 340 | uint32_t to_add = cast_set<UInt32>( | 127 | 340 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 340 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 340 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 340 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 340 | _count += to_add; | 135 | 340 | _remain_element_capacity -= to_add; | 136 | 340 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 340 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 340 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 340 | return Status::OK(); | 160 | 340 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.29k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.29k | DCHECK(!_finished); | 111 | 7.29k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.29k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.29k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.29k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.29k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.29k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.29k | _count += to_add; | 135 | 7.29k | _remain_element_capacity -= to_add; | 136 | 7.29k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.29k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.29k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.29k | return Status::OK(); | 160 | 7.29k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 90 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 90 | DCHECK(!_finished); | 111 | 90 | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 90 | uint32_t to_add = cast_set<UInt32>( | 127 | 90 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 90 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 90 | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 90 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 90 | _count += to_add; | 135 | 90 | _remain_element_capacity -= to_add; | 136 | 90 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 90 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 90 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 90 | return Status::OK(); | 160 | 90 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.44k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.44k | DCHECK(!_finished); | 111 | 5.44k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 5.44k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.44k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 5.44k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.44k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 5.44k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.44k | _count += to_add; | 135 | 5.44k | _remain_element_capacity -= to_add; | 136 | 5.44k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.44k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 5.44k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.44k | return Status::OK(); | 160 | 5.44k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 36.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 36.5k | DCHECK(!_finished); | 111 | 36.5k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 36.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 36.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 36.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 36.5k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 36.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 36.5k | _count += to_add; | 135 | 36.5k | _remain_element_capacity -= to_add; | 136 | 36.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 36.5k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 36.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 36.5k | return Status::OK(); | 160 | 36.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 50.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 50.0k | DCHECK(!_finished); | 111 | 50.0k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 50.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 50.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 50.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 50.0k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 50.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 50.0k | _count += to_add; | 135 | 50.0k | _remain_element_capacity -= to_add; | 136 | 50.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 50.0k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 50.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 50.0k | return Status::OK(); | 160 | 50.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.37k | DCHECK(!_finished); | 111 | 1.37k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.37k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.37k | _count += to_add; | 135 | 1.37k | _remain_element_capacity -= to_add; | 136 | 1.37k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.37k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.37k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.37k | return Status::OK(); | 160 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 33.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 33.3k | DCHECK(!_finished); | 111 | 33.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 33.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 33.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 33.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 33.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 33.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 33.3k | _count += to_add; | 135 | 33.3k | _remain_element_capacity -= to_add; | 136 | 33.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 33.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 33.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 33.3k | return Status::OK(); | 160 | 33.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 8.16k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 8.16k | DCHECK(!_finished); | 111 | 8.16k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 8.16k | uint32_t to_add = cast_set<UInt32>( | 127 | 8.16k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 8.16k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 8.16k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 8.16k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 8.16k | _count += to_add; | 135 | 8.16k | _remain_element_capacity -= to_add; | 136 | 8.16k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 8.16k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 8.16k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 8.16k | return Status::OK(); | 160 | 8.16k | } |
|
161 | | |
162 | 863k | Status finish(OwnedSlice* slice) override { |
163 | 863k | if (_count > 0) { |
164 | 811k | _first_value = cell(0); |
165 | 811k | _last_value = cell(_count - 1); |
166 | 811k | } |
167 | 863k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 863k | return Status::OK(); |
169 | 863k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 396k | Status finish(OwnedSlice* slice) override { | 163 | 396k | if (_count > 0) { | 164 | 358k | _first_value = cell(0); | 165 | 358k | _last_value = cell(_count - 1); | 166 | 358k | } | 167 | 396k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 397k | return Status::OK(); | 169 | 396k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 48.3k | Status finish(OwnedSlice* slice) override { | 163 | 48.3k | if (_count > 0) { | 164 | 47.8k | _first_value = cell(0); | 165 | 47.8k | _last_value = cell(_count - 1); | 166 | 47.8k | } | 167 | 48.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 48.3k | return Status::OK(); | 169 | 48.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6.25k | Status finish(OwnedSlice* slice) override { | 163 | 6.25k | if (_count > 0) { | 164 | 6.09k | _first_value = cell(0); | 165 | 6.09k | _last_value = cell(_count - 1); | 166 | 6.09k | } | 167 | 6.25k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 6.25k | return Status::OK(); | 169 | 6.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 165k | Status finish(OwnedSlice* slice) override { | 163 | 165k | if (_count > 0) { | 164 | 162k | _first_value = cell(0); | 165 | 162k | _last_value = cell(_count - 1); | 166 | 162k | } | 167 | 165k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 165k | return Status::OK(); | 169 | 165k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 69.8k | Status finish(OwnedSlice* slice) override { | 163 | 69.8k | if (_count > 0) { | 164 | 69.8k | _first_value = cell(0); | 165 | 69.8k | _last_value = cell(_count - 1); | 166 | 69.8k | } | 167 | 69.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 69.8k | return Status::OK(); | 169 | 69.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.82k | Status finish(OwnedSlice* slice) override { | 163 | 8.82k | if (_count > 0) { | 164 | 8.48k | _first_value = cell(0); | 165 | 8.48k | _last_value = cell(_count - 1); | 166 | 8.48k | } | 167 | 8.82k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 8.82k | return Status::OK(); | 169 | 8.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.5k | Status finish(OwnedSlice* slice) override { | 163 | 11.5k | if (_count > 0) { | 164 | 11.1k | _first_value = cell(0); | 165 | 11.1k | _last_value = cell(_count - 1); | 166 | 11.1k | } | 167 | 11.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.5k | return Status::OK(); | 169 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 15.0k | Status finish(OwnedSlice* slice) override { | 163 | 15.0k | if (_count > 0) { | 164 | 14.6k | _first_value = cell(0); | 165 | 14.6k | _last_value = cell(_count - 1); | 166 | 14.6k | } | 167 | 15.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 15.0k | return Status::OK(); | 169 | 15.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 203 | Status finish(OwnedSlice* slice) override { | 163 | 203 | if (_count > 0) { | 164 | 198 | _first_value = cell(0); | 165 | 198 | _last_value = cell(_count - 1); | 166 | 198 | } | 167 | 203 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 203 | return Status::OK(); | 169 | 203 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 38.0k | Status finish(OwnedSlice* slice) override { | 163 | 38.0k | if (_count > 0) { | 164 | 37.0k | _first_value = cell(0); | 165 | 37.0k | _last_value = cell(_count - 1); | 166 | 37.0k | } | 167 | 38.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 38.0k | return Status::OK(); | 169 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 46.5k | Status finish(OwnedSlice* slice) override { | 163 | 46.5k | if (_count > 0) { | 164 | 44.9k | _first_value = cell(0); | 165 | 44.9k | _last_value = cell(_count - 1); | 166 | 44.9k | } | 167 | 46.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 46.5k | return Status::OK(); | 169 | 46.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 440 | Status finish(OwnedSlice* slice) override { | 163 | 440 | if (_count > 0) { | 164 | 340 | _first_value = cell(0); | 165 | 340 | _last_value = cell(_count - 1); | 166 | 340 | } | 167 | 440 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 440 | return Status::OK(); | 169 | 440 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.49k | Status finish(OwnedSlice* slice) override { | 163 | 7.49k | if (_count > 0) { | 164 | 7.29k | _first_value = cell(0); | 165 | 7.29k | _last_value = cell(_count - 1); | 166 | 7.29k | } | 167 | 7.49k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.50k | return Status::OK(); | 169 | 7.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 98 | Status finish(OwnedSlice* slice) override { | 163 | 98 | if (_count > 0) { | 164 | 90 | _first_value = cell(0); | 165 | 90 | _last_value = cell(_count - 1); | 166 | 90 | } | 167 | 98 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 98 | return Status::OK(); | 169 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.89k | Status finish(OwnedSlice* slice) override { | 163 | 9.89k | if (_count > 0) { | 164 | 4.93k | _first_value = cell(0); | 165 | 4.93k | _last_value = cell(_count - 1); | 166 | 4.93k | } | 167 | 9.89k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.89k | return Status::OK(); | 169 | 9.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.6k | Status finish(OwnedSlice* slice) override { | 163 | 19.6k | if (_count > 0) { | 164 | 18.7k | _first_value = cell(0); | 165 | 18.7k | _last_value = cell(_count - 1); | 166 | 18.7k | } | 167 | 19.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.6k | return Status::OK(); | 169 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.5k | Status finish(OwnedSlice* slice) override { | 163 | 16.5k | if (_count > 0) { | 164 | 16.0k | _first_value = cell(0); | 165 | 16.0k | _last_value = cell(_count - 1); | 166 | 16.0k | } | 167 | 16.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.5k | return Status::OK(); | 169 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.06k | Status finish(OwnedSlice* slice) override { | 163 | 1.06k | if (_count > 0) { | 164 | 1.01k | _first_value = cell(0); | 165 | 1.01k | _last_value = cell(_count - 1); | 166 | 1.01k | } | 167 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.06k | return Status::OK(); | 169 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 720 | Status finish(OwnedSlice* slice) override { | 163 | 720 | if (_count > 0) { | 164 | 670 | _first_value = cell(0); | 165 | 670 | _last_value = cell(_count - 1); | 166 | 670 | } | 167 | 720 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 720 | return Status::OK(); | 169 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 647 | Status finish(OwnedSlice* slice) override { | 163 | 647 | if (_count > 0) { | 164 | 612 | _first_value = cell(0); | 165 | 612 | _last_value = cell(_count - 1); | 166 | 612 | } | 167 | 647 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 647 | return Status::OK(); | 169 | 647 | } |
|
170 | | |
171 | 2.06M | Status reset() override { |
172 | 2.06M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 2.06M | size_t block_size = _options.data_page_size; |
174 | 2.06M | _count = 0; |
175 | 2.06M | _raw_data_size = 0; |
176 | 2.06M | _data.clear(); |
177 | 2.06M | _data.reserve(block_size); |
178 | 2.06M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 2.06M | << "buffer must be naturally-aligned"; |
180 | 2.06M | _buffer.clear(); |
181 | 2.06M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 2.06M | _finished = false; |
183 | 2.06M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 2.06M | }); |
185 | 2.06M | return Status::OK(); |
186 | 2.06M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.14M | Status reset() override { | 172 | 1.14M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.14M | size_t block_size = _options.data_page_size; | 174 | 1.14M | _count = 0; | 175 | 1.14M | _raw_data_size = 0; | 176 | 1.14M | _data.clear(); | 177 | 1.14M | _data.reserve(block_size); | 178 | 1.14M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.14M | << "buffer must be naturally-aligned"; | 180 | 1.14M | _buffer.clear(); | 181 | 1.14M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.14M | _finished = false; | 183 | 1.14M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.14M | }); | 185 | 1.14M | return Status::OK(); | 186 | 1.14M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 96.8k | Status reset() override { | 172 | 96.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 96.8k | size_t block_size = _options.data_page_size; | 174 | 96.8k | _count = 0; | 175 | 96.8k | _raw_data_size = 0; | 176 | 96.8k | _data.clear(); | 177 | 96.8k | _data.reserve(block_size); | 178 | 96.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 96.8k | << "buffer must be naturally-aligned"; | 180 | 96.8k | _buffer.clear(); | 181 | 96.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 96.8k | _finished = false; | 183 | 96.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 96.8k | }); | 185 | 96.9k | return Status::OK(); | 186 | 96.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 12.5k | Status reset() override { | 172 | 12.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 12.5k | size_t block_size = _options.data_page_size; | 174 | 12.5k | _count = 0; | 175 | 12.5k | _raw_data_size = 0; | 176 | 12.5k | _data.clear(); | 177 | 12.5k | _data.reserve(block_size); | 178 | 12.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 12.5k | << "buffer must be naturally-aligned"; | 180 | 12.5k | _buffer.clear(); | 181 | 12.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 12.5k | _finished = false; | 183 | 12.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 12.5k | }); | 185 | 12.5k | return Status::OK(); | 186 | 12.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 326k | Status reset() override { | 172 | 326k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 326k | size_t block_size = _options.data_page_size; | 174 | 326k | _count = 0; | 175 | 326k | _raw_data_size = 0; | 176 | 326k | _data.clear(); | 177 | 326k | _data.reserve(block_size); | 178 | 326k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 326k | << "buffer must be naturally-aligned"; | 180 | 326k | _buffer.clear(); | 181 | 326k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 326k | _finished = false; | 183 | 326k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 326k | }); | 185 | 327k | return Status::OK(); | 186 | 326k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 139k | Status reset() override { | 172 | 139k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 139k | size_t block_size = _options.data_page_size; | 174 | 139k | _count = 0; | 175 | 139k | _raw_data_size = 0; | 176 | 139k | _data.clear(); | 177 | 139k | _data.reserve(block_size); | 178 | 139k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 139k | << "buffer must be naturally-aligned"; | 180 | 139k | _buffer.clear(); | 181 | 139k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 139k | _finished = false; | 183 | 139k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 139k | }); | 185 | 140k | return Status::OK(); | 186 | 139k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 17.6k | Status reset() override { | 172 | 17.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 17.6k | size_t block_size = _options.data_page_size; | 174 | 17.6k | _count = 0; | 175 | 17.6k | _raw_data_size = 0; | 176 | 17.6k | _data.clear(); | 177 | 17.6k | _data.reserve(block_size); | 178 | 17.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 17.6k | << "buffer must be naturally-aligned"; | 180 | 17.6k | _buffer.clear(); | 181 | 17.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 17.6k | _finished = false; | 183 | 17.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 17.6k | }); | 185 | 17.7k | return Status::OK(); | 186 | 17.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 24.0k | Status reset() override { | 172 | 24.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 24.0k | size_t block_size = _options.data_page_size; | 174 | 24.0k | _count = 0; | 175 | 24.0k | _raw_data_size = 0; | 176 | 24.0k | _data.clear(); | 177 | 24.0k | _data.reserve(block_size); | 178 | 24.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 24.0k | << "buffer must be naturally-aligned"; | 180 | 24.0k | _buffer.clear(); | 181 | 24.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 24.0k | _finished = false; | 183 | 24.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 24.0k | }); | 185 | 24.0k | return Status::OK(); | 186 | 24.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 30.0k | Status reset() override { | 172 | 30.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 30.0k | size_t block_size = _options.data_page_size; | 174 | 30.0k | _count = 0; | 175 | 30.0k | _raw_data_size = 0; | 176 | 30.0k | _data.clear(); | 177 | 30.0k | _data.reserve(block_size); | 178 | 30.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 30.0k | << "buffer must be naturally-aligned"; | 180 | 30.0k | _buffer.clear(); | 181 | 30.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 30.0k | _finished = false; | 183 | 30.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 30.0k | }); | 185 | 30.0k | return Status::OK(); | 186 | 30.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 394 | Status reset() override { | 172 | 394 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 394 | size_t block_size = _options.data_page_size; | 174 | 394 | _count = 0; | 175 | 394 | _raw_data_size = 0; | 176 | 394 | _data.clear(); | 177 | 394 | _data.reserve(block_size); | 178 | 394 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 394 | << "buffer must be naturally-aligned"; | 180 | 394 | _buffer.clear(); | 181 | 394 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 394 | _finished = false; | 183 | 394 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 394 | }); | 185 | 394 | return Status::OK(); | 186 | 394 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 75.4k | Status reset() override { | 172 | 75.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 75.4k | size_t block_size = _options.data_page_size; | 174 | 75.4k | _count = 0; | 175 | 75.4k | _raw_data_size = 0; | 176 | 75.4k | _data.clear(); | 177 | 75.4k | _data.reserve(block_size); | 178 | 75.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 75.4k | << "buffer must be naturally-aligned"; | 180 | 75.4k | _buffer.clear(); | 181 | 75.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 75.4k | _finished = false; | 183 | 75.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 75.4k | }); | 185 | 75.4k | return Status::OK(); | 186 | 75.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 94.0k | Status reset() override { | 172 | 94.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 94.0k | size_t block_size = _options.data_page_size; | 174 | 94.0k | _count = 0; | 175 | 94.0k | _raw_data_size = 0; | 176 | 94.0k | _data.clear(); | 177 | 94.0k | _data.reserve(block_size); | 178 | 94.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 94.0k | << "buffer must be naturally-aligned"; | 180 | 94.0k | _buffer.clear(); | 181 | 94.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 94.0k | _finished = false; | 183 | 94.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 94.0k | }); | 185 | 94.1k | return Status::OK(); | 186 | 94.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 726 | Status reset() override { | 172 | 726 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 726 | size_t block_size = _options.data_page_size; | 174 | 726 | _count = 0; | 175 | 726 | _raw_data_size = 0; | 176 | 726 | _data.clear(); | 177 | 726 | _data.reserve(block_size); | 178 | 726 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 726 | << "buffer must be naturally-aligned"; | 180 | 726 | _buffer.clear(); | 181 | 726 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 726 | _finished = false; | 183 | 726 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 726 | }); | 185 | 726 | return Status::OK(); | 186 | 726 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 14.8k | Status reset() override { | 172 | 14.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.8k | size_t block_size = _options.data_page_size; | 174 | 14.8k | _count = 0; | 175 | 14.8k | _raw_data_size = 0; | 176 | 14.8k | _data.clear(); | 177 | 14.8k | _data.reserve(block_size); | 178 | 14.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.8k | << "buffer must be naturally-aligned"; | 180 | 14.8k | _buffer.clear(); | 181 | 14.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.8k | _finished = false; | 183 | 14.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.8k | }); | 185 | 15.0k | return Status::OK(); | 186 | 14.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 288 | Status reset() override { | 172 | 288 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 288 | size_t block_size = _options.data_page_size; | 174 | 288 | _count = 0; | 175 | 288 | _raw_data_size = 0; | 176 | 288 | _data.clear(); | 177 | 288 | _data.reserve(block_size); | 178 | 288 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 288 | << "buffer must be naturally-aligned"; | 180 | 288 | _buffer.clear(); | 181 | 288 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 288 | _finished = false; | 183 | 288 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 288 | }); | 185 | 288 | return Status::OK(); | 186 | 288 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.8k | Status reset() override { | 172 | 19.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.8k | size_t block_size = _options.data_page_size; | 174 | 19.8k | _count = 0; | 175 | 19.8k | _raw_data_size = 0; | 176 | 19.8k | _data.clear(); | 177 | 19.8k | _data.reserve(block_size); | 178 | 19.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.8k | << "buffer must be naturally-aligned"; | 180 | 19.8k | _buffer.clear(); | 181 | 19.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.8k | _finished = false; | 183 | 19.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.8k | }); | 185 | 19.8k | return Status::OK(); | 186 | 19.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 32.5k | Status reset() override { | 172 | 32.5k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.5k | size_t block_size = _options.data_page_size; | 174 | 32.5k | _count = 0; | 175 | 32.5k | _raw_data_size = 0; | 176 | 32.5k | _data.clear(); | 177 | 32.5k | _data.reserve(block_size); | 178 | 32.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.5k | << "buffer must be naturally-aligned"; | 180 | 32.5k | _buffer.clear(); | 181 | 32.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.5k | _finished = false; | 183 | 32.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.5k | }); | 185 | 32.5k | return Status::OK(); | 186 | 32.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.9k | Status reset() override { | 172 | 32.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.9k | size_t block_size = _options.data_page_size; | 174 | 32.9k | _count = 0; | 175 | 32.9k | _raw_data_size = 0; | 176 | 32.9k | _data.clear(); | 177 | 32.9k | _data.reserve(block_size); | 178 | 32.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.9k | << "buffer must be naturally-aligned"; | 180 | 32.9k | _buffer.clear(); | 181 | 32.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.9k | _finished = false; | 183 | 32.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.9k | }); | 185 | 33.0k | return Status::OK(); | 186 | 32.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.22k | Status reset() override { | 172 | 2.22k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.22k | size_t block_size = _options.data_page_size; | 174 | 2.22k | _count = 0; | 175 | 2.22k | _raw_data_size = 0; | 176 | 2.22k | _data.clear(); | 177 | 2.22k | _data.reserve(block_size); | 178 | 2.22k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.22k | << "buffer must be naturally-aligned"; | 180 | 2.22k | _buffer.clear(); | 181 | 2.22k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.22k | _finished = false; | 183 | 2.22k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.22k | }); | 185 | 2.22k | return Status::OK(); | 186 | 2.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.53k | Status reset() override { | 172 | 1.53k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.53k | size_t block_size = _options.data_page_size; | 174 | 1.53k | _count = 0; | 175 | 1.53k | _raw_data_size = 0; | 176 | 1.53k | _data.clear(); | 177 | 1.53k | _data.reserve(block_size); | 178 | 1.53k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.53k | << "buffer must be naturally-aligned"; | 180 | 1.53k | _buffer.clear(); | 181 | 1.53k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.53k | _finished = false; | 183 | 1.53k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.53k | }); | 185 | 1.53k | return Status::OK(); | 186 | 1.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.37k | Status reset() override { | 172 | 1.37k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.37k | size_t block_size = _options.data_page_size; | 174 | 1.37k | _count = 0; | 175 | 1.37k | _raw_data_size = 0; | 176 | 1.37k | _data.clear(); | 177 | 1.37k | _data.reserve(block_size); | 178 | 1.37k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.37k | << "buffer must be naturally-aligned"; | 180 | 1.37k | _buffer.clear(); | 181 | 1.37k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.37k | _finished = false; | 183 | 1.37k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.37k | }); | 185 | 1.37k | return Status::OK(); | 186 | 1.37k | } |
|
187 | | |
188 | 2.02M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 2.02M | 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_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv |
189 | | |
190 | 42.9k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 22.6k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 4.41k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 742 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 4.83k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 1.94k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.05k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 744 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 797 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 190 | 1.65k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.42k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 190 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 190 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 190 | 160 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 315 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.16k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 190 | 4 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 190 | 26 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 190 | 10 | uint64_t size() const override { return _buffer.size(); } |
|
191 | | |
192 | 537k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 70.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 48.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 6.25k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 165k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 69.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 192 | 8.82k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 15.0k | 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 | 192 | 203 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 38.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 46.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 440 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.49k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 98 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.89k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 19.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 720 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 647 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
193 | | |
194 | 0 | Status get_first_value(void* value) const override { |
195 | 0 | DCHECK(_finished); |
196 | 0 | if (_count == 0) { |
197 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
198 | 0 | } |
199 | 0 | memcpy(value, &_first_value, SIZE_OF_TYPE); |
200 | 0 | return Status::OK(); |
201 | 0 | } Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE15get_first_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE15get_first_valueEPv |
202 | 3 | Status get_last_value(void* value) const override { |
203 | 3 | DCHECK(_finished); |
204 | 3 | if (_count == 0) { |
205 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
206 | 0 | } |
207 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); |
208 | 3 | return Status::OK(); |
209 | 3 | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE14get_last_valueEPv Line | Count | Source | 202 | 3 | Status get_last_value(void* value) const override { | 203 | 3 | DCHECK(_finished); | 204 | 3 | if (_count == 0) { | 205 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 206 | 0 | } | 207 | 3 | memcpy(value, &_last_value, SIZE_OF_TYPE); | 208 | 3 | return Status::OK(); | 209 | 3 | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE14get_last_valueEPv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE14get_last_valueEPv |
210 | | |
211 | | private: |
212 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
213 | 865k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 408k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 48.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 6.24k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 161k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 70.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 8.86k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 191 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 37.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 47.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 286 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.37k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 190 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.90k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 16.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 1.16k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 810 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 729 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 863k | OwnedSlice _finish(int final_size_of_type) { |
216 | 863k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 863k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 863k | int padding_elems = num_elems_after_padding - _count; |
221 | 863k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 25.3M | for (int i = 0; i < padding_bytes; i++) { |
223 | 24.4M | _data.push_back(0); |
224 | 24.4M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 863k | _buffer.resize( |
228 | 863k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 863k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 863k | int64_t bytes = |
232 | 863k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 863k | num_elems_after_padding, final_size_of_type, 0); |
234 | 863k | if (bytes < 0) [[unlikely]] { |
235 | | // This means the bitshuffle function fails. |
236 | | // Ideally, this should not happen. |
237 | 0 | warn_with_bitshuffle_error(bytes); |
238 | | // It does not matter what will be returned here, |
239 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
240 | 0 | return OwnedSlice(); |
241 | 0 | } |
242 | | // update header |
243 | 863k | encode_fixed32_le(&_buffer[0], _count); |
244 | 863k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 863k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 863k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 863k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 863k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 863k | return _buffer.build(); |
251 | 863k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 396k | OwnedSlice _finish(int final_size_of_type) { | 216 | 396k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 396k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 396k | int padding_elems = num_elems_after_padding - _count; | 221 | 396k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.48M | for (int i = 0; i < padding_bytes; i++) { | 223 | 7.08M | _data.push_back(0); | 224 | 7.08M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 396k | _buffer.resize( | 228 | 396k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 396k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 396k | int64_t bytes = | 232 | 396k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 396k | num_elems_after_padding, final_size_of_type, 0); | 234 | 396k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 396k | encode_fixed32_le(&_buffer[0], _count); | 244 | 396k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 396k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 396k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 396k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 396k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 396k | return _buffer.build(); | 251 | 396k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 48.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 48.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 48.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 48.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 48.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 294k | for (int i = 0; i < padding_bytes; i++) { | 223 | 246k | _data.push_back(0); | 224 | 246k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 48.3k | _buffer.resize( | 228 | 48.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 48.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 48.3k | int64_t bytes = | 232 | 48.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 48.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 48.3k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 48.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 48.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 48.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 48.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 48.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 48.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 48.3k | return _buffer.build(); | 251 | 48.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 6.25k | OwnedSlice _finish(int final_size_of_type) { | 216 | 6.25k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 6.25k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 6.25k | int padding_elems = num_elems_after_padding - _count; | 221 | 6.25k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 59.0k | for (int i = 0; i < padding_bytes; i++) { | 223 | 52.8k | _data.push_back(0); | 224 | 52.8k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 6.25k | _buffer.resize( | 228 | 6.25k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 6.25k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 6.25k | int64_t bytes = | 232 | 6.25k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 6.25k | num_elems_after_padding, final_size_of_type, 0); | 234 | 6.25k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 6.25k | encode_fixed32_le(&_buffer[0], _count); | 244 | 6.25k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 6.25k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 6.25k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 6.25k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 6.25k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 6.25k | return _buffer.build(); | 251 | 6.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 165k | OwnedSlice _finish(int final_size_of_type) { | 216 | 165k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 165k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 165k | int padding_elems = num_elems_after_padding - _count; | 221 | 165k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.58M | for (int i = 0; i < padding_bytes; i++) { | 223 | 7.41M | _data.push_back(0); | 224 | 7.41M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 165k | _buffer.resize( | 228 | 165k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 165k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 165k | int64_t bytes = | 232 | 165k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 165k | num_elems_after_padding, final_size_of_type, 0); | 234 | 165k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 165k | encode_fixed32_le(&_buffer[0], _count); | 244 | 165k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 165k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 165k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 165k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 165k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 165k | return _buffer.build(); | 251 | 165k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 69.8k | OwnedSlice _finish(int final_size_of_type) { | 216 | 69.8k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 69.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 69.8k | int padding_elems = num_elems_after_padding - _count; | 221 | 69.8k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.27M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.20M | _data.push_back(0); | 224 | 3.20M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 69.8k | _buffer.resize( | 228 | 69.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 69.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 69.8k | int64_t bytes = | 232 | 69.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 69.8k | num_elems_after_padding, final_size_of_type, 0); | 234 | 69.8k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 69.8k | encode_fixed32_le(&_buffer[0], _count); | 244 | 69.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 69.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 69.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 69.8k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 69.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 69.8k | return _buffer.build(); | 251 | 69.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 8.82k | OwnedSlice _finish(int final_size_of_type) { | 216 | 8.82k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 8.82k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 8.82k | int padding_elems = num_elems_after_padding - _count; | 221 | 8.82k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 576k | for (int i = 0; i < padding_bytes; i++) { | 223 | 567k | _data.push_back(0); | 224 | 567k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 8.82k | _buffer.resize( | 228 | 8.82k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 8.82k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 8.82k | int64_t bytes = | 232 | 8.82k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 8.82k | num_elems_after_padding, final_size_of_type, 0); | 234 | 8.82k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 8.82k | encode_fixed32_le(&_buffer[0], _count); | 244 | 8.82k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 8.82k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 8.82k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 8.82k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 8.82k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 8.82k | return _buffer.build(); | 251 | 8.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 253k | for (int i = 0; i < padding_bytes; i++) { | 223 | 241k | _data.push_back(0); | 224 | 241k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.5k | _buffer.resize( | 228 | 11.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.5k | int64_t bytes = | 232 | 11.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 11.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.5k | return _buffer.build(); | 251 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 15.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 15.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 15.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 15.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 15.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 613k | for (int i = 0; i < padding_bytes; i++) { | 223 | 598k | _data.push_back(0); | 224 | 598k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 15.0k | _buffer.resize( | 228 | 15.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 15.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 15.0k | int64_t bytes = | 232 | 15.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 15.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 15.0k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 15.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 15.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 15.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 15.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 15.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 15.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 15.0k | return _buffer.build(); | 251 | 15.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 203 | OwnedSlice _finish(int final_size_of_type) { | 216 | 203 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 203 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 203 | int padding_elems = num_elems_after_padding - _count; | 221 | 203 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.79k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.58k | _data.push_back(0); | 224 | 2.58k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 203 | _buffer.resize( | 228 | 203 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 203 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 203 | int64_t bytes = | 232 | 203 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 203 | num_elems_after_padding, final_size_of_type, 0); | 234 | 203 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 203 | encode_fixed32_le(&_buffer[0], _count); | 244 | 203 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 203 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 203 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 203 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 203 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 203 | return _buffer.build(); | 251 | 203 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 38.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 38.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 38.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 38.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 38.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 814k | for (int i = 0; i < padding_bytes; i++) { | 223 | 776k | _data.push_back(0); | 224 | 776k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 38.0k | _buffer.resize( | 228 | 38.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 38.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 38.0k | int64_t bytes = | 232 | 38.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 38.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 38.0k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 38.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 38.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 38.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 38.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 38.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 38.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 38.0k | return _buffer.build(); | 251 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 46.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 46.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 46.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 46.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 46.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.98M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.93M | _data.push_back(0); | 224 | 1.93M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 46.5k | _buffer.resize( | 228 | 46.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 46.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 46.5k | int64_t bytes = | 232 | 46.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 46.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 46.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 46.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 46.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 46.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 46.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 46.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 46.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 46.5k | return _buffer.build(); | 251 | 46.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 440 | OwnedSlice _finish(int final_size_of_type) { | 216 | 440 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 440 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 440 | int padding_elems = num_elems_after_padding - _count; | 221 | 440 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.08k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.64k | _data.push_back(0); | 224 | 6.64k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 440 | _buffer.resize( | 228 | 440 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 440 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 440 | int64_t bytes = | 232 | 440 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 440 | num_elems_after_padding, final_size_of_type, 0); | 234 | 440 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 440 | encode_fixed32_le(&_buffer[0], _count); | 244 | 440 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 440 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 440 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 440 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 440 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 440 | return _buffer.build(); | 251 | 440 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.49k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.49k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.49k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.49k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.49k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 392k | for (int i = 0; i < padding_bytes; i++) { | 223 | 385k | _data.push_back(0); | 224 | 385k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.49k | _buffer.resize( | 228 | 7.49k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.49k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.49k | int64_t bytes = | 232 | 7.49k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.49k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.49k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 7.49k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.49k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.49k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.49k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.49k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.49k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.49k | return _buffer.build(); | 251 | 7.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 98 | OwnedSlice _finish(int final_size_of_type) { | 216 | 98 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 98 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 98 | int padding_elems = num_elems_after_padding - _count; | 221 | 98 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 5.71k | for (int i = 0; i < padding_bytes; i++) { | 223 | 5.61k | _data.push_back(0); | 224 | 5.61k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 98 | _buffer.resize( | 228 | 98 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 98 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 98 | int64_t bytes = | 232 | 98 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 98 | num_elems_after_padding, final_size_of_type, 0); | 234 | 98 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 98 | encode_fixed32_le(&_buffer[0], _count); | 244 | 98 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 98 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 98 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 98 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 98 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 98 | return _buffer.build(); | 251 | 98 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.89k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.89k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.89k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.89k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.89k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 121k | for (int i = 0; i < padding_bytes; i++) { | 223 | 111k | _data.push_back(0); | 224 | 111k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.89k | _buffer.resize( | 228 | 9.89k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.89k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.89k | int64_t bytes = | 232 | 9.89k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.89k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.89k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 9.89k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.89k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.89k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.89k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.89k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.89k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.89k | return _buffer.build(); | 251 | 9.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 19.6k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.6k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.6k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.6k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 521k | for (int i = 0; i < padding_bytes; i++) { | 223 | 501k | _data.push_back(0); | 224 | 501k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.6k | _buffer.resize( | 228 | 19.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.6k | int64_t bytes = | 232 | 19.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.6k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.6k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 19.6k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.6k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.6k | return _buffer.build(); | 251 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.13M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.12M | _data.push_back(0); | 224 | 1.12M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 16.5k | _buffer.resize( | 228 | 16.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.5k | int64_t bytes = | 232 | 16.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 16.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.5k | return _buffer.build(); | 251 | 16.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.06k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 162k | for (int i = 0; i < padding_bytes; i++) { | 223 | 161k | _data.push_back(0); | 224 | 161k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.06k | _buffer.resize( | 228 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.06k | int64_t bytes = | 232 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.06k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.06k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.06k | return _buffer.build(); | 251 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 720 | OwnedSlice _finish(int final_size_of_type) { | 216 | 720 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 720 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 720 | int padding_elems = num_elems_after_padding - _count; | 221 | 720 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 15.0k | for (int i = 0; i < padding_bytes; i++) { | 223 | 14.3k | _data.push_back(0); | 224 | 14.3k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 720 | _buffer.resize( | 228 | 720 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 720 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 720 | int64_t bytes = | 232 | 720 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 720 | num_elems_after_padding, final_size_of_type, 0); | 234 | 720 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 720 | encode_fixed32_le(&_buffer[0], _count); | 244 | 720 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 720 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 720 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 720 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 720 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 720 | return _buffer.build(); | 251 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 647 | OwnedSlice _finish(int final_size_of_type) { | 216 | 647 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 647 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 647 | int padding_elems = num_elems_after_padding - _count; | 221 | 647 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 52.4k | for (int i = 0; i < padding_bytes; i++) { | 223 | 51.8k | _data.push_back(0); | 224 | 51.8k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 647 | _buffer.resize( | 228 | 647 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 647 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 647 | int64_t bytes = | 232 | 647 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 647 | num_elems_after_padding, final_size_of_type, 0); | 234 | 647 | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 647 | encode_fixed32_le(&_buffer[0], _count); | 244 | 647 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 647 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 647 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 647 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 647 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 647 | return _buffer.build(); | 251 | 647 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.62M | CppType cell(int idx) const { |
256 | 1.62M | DCHECK_GE(idx, 0); |
257 | 1.62M | CppType ret; |
258 | 1.62M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.62M | return ret; |
260 | 1.62M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 716k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 716k | CppType ret; | 258 | 716k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 716k | return ret; | 260 | 716k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 95.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 95.7k | CppType ret; | 258 | 95.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 95.7k | return ret; | 260 | 95.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 12.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 12.1k | CppType ret; | 258 | 12.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 12.1k | return ret; | 260 | 12.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 325k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 325k | CppType ret; | 258 | 325k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 325k | return ret; | 260 | 325k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 139k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 139k | CppType ret; | 258 | 139k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 139k | return ret; | 260 | 139k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 16.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 16.9k | CppType ret; | 258 | 16.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 16.9k | return ret; | 260 | 16.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 22.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 22.3k | CppType ret; | 258 | 22.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 22.3k | return ret; | 260 | 22.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 29.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 29.2k | CppType ret; | 258 | 29.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 29.2k | return ret; | 260 | 29.2k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 396 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 396 | CppType ret; | 258 | 396 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 396 | return ret; | 260 | 396 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 74.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 74.0k | CppType ret; | 258 | 74.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 74.0k | return ret; | 260 | 74.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 89.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 89.9k | CppType ret; | 258 | 89.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 89.9k | return ret; | 260 | 89.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 680 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 680 | CppType ret; | 258 | 680 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 680 | return ret; | 260 | 680 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 14.5k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 14.5k | CppType ret; | 258 | 14.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 14.5k | return ret; | 260 | 14.5k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 180 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 180 | CppType ret; | 258 | 180 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 180 | return ret; | 260 | 180 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.87k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.87k | CppType ret; | 258 | 9.87k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.87k | return ret; | 260 | 9.87k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 37.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 37.4k | CppType ret; | 258 | 37.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 37.4k | return ret; | 260 | 37.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 32.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 32.0k | CppType ret; | 258 | 32.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 32.0k | return ret; | 260 | 32.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.02k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.02k | CppType ret; | 258 | 2.02k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.02k | return ret; | 260 | 2.02k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.34k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.34k | CppType ret; | 258 | 1.34k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.34k | return ret; | 260 | 1.34k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.22k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.22k | CppType ret; | 258 | 1.22k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.22k | return ret; | 260 | 1.22k | } |
|
261 | | |
262 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
263 | | PageBuilderOptions _options; |
264 | | uint32_t _count; |
265 | | uint32_t _remain_element_capacity; |
266 | | bool _finished; |
267 | | faststring _data; |
268 | | faststring _buffer; |
269 | | CppType _first_value; |
270 | | CppType _last_value; |
271 | | uint64_t _raw_data_size = 0; |
272 | | }; |
273 | | |
274 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
275 | | size_t& compressed_size, size_t& num_element_after_padding, |
276 | 2.36M | int& size_of_element) { |
277 | 2.36M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
278 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
279 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
280 | 0 | } |
281 | | |
282 | 2.36M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.36M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.36M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.36M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.36M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
287 | 0 | return Status::InternalError( |
288 | 0 | "num of element information corrupted," |
289 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
290 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
291 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
292 | 0 | size_of_element, data.size); |
293 | 0 | } |
294 | 2.36M | switch (size_of_element) { |
295 | 164k | case 1: |
296 | 185k | case 2: |
297 | 187k | case 3: |
298 | 1.50M | case 4: |
299 | 2.29M | case 8: |
300 | 2.29M | case 12: |
301 | 2.36M | case 16: |
302 | 2.36M | case 32: |
303 | 2.36M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.36M | } |
307 | 2.36M | return Status::OK(); |
308 | 2.36M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.51M | : _data(data), |
315 | 1.51M | _options(options), |
316 | 1.51M | _parsed(false), |
317 | 1.51M | _num_elements(0), |
318 | 1.51M | _num_element_after_padding(0), |
319 | 1.51M | _size_of_element(0), |
320 | 1.51M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 738k | : _data(data), | 315 | 738k | _options(options), | 316 | 738k | _parsed(false), | 317 | 738k | _num_elements(0), | 318 | 738k | _num_element_after_padding(0), | 319 | 738k | _size_of_element(0), | 320 | 738k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 97.7k | : _data(data), | 315 | 97.7k | _options(options), | 316 | 97.7k | _parsed(false), | 317 | 97.7k | _num_elements(0), | 318 | 97.7k | _num_element_after_padding(0), | 319 | 97.7k | _size_of_element(0), | 320 | 97.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.7k | : _data(data), | 315 | 14.7k | _options(options), | 316 | 14.7k | _parsed(false), | 317 | 14.7k | _num_elements(0), | 318 | 14.7k | _num_element_after_padding(0), | 319 | 14.7k | _size_of_element(0), | 320 | 14.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 259k | : _data(data), | 315 | 259k | _options(options), | 316 | 259k | _parsed(false), | 317 | 259k | _num_elements(0), | 318 | 259k | _num_element_after_padding(0), | 319 | 259k | _size_of_element(0), | 320 | 259k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 92.7k | : _data(data), | 315 | 92.7k | _options(options), | 316 | 92.7k | _parsed(false), | 317 | 92.7k | _num_elements(0), | 318 | 92.7k | _num_element_after_padding(0), | 319 | 92.7k | _size_of_element(0), | 320 | 92.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.0k | : _data(data), | 315 | 14.0k | _options(options), | 316 | 14.0k | _parsed(false), | 317 | 14.0k | _num_elements(0), | 318 | 14.0k | _num_element_after_padding(0), | 319 | 14.0k | _size_of_element(0), | 320 | 14.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 20.6k | : _data(data), | 315 | 20.6k | _options(options), | 316 | 20.6k | _parsed(false), | 317 | 20.6k | _num_elements(0), | 318 | 20.6k | _num_element_after_padding(0), | 319 | 20.6k | _size_of_element(0), | 320 | 20.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 32.0k | : _data(data), | 315 | 32.0k | _options(options), | 316 | 32.0k | _parsed(false), | 317 | 32.0k | _num_elements(0), | 318 | 32.0k | _num_element_after_padding(0), | 319 | 32.0k | _size_of_element(0), | 320 | 32.0k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.61k | : _data(data), | 315 | 1.61k | _options(options), | 316 | 1.61k | _parsed(false), | 317 | 1.61k | _num_elements(0), | 318 | 1.61k | _num_element_after_padding(0), | 319 | 1.61k | _size_of_element(0), | 320 | 1.61k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 61.7k | : _data(data), | 315 | 61.7k | _options(options), | 316 | 61.7k | _parsed(false), | 317 | 61.7k | _num_elements(0), | 318 | 61.7k | _num_element_after_padding(0), | 319 | 61.7k | _size_of_element(0), | 320 | 61.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 71.7k | : _data(data), | 315 | 71.7k | _options(options), | 316 | 71.7k | _parsed(false), | 317 | 71.7k | _num_elements(0), | 318 | 71.7k | _num_element_after_padding(0), | 319 | 71.7k | _size_of_element(0), | 320 | 71.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.35k | : _data(data), | 315 | 2.35k | _options(options), | 316 | 2.35k | _parsed(false), | 317 | 2.35k | _num_elements(0), | 318 | 2.35k | _num_element_after_padding(0), | 319 | 2.35k | _size_of_element(0), | 320 | 2.35k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.4k | : _data(data), | 315 | 16.4k | _options(options), | 316 | 16.4k | _parsed(false), | 317 | 16.4k | _num_elements(0), | 318 | 16.4k | _num_element_after_padding(0), | 319 | 16.4k | _size_of_element(0), | 320 | 16.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.28k | : _data(data), | 315 | 1.28k | _options(options), | 316 | 1.28k | _parsed(false), | 317 | 1.28k | _num_elements(0), | 318 | 1.28k | _num_element_after_padding(0), | 319 | 1.28k | _size_of_element(0), | 320 | 1.28k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.9k | : _data(data), | 315 | 15.9k | _options(options), | 316 | 15.9k | _parsed(false), | 317 | 15.9k | _num_elements(0), | 318 | 15.9k | _num_element_after_padding(0), | 319 | 15.9k | _size_of_element(0), | 320 | 15.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 40.8k | : _data(data), | 315 | 40.8k | _options(options), | 316 | 40.8k | _parsed(false), | 317 | 40.8k | _num_elements(0), | 318 | 40.8k | _num_element_after_padding(0), | 319 | 40.8k | _size_of_element(0), | 320 | 40.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.6k | : _data(data), | 315 | 30.6k | _options(options), | 316 | 30.6k | _parsed(false), | 317 | 30.6k | _num_elements(0), | 318 | 30.6k | _num_element_after_padding(0), | 319 | 30.6k | _size_of_element(0), | 320 | 30.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.81k | : _data(data), | 315 | 1.81k | _options(options), | 316 | 1.81k | _parsed(false), | 317 | 1.81k | _num_elements(0), | 318 | 1.81k | _num_element_after_padding(0), | 319 | 1.81k | _size_of_element(0), | 320 | 1.81k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.21k | : _data(data), | 315 | 1.21k | _options(options), | 316 | 1.21k | _parsed(false), | 317 | 1.21k | _num_elements(0), | 318 | 1.21k | _num_element_after_padding(0), | 319 | 1.21k | _size_of_element(0), | 320 | 1.21k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.18k | : _data(data), | 315 | 1.18k | _options(options), | 316 | 1.18k | _parsed(false), | 317 | 1.18k | _num_elements(0), | 318 | 1.18k | _num_element_after_padding(0), | 319 | 1.18k | _size_of_element(0), | 320 | 1.18k | _cur_index(0) {} |
|
321 | | |
322 | 1.51M | Status init() override { |
323 | 1.51M | CHECK(!_parsed); |
324 | 1.51M | size_t unused; |
325 | 1.51M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.51M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.51M | if (_data.size != |
329 | 1.51M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
330 | 0 | std::stringstream ss; |
331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size |
332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " |
333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
334 | 0 | return Status::InternalError(ss.str()); |
335 | 0 | } |
336 | | |
337 | | // Currently, only the UINT32 block encoder supports expanding size: |
338 | 1.51M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.51M | _size_of_element != SIZE_OF_TYPE)) { |
340 | 0 | return Status::InternalError( |
341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
343 | 0 | } |
344 | 1.51M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
346 | 0 | _size_of_element, SIZE_OF_TYPE); |
347 | 0 | } |
348 | 1.51M | _parsed = true; |
349 | 1.51M | return Status::OK(); |
350 | 1.51M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 738k | Status init() override { | 323 | 738k | CHECK(!_parsed); | 324 | 738k | size_t unused; | 325 | 738k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 738k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 738k | if (_data.size != | 329 | 738k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 738k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 738k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 738k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 738k | _parsed = true; | 349 | 738k | return Status::OK(); | 350 | 738k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 97.6k | Status init() override { | 323 | 97.6k | CHECK(!_parsed); | 324 | 97.6k | size_t unused; | 325 | 97.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 97.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 97.6k | if (_data.size != | 329 | 97.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 97.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 97.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 97.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 97.6k | _parsed = true; | 349 | 97.6k | return Status::OK(); | 350 | 97.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 14.7k | Status init() override { | 323 | 14.7k | CHECK(!_parsed); | 324 | 14.7k | size_t unused; | 325 | 14.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 14.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 14.7k | if (_data.size != | 329 | 14.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 14.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 14.7k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 14.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 14.7k | _parsed = true; | 349 | 14.7k | return Status::OK(); | 350 | 14.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 259k | Status init() override { | 323 | 259k | CHECK(!_parsed); | 324 | 259k | size_t unused; | 325 | 259k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 259k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 259k | if (_data.size != | 329 | 259k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 259k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 259k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 259k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 259k | _parsed = true; | 349 | 259k | return Status::OK(); | 350 | 259k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 92.7k | Status init() override { | 323 | 92.7k | CHECK(!_parsed); | 324 | 92.7k | size_t unused; | 325 | 92.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 92.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 92.7k | if (_data.size != | 329 | 92.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 92.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 92.7k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 92.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 92.7k | _parsed = true; | 349 | 92.7k | return Status::OK(); | 350 | 92.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 14.0k | Status init() override { | 323 | 14.0k | CHECK(!_parsed); | 324 | 14.0k | size_t unused; | 325 | 14.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 14.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 14.0k | if (_data.size != | 329 | 14.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 14.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 14.0k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 14.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 14.0k | _parsed = true; | 349 | 14.0k | return Status::OK(); | 350 | 14.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 20.6k | Status init() override { | 323 | 20.6k | CHECK(!_parsed); | 324 | 20.6k | size_t unused; | 325 | 20.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 20.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 20.6k | if (_data.size != | 329 | 20.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 20.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 20.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 20.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 20.6k | _parsed = true; | 349 | 20.6k | return Status::OK(); | 350 | 20.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 32.0k | Status init() override { | 323 | 32.0k | CHECK(!_parsed); | 324 | 32.0k | size_t unused; | 325 | 32.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 32.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 32.0k | if (_data.size != | 329 | 32.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 32.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 32.0k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 32.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 32.0k | _parsed = true; | 349 | 32.0k | return Status::OK(); | 350 | 32.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.61k | Status init() override { | 323 | 1.61k | CHECK(!_parsed); | 324 | 1.61k | size_t unused; | 325 | 1.61k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.61k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.61k | if (_data.size != | 329 | 1.61k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.61k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.61k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.61k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.61k | _parsed = true; | 349 | 1.61k | return Status::OK(); | 350 | 1.61k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 61.6k | Status init() override { | 323 | 61.6k | CHECK(!_parsed); | 324 | 61.6k | size_t unused; | 325 | 61.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 61.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 61.6k | if (_data.size != | 329 | 61.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 61.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 61.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 61.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 61.6k | _parsed = true; | 349 | 61.6k | return Status::OK(); | 350 | 61.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 71.7k | Status init() override { | 323 | 71.7k | CHECK(!_parsed); | 324 | 71.7k | size_t unused; | 325 | 71.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 71.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 71.7k | if (_data.size != | 329 | 71.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 71.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 71.7k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 71.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 71.7k | _parsed = true; | 349 | 71.7k | return Status::OK(); | 350 | 71.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.35k | Status init() override { | 323 | 2.35k | CHECK(!_parsed); | 324 | 2.35k | size_t unused; | 325 | 2.35k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.35k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.35k | if (_data.size != | 329 | 2.35k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 2.35k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.35k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 2.35k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 2.35k | _parsed = true; | 349 | 2.35k | return Status::OK(); | 350 | 2.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 16.4k | Status init() override { | 323 | 16.4k | CHECK(!_parsed); | 324 | 16.4k | size_t unused; | 325 | 16.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.4k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.4k | if (_data.size != | 329 | 16.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 16.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.4k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 16.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 16.4k | _parsed = true; | 349 | 16.4k | return Status::OK(); | 350 | 16.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.28k | Status init() override { | 323 | 1.28k | CHECK(!_parsed); | 324 | 1.28k | size_t unused; | 325 | 1.28k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.28k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.28k | if (_data.size != | 329 | 1.28k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.28k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.28k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.28k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.28k | _parsed = true; | 349 | 1.28k | return Status::OK(); | 350 | 1.28k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.9k | Status init() override { | 323 | 15.9k | CHECK(!_parsed); | 324 | 15.9k | size_t unused; | 325 | 15.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.9k | if (_data.size != | 329 | 15.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 15.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.9k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 15.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 15.9k | _parsed = true; | 349 | 15.9k | return Status::OK(); | 350 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 40.8k | Status init() override { | 323 | 40.8k | CHECK(!_parsed); | 324 | 40.8k | size_t unused; | 325 | 40.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 40.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 40.8k | if (_data.size != | 329 | 40.8k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 40.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 40.8k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 40.8k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 40.8k | _parsed = true; | 349 | 40.8k | return Status::OK(); | 350 | 40.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 30.6k | Status init() override { | 323 | 30.6k | CHECK(!_parsed); | 324 | 30.6k | size_t unused; | 325 | 30.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.6k | if (_data.size != | 329 | 30.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 30.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 30.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 30.6k | _parsed = true; | 349 | 30.6k | return Status::OK(); | 350 | 30.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.81k | Status init() override { | 323 | 1.81k | CHECK(!_parsed); | 324 | 1.81k | size_t unused; | 325 | 1.81k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.81k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.81k | if (_data.size != | 329 | 1.81k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.81k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.81k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.81k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.81k | _parsed = true; | 349 | 1.81k | return Status::OK(); | 350 | 1.81k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 322 | 1.21k | Status init() override { | 323 | 1.21k | CHECK(!_parsed); | 324 | 1.21k | size_t unused; | 325 | 1.21k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.21k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.21k | if (_data.size != | 329 | 1.21k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.21k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.21k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.21k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.21k | _parsed = true; | 349 | 1.21k | return Status::OK(); | 350 | 1.21k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.18k | Status init() override { | 323 | 1.18k | CHECK(!_parsed); | 324 | 1.18k | size_t unused; | 325 | 1.18k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.18k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.18k | if (_data.size != | 329 | 1.18k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.18k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.18k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.18k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.18k | _parsed = true; | 349 | 1.18k | return Status::OK(); | 350 | 1.18k | } |
|
351 | | |
352 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
353 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
354 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
355 | | // code such as check if the count == 0, then skip seek, but there are other method such |
356 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
357 | | // == 0, because next batch will return empty in this method. |
358 | 2.44M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.44M | if (_num_elements == 0) [[unlikely]] { |
361 | 5.88k | if (pos != 0) { |
362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
364 | 0 | } |
365 | 5.88k | } |
366 | | |
367 | 2.44M | DCHECK_LE(pos, _num_elements); |
368 | 2.44M | _cur_index = pos; |
369 | 2.44M | return Status::OK(); |
370 | 2.44M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.67M | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.67M | DCHECK(_parsed) << "Must call init()"; | 360 | 1.67M | if (_num_elements == 0) [[unlikely]] { | 361 | 2.47k | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 2.47k | } | 366 | | | 367 | 1.67M | DCHECK_LE(pos, _num_elements); | 368 | 1.67M | _cur_index = pos; | 369 | 1.67M | return Status::OK(); | 370 | 1.67M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 118k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 118k | if (_num_elements == 0) [[unlikely]] { | 361 | 355 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 355 | } | 366 | | | 367 | 118k | DCHECK_LE(pos, _num_elements); | 368 | 118k | _cur_index = pos; | 369 | 118k | return Status::OK(); | 370 | 118k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 4.94k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 4.94k | if (_num_elements == 0) [[unlikely]] { | 361 | 970 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 970 | } | 366 | | | 367 | 4.94k | DCHECK_LE(pos, _num_elements); | 368 | 4.94k | _cur_index = pos; | 369 | 4.94k | return Status::OK(); | 370 | 4.94k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 166k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 166k | if (_num_elements == 0) [[unlikely]] { | 361 | 865 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 865 | } | 366 | | | 367 | 166k | DCHECK_LE(pos, _num_elements); | 368 | 166k | _cur_index = pos; | 369 | 166k | return Status::OK(); | 370 | 166k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 9.22k | Status seek_to_position_in_page(size_t pos) override { | 359 | 9.22k | DCHECK(_parsed) << "Must call init()"; | 360 | 9.22k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 9.22k | DCHECK_LE(pos, _num_elements); | 368 | 9.22k | _cur_index = pos; | 369 | 9.22k | return Status::OK(); | 370 | 9.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 5.36k | Status seek_to_position_in_page(size_t pos) override { | 359 | 5.36k | DCHECK(_parsed) << "Must call init()"; | 360 | 5.36k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 5.36k | DCHECK_LE(pos, _num_elements); | 368 | 5.36k | _cur_index = pos; | 369 | 5.36k | return Status::OK(); | 370 | 5.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 17.5k | DCHECK_LE(pos, _num_elements); | 368 | 17.5k | _cur_index = pos; | 369 | 17.5k | return Status::OK(); | 370 | 17.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 14.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 14.5k | DCHECK(_parsed) << "Must call init()"; | 360 | 14.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 5 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 5 | } | 366 | | | 367 | 14.5k | DCHECK_LE(pos, _num_elements); | 368 | 14.5k | _cur_index = pos; | 369 | 14.5k | return Status::OK(); | 370 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 11.4k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 11.4k | DCHECK_LE(pos, _num_elements); | 368 | 11.4k | _cur_index = pos; | 369 | 11.4k | return Status::OK(); | 370 | 11.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 339k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 339k | if (_num_elements == 0) [[unlikely]] { | 361 | 777 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 777 | } | 366 | | | 367 | 339k | DCHECK_LE(pos, _num_elements); | 368 | 339k | _cur_index = pos; | 369 | 339k | return Status::OK(); | 370 | 339k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 45.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 45.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 19 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 19 | } | 366 | | | 367 | 45.7k | DCHECK_LE(pos, _num_elements); | 368 | 45.7k | _cur_index = pos; | 369 | 45.7k | return Status::OK(); | 370 | 45.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.25k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.25k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.25k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 7.25k | DCHECK_LE(pos, _num_elements); | 368 | 7.25k | _cur_index = pos; | 369 | 7.25k | return Status::OK(); | 370 | 7.25k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.37k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.37k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.37k | if (_num_elements == 0) [[unlikely]] { | 361 | 361 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 361 | } | 366 | | | 367 | 7.37k | DCHECK_LE(pos, _num_elements); | 368 | 7.37k | _cur_index = pos; | 369 | 7.37k | return Status::OK(); | 370 | 7.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 28 | Status seek_to_position_in_page(size_t pos) override { | 359 | 28 | DCHECK(_parsed) << "Must call init()"; | 360 | 28 | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 28 | DCHECK_LE(pos, _num_elements); | 368 | 28 | _cur_index = pos; | 369 | 28 | return Status::OK(); | 370 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 817 | Status seek_to_position_in_page(size_t pos) override { | 359 | 817 | DCHECK(_parsed) << "Must call init()"; | 360 | 817 | if (_num_elements == 0) [[unlikely]] { | 361 | 39 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 39 | } | 366 | | | 367 | 817 | DCHECK_LE(pos, _num_elements); | 368 | 817 | _cur_index = pos; | 369 | 817 | return Status::OK(); | 370 | 817 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 14.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 14.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 12 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 12 | } | 366 | | | 367 | 14.9k | DCHECK_LE(pos, _num_elements); | 368 | 14.9k | _cur_index = pos; | 369 | 14.9k | return Status::OK(); | 370 | 14.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 10.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 10.7k | DCHECK(_parsed) << "Must call init()"; | 360 | 10.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 10 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 10 | } | 366 | | | 367 | 10.7k | DCHECK_LE(pos, _num_elements); | 368 | 10.7k | _cur_index = pos; | 369 | 10.7k | return Status::OK(); | 370 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.95k | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.95k | DCHECK(_parsed) << "Must call init()"; | 360 | 1.95k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 1.95k | DCHECK_LE(pos, _num_elements); | 368 | 1.95k | _cur_index = pos; | 369 | 1.95k | return Status::OK(); | 370 | 1.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 76 | Status seek_to_position_in_page(size_t pos) override { | 359 | 76 | DCHECK(_parsed) << "Must call init()"; | 360 | 76 | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 76 | DCHECK_LE(pos, _num_elements); | 368 | 76 | _cur_index = pos; | 369 | 76 | return Status::OK(); | 370 | 76 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 89 | Status seek_to_position_in_page(size_t pos) override { | 359 | 89 | DCHECK(_parsed) << "Must call init()"; | 360 | 89 | if (_num_elements == 0) [[unlikely]] { | 361 | 1 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 1 | } | 366 | | | 367 | 89 | DCHECK_LE(pos, _num_elements); | 368 | 89 | _cur_index = pos; | 369 | 89 | return Status::OK(); | 370 | 89 | } |
|
371 | | |
372 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
373 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
374 | |
|
375 | 0 | if (_num_elements == 0) { |
376 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
377 | 0 | } |
378 | | |
379 | 0 | size_t left = 0; |
380 | 0 | size_t right = _num_elements; |
381 | |
|
382 | 0 | void* mid_value = nullptr; |
383 | | |
384 | | // find the first value >= target. after loop, |
385 | | // - left == index of first value >= target when found |
386 | | // - left == _num_elements when not found (all values < target) |
387 | 0 | while (left < right) { |
388 | 0 | size_t mid = left + (right - left) / 2; |
389 | 0 | mid_value = get_data(mid); |
390 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
391 | 0 | left = mid + 1; |
392 | 0 | } else { |
393 | 0 | right = mid; |
394 | 0 | } |
395 | 0 | } |
396 | 0 | if (left >= _num_elements) { |
397 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
398 | 0 | } |
399 | 0 | void* find_value = get_data(left); |
400 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
401 | 0 | *exact_match = true; |
402 | 0 | } else { |
403 | 0 | *exact_match = false; |
404 | 0 | } |
405 | |
|
406 | 0 | _cur_index = left; |
407 | 0 | return Status::OK(); |
408 | 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_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb |
409 | | |
410 | | template <bool forward_index = true> |
411 | 3.42M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 3.42M | DCHECK(_parsed); |
413 | 3.42M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 3.42M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 3.42M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 3.42M | *n = max_fetch; |
422 | 3.42M | if constexpr (forward_index) { |
423 | 2.59M | _cur_index += max_fetch; |
424 | 2.59M | } |
425 | | |
426 | 3.42M | return Status::OK(); |
427 | 3.42M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 704k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 704k | DCHECK(_parsed); | 413 | 705k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 704k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 704k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 704k | *n = max_fetch; | 422 | 704k | if constexpr (forward_index) { | 423 | 704k | _cur_index += max_fetch; | 424 | 704k | } | 425 | | | 426 | 704k | return Status::OK(); | 427 | 704k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 545k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 545k | DCHECK(_parsed); | 413 | 545k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 545k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 545k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 545k | *n = max_fetch; | 422 | 545k | if constexpr (forward_index) { | 423 | 545k | _cur_index += max_fetch; | 424 | 545k | } | 425 | | | 426 | 545k | return Status::OK(); | 427 | 545k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 15.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.7k | DCHECK(_parsed); | 413 | 15.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.7k | *n = max_fetch; | 422 | 15.7k | if constexpr (forward_index) { | 423 | 15.7k | _cur_index += max_fetch; | 424 | 15.7k | } | 425 | | | 426 | 15.7k | return Status::OK(); | 427 | 15.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 108k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 108k | DCHECK(_parsed); | 413 | 108k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 108k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 108k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 108k | *n = max_fetch; | 422 | 108k | if constexpr (forward_index) { | 423 | 108k | _cur_index += max_fetch; | 424 | 108k | } | 425 | | | 426 | 108k | return Status::OK(); | 427 | 108k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 463k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 463k | DCHECK(_parsed); | 413 | 463k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 463k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 463k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 463k | *n = max_fetch; | 422 | 463k | if constexpr (forward_index) { | 423 | 463k | _cur_index += max_fetch; | 424 | 463k | } | 425 | | | 426 | 463k | return Status::OK(); | 427 | 463k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 825k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 825k | DCHECK(_parsed); | 413 | 826k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 825k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 825k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 825k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 825k | return Status::OK(); | 427 | 825k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 33.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 33.0k | DCHECK(_parsed); | 413 | 33.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 33.0k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 33.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 33.0k | *n = max_fetch; | 422 | 33.0k | if constexpr (forward_index) { | 423 | 33.0k | _cur_index += max_fetch; | 424 | 33.0k | } | 425 | | | 426 | 33.0k | return Status::OK(); | 427 | 33.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 15.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.2k | DCHECK(_parsed); | 413 | 15.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.2k | *n = max_fetch; | 422 | 15.2k | if constexpr (forward_index) { | 423 | 15.2k | _cur_index += max_fetch; | 424 | 15.2k | } | 425 | | | 426 | 15.2k | return Status::OK(); | 427 | 15.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 31.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 31.7k | DCHECK(_parsed); | 413 | 31.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 31.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 31.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 31.7k | *n = max_fetch; | 422 | 31.7k | if constexpr (forward_index) { | 423 | 31.7k | _cur_index += max_fetch; | 424 | 31.7k | } | 425 | | | 426 | 31.7k | return Status::OK(); | 427 | 31.7k | } |
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 | 411 | 3.19k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.19k | DCHECK(_parsed); | 413 | 3.19k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.19k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.19k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.19k | *n = max_fetch; | 422 | 3.19k | if constexpr (forward_index) { | 423 | 3.19k | _cur_index += max_fetch; | 424 | 3.19k | } | 425 | | | 426 | 3.19k | return Status::OK(); | 427 | 3.19k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 463k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 463k | DCHECK(_parsed); | 413 | 463k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 463k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 463k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 463k | *n = max_fetch; | 422 | 463k | if constexpr (forward_index) { | 423 | 463k | _cur_index += max_fetch; | 424 | 463k | } | 425 | | | 426 | 463k | return Status::OK(); | 427 | 463k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 91.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 91.9k | DCHECK(_parsed); | 413 | 91.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 91.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 91.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 91.9k | *n = max_fetch; | 422 | 91.9k | if constexpr (forward_index) { | 423 | 91.9k | _cur_index += max_fetch; | 424 | 91.9k | } | 425 | | | 426 | 91.9k | return Status::OK(); | 427 | 91.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 1.11k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.11k | DCHECK(_parsed); | 413 | 1.11k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.11k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.11k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.11k | *n = max_fetch; | 422 | 1.11k | if constexpr (forward_index) { | 423 | 1.11k | _cur_index += max_fetch; | 424 | 1.11k | } | 425 | | | 426 | 1.11k | return Status::OK(); | 427 | 1.11k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 7.88k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.88k | DCHECK(_parsed); | 413 | 7.88k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.88k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.88k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.88k | *n = max_fetch; | 422 | 7.88k | if constexpr (forward_index) { | 423 | 7.88k | _cur_index += max_fetch; | 424 | 7.88k | } | 425 | | | 426 | 7.88k | return Status::OK(); | 427 | 7.88k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 1.22k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.22k | DCHECK(_parsed); | 413 | 1.22k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.22k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.22k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.22k | *n = max_fetch; | 422 | 1.22k | if constexpr (forward_index) { | 423 | 1.22k | _cur_index += max_fetch; | 424 | 1.22k | } | 425 | | | 426 | 1.22k | return Status::OK(); | 427 | 1.22k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 10.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 10.3k | DCHECK(_parsed); | 413 | 10.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 10.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 10.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 10.3k | *n = max_fetch; | 422 | 10.3k | if constexpr (forward_index) { | 423 | 10.3k | _cur_index += max_fetch; | 424 | 10.3k | } | 425 | | | 426 | 10.3k | return Status::OK(); | 427 | 10.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 44.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 44.4k | DCHECK(_parsed); | 413 | 44.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 44.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 44.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 44.4k | *n = max_fetch; | 422 | 44.4k | if constexpr (forward_index) { | 423 | 44.4k | _cur_index += max_fetch; | 424 | 44.4k | } | 425 | | | 426 | 44.4k | return Status::OK(); | 427 | 44.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 32.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 32.1k | DCHECK(_parsed); | 413 | 32.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 32.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 32.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 32.1k | *n = max_fetch; | 422 | 32.1k | if constexpr (forward_index) { | 423 | 32.1k | _cur_index += max_fetch; | 424 | 32.1k | } | 425 | | | 426 | 32.1k | return Status::OK(); | 427 | 32.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 3.24k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.24k | DCHECK(_parsed); | 413 | 3.24k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.24k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.24k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.24k | *n = max_fetch; | 422 | 3.24k | if constexpr (forward_index) { | 423 | 3.24k | _cur_index += max_fetch; | 424 | 3.24k | } | 425 | | | 426 | 3.24k | return Status::OK(); | 427 | 3.24k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 10.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 10.8k | DCHECK(_parsed); | 413 | 10.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 10.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 10.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 10.8k | *n = max_fetch; | 422 | 10.8k | if constexpr (forward_index) { | 423 | 10.8k | _cur_index += max_fetch; | 424 | 10.8k | } | 425 | | | 426 | 10.8k | return Status::OK(); | 427 | 10.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 8.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.31k | DCHECK(_parsed); | 413 | 8.31k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.31k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.31k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.31k | *n = max_fetch; | 422 | 8.31k | if constexpr (forward_index) { | 423 | 8.31k | _cur_index += max_fetch; | 424 | 8.31k | } | 425 | | | 426 | 8.31k | return Status::OK(); | 427 | 8.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 2.59M | 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 | 429 | 704k | 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 | 429 | 545k | 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 | 429 | 15.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 108k | 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 | 429 | 463k | 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_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 33.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 15.2k | 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 | 429 | 31.7k | 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 | 429 | 3.19k | 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 | 429 | 463k | 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 | 429 | 91.9k | 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 | 429 | 1.11k | 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 | 429 | 7.88k | 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 | 429 | 1.22k | 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 | 429 | 10.3k | 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 | 429 | 44.4k | 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 | 429 | 32.1k | 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 | 429 | 3.24k | 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 | 429 | 10.8k | 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 | 429 | 8.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
430 | | |
431 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
432 | 376k | MutableColumnPtr& dst) override { |
433 | 376k | DCHECK(_parsed); |
434 | 376k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 376k | auto total = *n; |
440 | 376k | auto read_count = 0; |
441 | 376k | _buffer.resize(total); |
442 | 73.2M | for (size_t i = 0; i < total; ++i) { |
443 | 72.8M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 72.8M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 10.3k | break; |
446 | 10.3k | } |
447 | | |
448 | 72.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 72.8M | } |
450 | | |
451 | 377k | if (LIKELY(read_count > 0)) { |
452 | 377k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 377k | } |
454 | | |
455 | 376k | *n = read_count; |
456 | 376k | return Status::OK(); |
457 | 376k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 77.0k | MutableColumnPtr& dst) override { | 433 | 77.0k | DCHECK(_parsed); | 434 | 77.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 77.0k | auto total = *n; | 440 | 77.0k | auto read_count = 0; | 441 | 77.0k | _buffer.resize(total); | 442 | 13.9M | for (size_t i = 0; i < total; ++i) { | 443 | 13.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 13.8M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 2.11k | break; | 446 | 2.11k | } | 447 | | | 448 | 13.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 13.8M | } | 450 | | | 451 | 77.0k | if (LIKELY(read_count > 0)) { | 452 | 77.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 77.0k | } | 454 | | | 455 | 77.0k | *n = read_count; | 456 | 77.0k | return Status::OK(); | 457 | 77.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 33.2k | MutableColumnPtr& dst) override { | 433 | 33.2k | DCHECK(_parsed); | 434 | 33.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 33.2k | auto total = *n; | 440 | 33.2k | auto read_count = 0; | 441 | 33.2k | _buffer.resize(total); | 442 | 1.14M | for (size_t i = 0; i < total; ++i) { | 443 | 1.11M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.11M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 102 | break; | 446 | 102 | } | 447 | | | 448 | 1.11M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.11M | } | 450 | | | 451 | 33.2k | if (LIKELY(read_count > 0)) { | 452 | 33.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 33.2k | } | 454 | | | 455 | 33.2k | *n = read_count; | 456 | 33.2k | return Status::OK(); | 457 | 33.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 5.99k | MutableColumnPtr& dst) override { | 433 | 5.99k | DCHECK(_parsed); | 434 | 5.99k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 5.99k | auto total = *n; | 440 | 5.99k | auto read_count = 0; | 441 | 5.99k | _buffer.resize(total); | 442 | 41.0k | for (size_t i = 0; i < total; ++i) { | 443 | 35.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 35.0k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 35.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 35.0k | } | 450 | | | 451 | 5.99k | if (LIKELY(read_count > 0)) { | 452 | 5.99k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 5.99k | } | 454 | | | 455 | 5.99k | *n = read_count; | 456 | 5.99k | return Status::OK(); | 457 | 5.99k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 69.7k | MutableColumnPtr& dst) override { | 433 | 69.7k | DCHECK(_parsed); | 434 | 69.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 69.7k | auto total = *n; | 440 | 69.7k | auto read_count = 0; | 441 | 69.7k | _buffer.resize(total); | 442 | 3.39M | for (size_t i = 0; i < total; ++i) { | 443 | 3.32M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.32M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.29k | break; | 446 | 1.29k | } | 447 | | | 448 | 3.32M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.32M | } | 450 | | | 451 | 69.7k | if (LIKELY(read_count > 0)) { | 452 | 69.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 69.7k | } | 454 | | | 455 | 69.7k | *n = read_count; | 456 | 69.7k | return Status::OK(); | 457 | 69.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 27.8k | MutableColumnPtr& dst) override { | 433 | 27.8k | DCHECK(_parsed); | 434 | 27.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 27.8k | auto total = *n; | 440 | 27.8k | auto read_count = 0; | 441 | 27.8k | _buffer.resize(total); | 442 | 1.04M | for (size_t i = 0; i < total; ++i) { | 443 | 1.01M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.01M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 144 | break; | 446 | 144 | } | 447 | | | 448 | 1.01M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.01M | } | 450 | | | 451 | 27.8k | if (LIKELY(read_count > 0)) { | 452 | 27.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 27.8k | } | 454 | | | 455 | 27.8k | *n = read_count; | 456 | 27.8k | return Status::OK(); | 457 | 27.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 6.50k | MutableColumnPtr& dst) override { | 433 | 6.50k | DCHECK(_parsed); | 434 | 6.50k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 6.50k | auto total = *n; | 440 | 6.50k | auto read_count = 0; | 441 | 6.50k | _buffer.resize(total); | 442 | 14.2k | for (size_t i = 0; i < total; ++i) { | 443 | 7.74k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.74k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 7.74k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.74k | } | 450 | | | 451 | 6.51k | if (LIKELY(read_count > 0)) { | 452 | 6.51k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 6.51k | } | 454 | | | 455 | 6.50k | *n = read_count; | 456 | 6.50k | return Status::OK(); | 457 | 6.50k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.8k | MutableColumnPtr& dst) override { | 433 | 10.8k | DCHECK(_parsed); | 434 | 10.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.8k | auto total = *n; | 440 | 10.8k | auto read_count = 0; | 441 | 10.8k | _buffer.resize(total); | 442 | 1.16M | for (size_t i = 0; i < total; ++i) { | 443 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 29 | break; | 446 | 29 | } | 447 | | | 448 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.15M | } | 450 | | | 451 | 10.8k | if (LIKELY(read_count > 0)) { | 452 | 10.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.8k | } | 454 | | | 455 | 10.8k | *n = read_count; | 456 | 10.8k | return Status::OK(); | 457 | 10.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.4k | MutableColumnPtr& dst) override { | 433 | 15.4k | DCHECK(_parsed); | 434 | 15.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.4k | auto total = *n; | 440 | 15.4k | auto read_count = 0; | 441 | 15.4k | _buffer.resize(total); | 442 | 2.47M | for (size_t i = 0; i < total; ++i) { | 443 | 2.45M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 2.45M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 772 | break; | 446 | 772 | } | 447 | | | 448 | 2.45M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 2.45M | } | 450 | | | 451 | 15.4k | if (LIKELY(read_count > 0)) { | 452 | 15.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.4k | } | 454 | | | 455 | 15.4k | *n = read_count; | 456 | 15.4k | return Status::OK(); | 457 | 15.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.07k | MutableColumnPtr& dst) override { | 433 | 2.07k | DCHECK(_parsed); | 434 | 2.07k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.07k | auto total = *n; | 440 | 2.07k | auto read_count = 0; | 441 | 2.07k | _buffer.resize(total); | 442 | 665k | for (size_t i = 0; i < total; ++i) { | 443 | 663k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 663k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 15 | break; | 446 | 15 | } | 447 | | | 448 | 663k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 663k | } | 450 | | | 451 | 2.07k | if (LIKELY(read_count > 0)) { | 452 | 2.07k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.07k | } | 454 | | | 455 | 2.07k | *n = read_count; | 456 | 2.07k | return Status::OK(); | 457 | 2.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.6k | MutableColumnPtr& dst) override { | 433 | 30.6k | DCHECK(_parsed); | 434 | 30.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.6k | auto total = *n; | 440 | 30.6k | auto read_count = 0; | 441 | 30.6k | _buffer.resize(total); | 442 | 7.67M | for (size_t i = 0; i < total; ++i) { | 443 | 7.64M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.64M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 765 | break; | 446 | 765 | } | 447 | | | 448 | 7.64M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.64M | } | 450 | | | 451 | 30.6k | if (LIKELY(read_count > 0)) { | 452 | 30.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.6k | } | 454 | | | 455 | 30.6k | *n = read_count; | 456 | 30.6k | return Status::OK(); | 457 | 30.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 33.8k | MutableColumnPtr& dst) override { | 433 | 33.8k | DCHECK(_parsed); | 434 | 33.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 33.8k | auto total = *n; | 440 | 33.8k | auto read_count = 0; | 441 | 33.8k | _buffer.resize(total); | 442 | 7.75M | for (size_t i = 0; i < total; ++i) { | 443 | 7.71M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.71M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 87 | break; | 446 | 87 | } | 447 | | | 448 | 7.71M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.71M | } | 450 | | | 451 | 33.8k | if (LIKELY(read_count > 0)) { | 452 | 33.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 33.8k | } | 454 | | | 455 | 33.8k | *n = read_count; | 456 | 33.8k | return Status::OK(); | 457 | 33.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.30k | MutableColumnPtr& dst) override { | 433 | 2.30k | DCHECK(_parsed); | 434 | 2.30k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.30k | auto total = *n; | 440 | 2.30k | auto read_count = 0; | 441 | 2.30k | _buffer.resize(total); | 442 | 658k | for (size_t i = 0; i < total; ++i) { | 443 | 656k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 656k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 82 | break; | 446 | 82 | } | 447 | | | 448 | 656k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 656k | } | 450 | | | 451 | 2.30k | if (LIKELY(read_count > 0)) { | 452 | 2.30k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.30k | } | 454 | | | 455 | 2.30k | *n = read_count; | 456 | 2.30k | return Status::OK(); | 457 | 2.30k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 13.0k | MutableColumnPtr& dst) override { | 433 | 13.0k | DCHECK(_parsed); | 434 | 13.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 13.0k | auto total = *n; | 440 | 13.0k | auto read_count = 0; | 441 | 13.0k | _buffer.resize(total); | 442 | 27.5k | for (size_t i = 0; i < total; ++i) { | 443 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.5k | } | 450 | | | 451 | 13.0k | if (LIKELY(read_count > 0)) { | 452 | 13.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 13.0k | } | 454 | | | 455 | 13.0k | *n = read_count; | 456 | 13.0k | return Status::OK(); | 457 | 13.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 77 | MutableColumnPtr& dst) override { | 433 | 77 | DCHECK(_parsed); | 434 | 77 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 77 | auto total = *n; | 440 | 77 | auto read_count = 0; | 441 | 77 | _buffer.resize(total); | 442 | 159 | for (size_t i = 0; i < total; ++i) { | 443 | 82 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 82 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 82 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 82 | } | 450 | | | 451 | 77 | if (LIKELY(read_count > 0)) { | 452 | 77 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 77 | } | 454 | | | 455 | 77 | *n = read_count; | 456 | 77 | return Status::OK(); | 457 | 77 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.82k | MutableColumnPtr& dst) override { | 433 | 4.82k | DCHECK(_parsed); | 434 | 4.82k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.82k | auto total = *n; | 440 | 4.82k | auto read_count = 0; | 441 | 4.82k | _buffer.resize(total); | 442 | 19.4k | for (size_t i = 0; i < total; ++i) { | 443 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.6k | } | 450 | | | 451 | 4.82k | if (LIKELY(read_count > 0)) { | 452 | 4.82k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.82k | } | 454 | | | 455 | 4.82k | *n = read_count; | 456 | 4.82k | return Status::OK(); | 457 | 4.82k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 25.4k | MutableColumnPtr& dst) override { | 433 | 25.4k | DCHECK(_parsed); | 434 | 25.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 25.4k | auto total = *n; | 440 | 25.4k | auto read_count = 0; | 441 | 25.4k | _buffer.resize(total); | 442 | 21.9M | for (size_t i = 0; i < total; ++i) { | 443 | 21.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 21.8M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 4.49k | break; | 446 | 4.49k | } | 447 | | | 448 | 21.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 21.8M | } | 450 | | | 451 | 25.4k | if (LIKELY(read_count > 0)) { | 452 | 25.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 25.4k | } | 454 | | | 455 | 25.4k | *n = read_count; | 456 | 25.4k | return Status::OK(); | 457 | 25.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 16.2k | MutableColumnPtr& dst) override { | 433 | 16.2k | DCHECK(_parsed); | 434 | 16.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 16.2k | auto total = *n; | 440 | 16.2k | auto read_count = 0; | 441 | 16.2k | _buffer.resize(total); | 442 | 11.3M | for (size_t i = 0; i < total; ++i) { | 443 | 11.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 11.3M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 422 | break; | 446 | 422 | } | 447 | | | 448 | 11.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 11.3M | } | 450 | | | 451 | 16.2k | if (LIKELY(read_count > 0)) { | 452 | 16.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 16.2k | } | 454 | | | 455 | 16.2k | *n = read_count; | 456 | 16.2k | return Status::OK(); | 457 | 16.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 938 | MutableColumnPtr& dst) override { | 433 | 938 | DCHECK(_parsed); | 434 | 938 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 938 | auto total = *n; | 440 | 938 | auto read_count = 0; | 441 | 938 | _buffer.resize(total); | 442 | 2.39k | for (size_t i = 0; i < total; ++i) { | 443 | 1.45k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.45k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.45k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.45k | } | 450 | | | 451 | 938 | if (LIKELY(read_count > 0)) { | 452 | 938 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 938 | } | 454 | | | 455 | 938 | *n = read_count; | 456 | 938 | return Status::OK(); | 457 | 938 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 482 | MutableColumnPtr& dst) override { | 433 | 482 | DCHECK(_parsed); | 434 | 482 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 482 | auto total = *n; | 440 | 482 | auto read_count = 0; | 441 | 482 | _buffer.resize(total); | 442 | 1.20k | for (size_t i = 0; i < total; ++i) { | 443 | 726 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 726 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 726 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 726 | } | 450 | | | 451 | 482 | if (LIKELY(read_count > 0)) { | 452 | 482 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 482 | } | 454 | | | 455 | 482 | *n = read_count; | 456 | 482 | return Status::OK(); | 457 | 482 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 417 | MutableColumnPtr& dst) override { | 433 | 417 | DCHECK(_parsed); | 434 | 417 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 417 | auto total = *n; | 440 | 417 | auto read_count = 0; | 441 | 417 | _buffer.resize(total); | 442 | 1.34k | for (size_t i = 0; i < total; ++i) { | 443 | 932 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 932 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 932 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 932 | } | 450 | | | 451 | 417 | if (LIKELY(read_count > 0)) { | 452 | 417 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 417 | } | 454 | | | 455 | 417 | *n = read_count; | 456 | 417 | return Status::OK(); | 457 | 417 | } |
|
458 | | |
459 | 826k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 826k | return next_batch<false>(n, dst); |
461 | 826k | } 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 _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 459 | 826k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 826k | return next_batch<false>(n, dst); | 461 | 826k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
462 | | |
463 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 463 | 3 | 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_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv |
464 | | |
465 | 2.32M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 2.08M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 956 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 625 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 138k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 465 | 285 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 15.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 10.6k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 7.48k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 28.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 19.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 5.36k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 1.05k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 465 | 6 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 465 | 3.41k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 891 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 5.04k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 307 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 61 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 105 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 77.7M | char* get_data(size_t index) const { |
468 | 77.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 77.7M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 15.9M | char* get_data(size_t index) const { | 468 | 15.9M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 15.9M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 1.66M | char* get_data(size_t index) const { | 468 | 1.66M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.66M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 50.8k | char* get_data(size_t index) const { | 468 | 50.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 50.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 3.43M | char* get_data(size_t index) const { | 468 | 3.43M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 3.43M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 2.30M | char* get_data(size_t index) const { | 468 | 2.30M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 2.30M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 40.7k | char* get_data(size_t index) const { | 468 | 40.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 40.7k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.17M | char* get_data(size_t index) const { | 468 | 1.17M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.17M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 2.48M | char* get_data(size_t index) const { | 468 | 2.48M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 2.48M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 666k | char* get_data(size_t index) const { | 468 | 666k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 666k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 8.11M | char* get_data(size_t index) const { | 468 | 8.11M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 8.11M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.81M | char* get_data(size_t index) const { | 468 | 7.81M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.81M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 657k | char* get_data(size_t index) const { | 468 | 657k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 657k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 22.4k | char* get_data(size_t index) const { | 468 | 22.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.30k | char* get_data(size_t index) const { | 468 | 1.30k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.30k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 25.0k | char* get_data(size_t index) const { | 468 | 25.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 25.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 21.9M | char* get_data(size_t index) const { | 468 | 21.9M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 21.9M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 11.3M | char* get_data(size_t index) const { | 468 | 11.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 11.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 4.70k | char* get_data(size_t index) const { | 468 | 4.70k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.70k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 11.5k | char* get_data(size_t index) const { | 468 | 11.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 11.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 9.24k | char* get_data(size_t index) const { | 468 | 9.24k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.24k | } |
|
470 | | |
471 | | private: |
472 | | void _copy_next_values(size_t n, void* data) { |
473 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
474 | | } |
475 | | |
476 | | using CppType = typename TypeTraits<Type>::CppType; |
477 | | |
478 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
479 | | |
480 | | Slice _data; |
481 | | PageDecoderOptions _options; |
482 | | bool _parsed; |
483 | | size_t _num_elements; |
484 | | size_t _num_element_after_padding; |
485 | | |
486 | | int _size_of_element; |
487 | | size_t _cur_index; |
488 | | |
489 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
490 | | |
491 | | friend class BinaryDictPageDecoder; |
492 | | }; |
493 | | |
494 | | #include "common/compile_check_end.h" |
495 | | } // namespace segment_v2 |
496 | | } // namespace doris |