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 | 771k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 365k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 53.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 8.99k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 110k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 67.0k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 10.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 11.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 198 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 43.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 294 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.33k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 187 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.67k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 15.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.15k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 794 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 713 | Status init() override { return reset(); } |
|
97 | | |
98 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 141M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 57.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 13.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 436k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 67.5k | 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 | 23.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 11.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 16.4k | 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 | 205 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 86.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 81.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 348 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.32k | 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.26k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 35.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 22.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 | 25.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 5.64k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.66M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.66M | return add_internal<false>(vals, count); |
102 | 1.66M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 762k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 762k | return add_internal<false>(vals, count); | 102 | 762k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 57.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 57.2k | return add_internal<false>(vals, count); | 102 | 57.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 13.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 13.8k | return add_internal<false>(vals, count); | 102 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 436k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 436k | return add_internal<false>(vals, count); | 102 | 436k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 67.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 67.5k | return add_internal<false>(vals, count); | 102 | 67.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 23.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 23.0k | return add_internal<false>(vals, count); | 102 | 23.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 11.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.6k | return add_internal<false>(vals, count); | 102 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 16.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.4k | return add_internal<false>(vals, count); | 102 | 16.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 205 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 205 | return add_internal<false>(vals, count); | 102 | 205 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 86.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 86.6k | return add_internal<false>(vals, count); | 102 | 86.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 81.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 81.1k | return add_internal<false>(vals, count); | 102 | 81.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 348 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 348 | return add_internal<false>(vals, count); | 102 | 348 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.32k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.32k | return add_internal<false>(vals, count); | 102 | 7.32k | } |
_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.26k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.26k | return add_internal<false>(vals, count); | 102 | 5.26k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 35.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 35.4k | return add_internal<false>(vals, count); | 102 | 35.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 22.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 22.0k | return add_internal<false>(vals, count); | 102 | 22.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 | 25.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 25.7k | return add_internal<false>(vals, count); | 102 | 25.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 5.64k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.64k | return add_internal<false>(vals, count); | 102 | 5.64k | } |
|
103 | | |
104 | 142M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 142M | return add_internal<true>(vals, count); |
106 | 142M | } |
107 | | |
108 | | template <bool single> |
109 | 143M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 143M | DCHECK(!_finished); |
111 | 143M | 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 | 143M | uint32_t to_add = cast_set<UInt32>( |
127 | 143M | 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 | 143M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 143M | 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 | 143M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 142M | _count += to_add; |
135 | 142M | _remain_element_capacity -= to_add; |
136 | 142M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 142M | *num_written = to_add; |
139 | 142M | 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 | 141M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 141M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 141M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 141M | 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 | 141M | } |
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 | 142M | return Status::OK(); |
160 | 143M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 762k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 762k | DCHECK(!_finished); | 111 | 762k | 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 | 762k | uint32_t to_add = cast_set<UInt32>( | 127 | 762k | 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 | 762k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 762k | 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 | 762k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 762k | _count += to_add; | 135 | 762k | _remain_element_capacity -= to_add; | 136 | 762k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 762k | *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 | 762k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 762k | return Status::OK(); | 160 | 762k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 141M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 141M | DCHECK(!_finished); | 111 | 141M | 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 | 141M | uint32_t to_add = cast_set<UInt32>( | 127 | 141M | 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 | 141M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 141M | 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 | 141M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 141M | _count += to_add; | 135 | 141M | _remain_element_capacity -= to_add; | 136 | 141M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 141M | *num_written = to_add; | 139 | 141M | 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 | 141M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 141M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 141M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 141M | 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 | 141M | } | 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 | 141M | return Status::OK(); | 160 | 141M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 57.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 57.2k | DCHECK(!_finished); | 111 | 57.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 | 57.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 57.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 | 57.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 57.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 | 57.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 57.2k | _count += to_add; | 135 | 57.2k | _remain_element_capacity -= to_add; | 136 | 57.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 57.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 | 57.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 57.2k | return Status::OK(); | 160 | 57.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 13.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 13.8k | DCHECK(!_finished); | 111 | 13.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 | 13.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 13.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 | 13.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 13.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 | 13.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 13.8k | _count += to_add; | 135 | 13.8k | _remain_element_capacity -= to_add; | 136 | 13.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 13.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 | 13.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 13.8k | return Status::OK(); | 160 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 436k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 436k | DCHECK(!_finished); | 111 | 436k | 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 | 436k | uint32_t to_add = cast_set<UInt32>( | 127 | 436k | 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 | 436k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 436k | 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 | 436k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 436k | _count += to_add; | 135 | 436k | _remain_element_capacity -= to_add; | 136 | 436k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 436k | *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 | 436k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 436k | return Status::OK(); | 160 | 436k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 67.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 67.5k | DCHECK(!_finished); | 111 | 67.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 | 67.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 67.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 | 67.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 67.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 | 67.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 67.5k | _count += to_add; | 135 | 67.5k | _remain_element_capacity -= to_add; | 136 | 67.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 67.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 | 67.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 67.5k | return Status::OK(); | 160 | 67.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 23.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 23.0k | DCHECK(!_finished); | 111 | 23.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 | 23.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 23.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 | 23.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 23.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 | 23.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 23.0k | _count += to_add; | 135 | 23.0k | _remain_element_capacity -= to_add; | 136 | 23.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 23.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 | 23.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 23.0k | return Status::OK(); | 160 | 23.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.6k | DCHECK(!_finished); | 111 | 11.6k | 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.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.6k | 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.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.6k | 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.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.6k | _count += to_add; | 135 | 11.6k | _remain_element_capacity -= to_add; | 136 | 11.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.6k | *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.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.6k | return Status::OK(); | 160 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.4k | DCHECK(!_finished); | 111 | 16.4k | 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 | 16.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.4k | 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 | 16.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.4k | 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 | 16.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.4k | _count += to_add; | 135 | 16.4k | _remain_element_capacity -= to_add; | 136 | 16.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.4k | *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 | 16.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.4k | return Status::OK(); | 160 | 16.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 205 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 205 | DCHECK(!_finished); | 111 | 205 | 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 | 205 | uint32_t to_add = cast_set<UInt32>( | 127 | 205 | 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 | 205 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 205 | 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 | 205 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 205 | _count += to_add; | 135 | 205 | _remain_element_capacity -= to_add; | 136 | 205 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 205 | *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 | 205 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 205 | return Status::OK(); | 160 | 205 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 86.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 86.6k | DCHECK(!_finished); | 111 | 86.6k | 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 | 86.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 86.6k | 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 | 86.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 86.6k | 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 | 86.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 86.6k | _count += to_add; | 135 | 86.6k | _remain_element_capacity -= to_add; | 136 | 86.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 86.6k | *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 | 86.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 86.6k | return Status::OK(); | 160 | 86.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 81.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 81.1k | DCHECK(!_finished); | 111 | 81.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 | 81.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 81.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 | 81.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 81.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 | 81.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 81.1k | _count += to_add; | 135 | 81.1k | _remain_element_capacity -= to_add; | 136 | 81.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 81.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 | 81.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 81.1k | return Status::OK(); | 160 | 81.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 348 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 348 | DCHECK(!_finished); | 111 | 348 | 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 | 348 | uint32_t to_add = cast_set<UInt32>( | 127 | 348 | 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 | 348 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 348 | 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 | 348 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 348 | _count += to_add; | 135 | 348 | _remain_element_capacity -= to_add; | 136 | 348 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 348 | *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 | 348 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 348 | return Status::OK(); | 160 | 348 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.32k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.32k | DCHECK(!_finished); | 111 | 7.32k | 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.32k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.32k | 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.32k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.32k | 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.32k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.32k | _count += to_add; | 135 | 7.32k | _remain_element_capacity -= to_add; | 136 | 7.32k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.32k | *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.32k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.32k | return Status::OK(); | 160 | 7.32k | } |
_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.26k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.26k | DCHECK(!_finished); | 111 | 5.26k | 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.26k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.26k | 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.26k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.26k | 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.26k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.26k | _count += to_add; | 135 | 5.26k | _remain_element_capacity -= to_add; | 136 | 5.26k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.26k | *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.26k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.26k | return Status::OK(); | 160 | 5.26k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 35.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 35.4k | DCHECK(!_finished); | 111 | 35.4k | 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 | 35.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 35.4k | 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 | 35.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 35.4k | 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 | 35.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 35.3k | _count += to_add; | 135 | 35.3k | _remain_element_capacity -= to_add; | 136 | 35.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 35.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 | 35.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 35.3k | return Status::OK(); | 160 | 35.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 22.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 22.0k | DCHECK(!_finished); | 111 | 22.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 | 22.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 22.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 | 22.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 22.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 | 22.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 22.0k | _count += to_add; | 135 | 22.0k | _remain_element_capacity -= to_add; | 136 | 22.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 22.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 | 22.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 22.0k | return Status::OK(); | 160 | 22.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 | 25.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 25.7k | DCHECK(!_finished); | 111 | 25.7k | 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 | 25.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 25.7k | 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 | 25.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 25.7k | 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 | 25.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 25.7k | _count += to_add; | 135 | 25.7k | _remain_element_capacity -= to_add; | 136 | 25.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 25.7k | *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 | 25.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 25.7k | return Status::OK(); | 160 | 25.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.64k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.64k | DCHECK(!_finished); | 111 | 5.64k | 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.64k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.64k | 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.64k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.64k | 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.64k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.64k | _count += to_add; | 135 | 5.64k | _remain_element_capacity -= to_add; | 136 | 5.64k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.64k | *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.64k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.64k | return Status::OK(); | 160 | 5.64k | } |
|
161 | | |
162 | 767k | Status finish(OwnedSlice* slice) override { |
163 | 767k | if (_count > 0) { |
164 | 720k | _first_value = cell(0); |
165 | 720k | _last_value = cell(_count - 1); |
166 | 720k | } |
167 | 767k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 768k | return Status::OK(); |
169 | 767k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 356k | Status finish(OwnedSlice* slice) override { | 163 | 356k | if (_count > 0) { | 164 | 322k | _first_value = cell(0); | 165 | 322k | _last_value = cell(_count - 1); | 166 | 322k | } | 167 | 356k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 356k | return Status::OK(); | 169 | 356k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 52.5k | Status finish(OwnedSlice* slice) override { | 163 | 52.5k | if (_count > 0) { | 164 | 51.8k | _first_value = cell(0); | 165 | 51.8k | _last_value = cell(_count - 1); | 166 | 51.8k | } | 167 | 52.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 52.5k | return Status::OK(); | 169 | 52.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.46k | Status finish(OwnedSlice* slice) override { | 163 | 8.46k | if (_count > 0) { | 164 | 8.39k | _first_value = cell(0); | 165 | 8.39k | _last_value = cell(_count - 1); | 166 | 8.39k | } | 167 | 8.46k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 8.46k | return Status::OK(); | 169 | 8.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 112k | Status finish(OwnedSlice* slice) override { | 163 | 112k | if (_count > 0) { | 164 | 110k | _first_value = cell(0); | 165 | 110k | _last_value = cell(_count - 1); | 166 | 110k | } | 167 | 112k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 112k | return Status::OK(); | 169 | 112k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 66.7k | Status finish(OwnedSlice* slice) override { | 163 | 66.7k | if (_count > 0) { | 164 | 66.7k | _first_value = cell(0); | 165 | 66.7k | _last_value = cell(_count - 1); | 166 | 66.7k | } | 167 | 66.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 66.7k | return Status::OK(); | 169 | 66.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 10.6k | Status finish(OwnedSlice* slice) override { | 163 | 10.6k | if (_count > 0) { | 164 | 10.3k | _first_value = cell(0); | 165 | 10.3k | _last_value = cell(_count - 1); | 166 | 10.3k | } | 167 | 10.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 10.6k | return Status::OK(); | 169 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.0k | Status finish(OwnedSlice* slice) override { | 163 | 11.0k | if (_count > 0) { | 164 | 10.6k | _first_value = cell(0); | 165 | 10.6k | _last_value = cell(_count - 1); | 166 | 10.6k | } | 167 | 11.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.0k | return Status::OK(); | 169 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.3k | Status finish(OwnedSlice* slice) override { | 163 | 14.3k | if (_count > 0) { | 164 | 13.9k | _first_value = cell(0); | 165 | 13.9k | _last_value = cell(_count - 1); | 166 | 13.9k | } | 167 | 14.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.3k | return Status::OK(); | 169 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 210 | Status finish(OwnedSlice* slice) override { | 163 | 210 | if (_count > 0) { | 164 | 205 | _first_value = cell(0); | 165 | 205 | _last_value = cell(_count - 1); | 166 | 205 | } | 167 | 210 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 210 | return Status::OK(); | 169 | 210 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.1k | Status finish(OwnedSlice* slice) override { | 163 | 37.1k | if (_count > 0) { | 164 | 36.1k | _first_value = cell(0); | 165 | 36.1k | _last_value = cell(_count - 1); | 166 | 36.1k | } | 167 | 37.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 37.1k | return Status::OK(); | 169 | 37.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 42.9k | Status finish(OwnedSlice* slice) override { | 163 | 42.9k | if (_count > 0) { | 164 | 41.5k | _first_value = cell(0); | 165 | 41.5k | _last_value = cell(_count - 1); | 166 | 41.5k | } | 167 | 42.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 42.9k | return Status::OK(); | 169 | 42.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 448 | Status finish(OwnedSlice* slice) override { | 163 | 448 | if (_count > 0) { | 164 | 348 | _first_value = cell(0); | 165 | 348 | _last_value = cell(_count - 1); | 166 | 348 | } | 167 | 448 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 448 | return Status::OK(); | 169 | 448 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.52k | Status finish(OwnedSlice* slice) override { | 163 | 7.52k | if (_count > 0) { | 164 | 7.32k | _first_value = cell(0); | 165 | 7.32k | _last_value = cell(_count - 1); | 166 | 7.32k | } | 167 | 7.52k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.53k | return Status::OK(); | 169 | 7.52k | } |
_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.66k | Status finish(OwnedSlice* slice) override { | 163 | 9.66k | if (_count > 0) { | 164 | 4.74k | _first_value = cell(0); | 165 | 4.74k | _last_value = cell(_count - 1); | 166 | 4.74k | } | 167 | 9.66k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.67k | return Status::OK(); | 169 | 9.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 18.9k | Status finish(OwnedSlice* slice) override { | 163 | 18.9k | if (_count > 0) { | 164 | 18.0k | _first_value = cell(0); | 165 | 18.0k | _last_value = cell(_count - 1); | 166 | 18.0k | } | 167 | 18.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 18.9k | return Status::OK(); | 169 | 18.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.1k | Status finish(OwnedSlice* slice) override { | 163 | 16.1k | if (_count > 0) { | 164 | 15.6k | _first_value = cell(0); | 165 | 15.6k | _last_value = cell(_count - 1); | 166 | 15.6k | } | 167 | 16.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.1k | return Status::OK(); | 169 | 16.1k | } |
_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 | 704 | Status finish(OwnedSlice* slice) override { | 163 | 704 | if (_count > 0) { | 164 | 654 | _first_value = cell(0); | 165 | 654 | _last_value = cell(_count - 1); | 166 | 654 | } | 167 | 704 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 704 | return Status::OK(); | 169 | 704 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 627 | Status finish(OwnedSlice* slice) override { | 163 | 627 | if (_count > 0) { | 164 | 592 | _first_value = cell(0); | 165 | 592 | _last_value = cell(_count - 1); | 166 | 592 | } | 167 | 627 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 627 | return Status::OK(); | 169 | 627 | } |
|
170 | | |
171 | 1.84M | Status reset() override { |
172 | 1.84M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.84M | size_t block_size = _options.data_page_size; |
174 | 1.84M | _count = 0; |
175 | 1.84M | _raw_data_size = 0; |
176 | 1.84M | _data.clear(); |
177 | 1.84M | _data.reserve(block_size); |
178 | 1.84M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.84M | << "buffer must be naturally-aligned"; |
180 | 1.84M | _buffer.clear(); |
181 | 1.84M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.84M | _finished = false; |
183 | 1.84M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.84M | }); |
185 | 1.84M | return Status::OK(); |
186 | 1.84M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.02M | Status reset() override { | 172 | 1.02M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.02M | size_t block_size = _options.data_page_size; | 174 | 1.02M | _count = 0; | 175 | 1.02M | _raw_data_size = 0; | 176 | 1.02M | _data.clear(); | 177 | 1.02M | _data.reserve(block_size); | 178 | 1.02M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.02M | << "buffer must be naturally-aligned"; | 180 | 1.02M | _buffer.clear(); | 181 | 1.02M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.02M | _finished = false; | 183 | 1.02M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.02M | }); | 185 | 1.02M | return Status::OK(); | 186 | 1.02M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 106k | Status reset() override { | 172 | 106k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 106k | size_t block_size = _options.data_page_size; | 174 | 106k | _count = 0; | 175 | 106k | _raw_data_size = 0; | 176 | 106k | _data.clear(); | 177 | 106k | _data.reserve(block_size); | 178 | 106k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 106k | << "buffer must be naturally-aligned"; | 180 | 106k | _buffer.clear(); | 181 | 106k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 106k | _finished = false; | 183 | 106k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 106k | }); | 185 | 106k | return Status::OK(); | 186 | 106k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 17.4k | Status reset() override { | 172 | 17.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 17.4k | size_t block_size = _options.data_page_size; | 174 | 17.4k | _count = 0; | 175 | 17.4k | _raw_data_size = 0; | 176 | 17.4k | _data.clear(); | 177 | 17.4k | _data.reserve(block_size); | 178 | 17.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 17.4k | << "buffer must be naturally-aligned"; | 180 | 17.4k | _buffer.clear(); | 181 | 17.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 17.4k | _finished = false; | 183 | 17.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 17.4k | }); | 185 | 17.4k | return Status::OK(); | 186 | 17.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 222k | Status reset() override { | 172 | 222k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 222k | size_t block_size = _options.data_page_size; | 174 | 222k | _count = 0; | 175 | 222k | _raw_data_size = 0; | 176 | 222k | _data.clear(); | 177 | 222k | _data.reserve(block_size); | 178 | 222k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 222k | << "buffer must be naturally-aligned"; | 180 | 222k | _buffer.clear(); | 181 | 222k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 222k | _finished = false; | 183 | 222k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 222k | }); | 185 | 222k | return Status::OK(); | 186 | 222k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 133k | Status reset() override { | 172 | 133k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 133k | size_t block_size = _options.data_page_size; | 174 | 133k | _count = 0; | 175 | 133k | _raw_data_size = 0; | 176 | 133k | _data.clear(); | 177 | 133k | _data.reserve(block_size); | 178 | 133k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 133k | << "buffer must be naturally-aligned"; | 180 | 133k | _buffer.clear(); | 181 | 133k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 133k | _finished = false; | 183 | 133k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 133k | }); | 185 | 134k | return Status::OK(); | 186 | 133k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 21.3k | Status reset() override { | 172 | 21.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 21.3k | size_t block_size = _options.data_page_size; | 174 | 21.3k | _count = 0; | 175 | 21.3k | _raw_data_size = 0; | 176 | 21.3k | _data.clear(); | 177 | 21.3k | _data.reserve(block_size); | 178 | 21.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 21.3k | << "buffer must be naturally-aligned"; | 180 | 21.3k | _buffer.clear(); | 181 | 21.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 21.3k | _finished = false; | 183 | 21.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 21.3k | }); | 185 | 21.3k | return Status::OK(); | 186 | 21.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 22.8k | Status reset() override { | 172 | 22.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.8k | size_t block_size = _options.data_page_size; | 174 | 22.8k | _count = 0; | 175 | 22.8k | _raw_data_size = 0; | 176 | 22.8k | _data.clear(); | 177 | 22.8k | _data.reserve(block_size); | 178 | 22.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.8k | << "buffer must be naturally-aligned"; | 180 | 22.8k | _buffer.clear(); | 181 | 22.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.8k | _finished = false; | 183 | 22.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.8k | }); | 185 | 22.8k | return Status::OK(); | 186 | 22.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 28.8k | Status reset() override { | 172 | 28.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 28.8k | size_t block_size = _options.data_page_size; | 174 | 28.8k | _count = 0; | 175 | 28.8k | _raw_data_size = 0; | 176 | 28.8k | _data.clear(); | 177 | 28.8k | _data.reserve(block_size); | 178 | 28.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 28.8k | << "buffer must be naturally-aligned"; | 180 | 28.8k | _buffer.clear(); | 181 | 28.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 28.8k | _finished = false; | 183 | 28.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 28.8k | }); | 185 | 28.8k | return Status::OK(); | 186 | 28.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 408 | Status reset() override { | 172 | 408 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 408 | size_t block_size = _options.data_page_size; | 174 | 408 | _count = 0; | 175 | 408 | _raw_data_size = 0; | 176 | 408 | _data.clear(); | 177 | 408 | _data.reserve(block_size); | 178 | 408 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 408 | << "buffer must be naturally-aligned"; | 180 | 408 | _buffer.clear(); | 181 | 408 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 408 | _finished = false; | 183 | 408 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 408 | }); | 185 | 408 | return Status::OK(); | 186 | 408 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 73.6k | Status reset() override { | 172 | 73.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 73.6k | size_t block_size = _options.data_page_size; | 174 | 73.6k | _count = 0; | 175 | 73.6k | _raw_data_size = 0; | 176 | 73.6k | _data.clear(); | 177 | 73.6k | _data.reserve(block_size); | 178 | 73.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 73.6k | << "buffer must be naturally-aligned"; | 180 | 73.6k | _buffer.clear(); | 181 | 73.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 73.6k | _finished = false; | 183 | 73.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 73.6k | }); | 185 | 73.6k | return Status::OK(); | 186 | 73.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 86.8k | Status reset() override { | 172 | 86.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 86.8k | size_t block_size = _options.data_page_size; | 174 | 86.8k | _count = 0; | 175 | 86.8k | _raw_data_size = 0; | 176 | 86.8k | _data.clear(); | 177 | 86.8k | _data.reserve(block_size); | 178 | 86.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 86.8k | << "buffer must be naturally-aligned"; | 180 | 86.8k | _buffer.clear(); | 181 | 86.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 86.8k | _finished = false; | 183 | 86.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 86.8k | }); | 185 | 86.9k | return Status::OK(); | 186 | 86.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 742 | Status reset() override { | 172 | 742 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 742 | size_t block_size = _options.data_page_size; | 174 | 742 | _count = 0; | 175 | 742 | _raw_data_size = 0; | 176 | 742 | _data.clear(); | 177 | 742 | _data.reserve(block_size); | 178 | 742 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 742 | << "buffer must be naturally-aligned"; | 180 | 742 | _buffer.clear(); | 181 | 742 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 742 | _finished = false; | 183 | 742 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 742 | }); | 185 | 742 | return Status::OK(); | 186 | 742 | } |
_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 | 286 | Status reset() override { | 172 | 286 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 286 | size_t block_size = _options.data_page_size; | 174 | 286 | _count = 0; | 175 | 286 | _raw_data_size = 0; | 176 | 286 | _data.clear(); | 177 | 286 | _data.reserve(block_size); | 178 | 286 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 286 | << "buffer must be naturally-aligned"; | 180 | 286 | _buffer.clear(); | 181 | 286 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 286 | _finished = false; | 183 | 286 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 286 | }); | 185 | 286 | return Status::OK(); | 186 | 286 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.3k | Status reset() override { | 172 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.3k | size_t block_size = _options.data_page_size; | 174 | 19.3k | _count = 0; | 175 | 19.3k | _raw_data_size = 0; | 176 | 19.3k | _data.clear(); | 177 | 19.3k | _data.reserve(block_size); | 178 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.3k | << "buffer must be naturally-aligned"; | 180 | 19.3k | _buffer.clear(); | 181 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.3k | _finished = false; | 183 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.3k | }); | 185 | 19.3k | return Status::OK(); | 186 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.2k | Status reset() override { | 172 | 31.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.2k | size_t block_size = _options.data_page_size; | 174 | 31.2k | _count = 0; | 175 | 31.2k | _raw_data_size = 0; | 176 | 31.2k | _data.clear(); | 177 | 31.2k | _data.reserve(block_size); | 178 | 31.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.2k | << "buffer must be naturally-aligned"; | 180 | 31.2k | _buffer.clear(); | 181 | 31.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.2k | _finished = false; | 183 | 31.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.2k | }); | 185 | 31.3k | return Status::OK(); | 186 | 31.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.1k | Status reset() override { | 172 | 32.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.1k | size_t block_size = _options.data_page_size; | 174 | 32.1k | _count = 0; | 175 | 32.1k | _raw_data_size = 0; | 176 | 32.1k | _data.clear(); | 177 | 32.1k | _data.reserve(block_size); | 178 | 32.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.1k | << "buffer must be naturally-aligned"; | 180 | 32.1k | _buffer.clear(); | 181 | 32.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.1k | _finished = false; | 183 | 32.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.1k | }); | 185 | 32.1k | return Status::OK(); | 186 | 32.1k | } |
_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.49k | Status reset() override { | 172 | 1.49k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.49k | size_t block_size = _options.data_page_size; | 174 | 1.49k | _count = 0; | 175 | 1.49k | _raw_data_size = 0; | 176 | 1.49k | _data.clear(); | 177 | 1.49k | _data.reserve(block_size); | 178 | 1.49k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.49k | << "buffer must be naturally-aligned"; | 180 | 1.49k | _buffer.clear(); | 181 | 1.49k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.49k | _finished = false; | 183 | 1.49k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.49k | }); | 185 | 1.49k | return Status::OK(); | 186 | 1.49k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.33k | Status reset() override { | 172 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.33k | size_t block_size = _options.data_page_size; | 174 | 1.33k | _count = 0; | 175 | 1.33k | _raw_data_size = 0; | 176 | 1.33k | _data.clear(); | 177 | 1.33k | _data.reserve(block_size); | 178 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.33k | << "buffer must be naturally-aligned"; | 180 | 1.33k | _buffer.clear(); | 181 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.33k | _finished = false; | 183 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.33k | }); | 185 | 1.34k | return Status::OK(); | 186 | 1.33k | } |
|
187 | | |
188 | 2.08M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 2.08M | 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 | 29.9k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 16.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 2.31k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 795 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 2.16k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 731 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.16k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 692 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 785 | 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.49k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.08k | 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 | 139 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 291 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.13k | 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 | 475k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 63.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 52.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 8.46k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 112k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 66.7k | 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 | 10.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.3k | 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 | 210 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 37.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 42.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 448 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.53k | 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.66k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 18.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.1k | 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 | 704 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 627 | 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 | 771k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 365k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 53.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 8.99k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 110k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 66.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 10.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 11.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 198 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 43.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 294 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.36k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 188 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.67k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 15.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 1.15k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 794 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 711 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 767k | OwnedSlice _finish(int final_size_of_type) { |
216 | 767k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 767k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 767k | int padding_elems = num_elems_after_padding - _count; |
221 | 767k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 21.6M | for (int i = 0; i < padding_bytes; i++) { |
223 | 20.9M | _data.push_back(0); |
224 | 20.9M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 767k | _buffer.resize( |
228 | 767k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 767k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 767k | int64_t bytes = |
232 | 767k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 767k | num_elems_after_padding, final_size_of_type, 0); |
234 | 767k | 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 | 767k | encode_fixed32_le(&_buffer[0], _count); |
244 | 767k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 767k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 767k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 767k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 767k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 767k | return _buffer.build(); |
251 | 767k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 356k | OwnedSlice _finish(int final_size_of_type) { | 216 | 356k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 356k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 356k | int padding_elems = num_elems_after_padding - _count; | 221 | 356k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.66M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.30M | _data.push_back(0); | 224 | 6.30M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 356k | _buffer.resize( | 228 | 356k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 356k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 356k | int64_t bytes = | 232 | 356k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 356k | num_elems_after_padding, final_size_of_type, 0); | 234 | 356k | 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 | 356k | encode_fixed32_le(&_buffer[0], _count); | 244 | 356k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 356k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 356k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 356k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 356k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 356k | return _buffer.build(); | 251 | 356k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 52.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 52.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 52.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 52.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 52.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 335k | for (int i = 0; i < padding_bytes; i++) { | 223 | 282k | _data.push_back(0); | 224 | 282k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 52.5k | _buffer.resize( | 228 | 52.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 52.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 52.5k | int64_t bytes = | 232 | 52.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 52.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 52.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 | 52.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 52.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 52.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 52.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 52.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 52.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 52.5k | return _buffer.build(); | 251 | 52.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 8.46k | OwnedSlice _finish(int final_size_of_type) { | 216 | 8.46k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 8.46k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 8.46k | int padding_elems = num_elems_after_padding - _count; | 221 | 8.46k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 92.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 84.4k | _data.push_back(0); | 224 | 84.4k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 8.46k | _buffer.resize( | 228 | 8.46k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 8.46k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 8.46k | int64_t bytes = | 232 | 8.46k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 8.46k | num_elems_after_padding, final_size_of_type, 0); | 234 | 8.46k | 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.46k | encode_fixed32_le(&_buffer[0], _count); | 244 | 8.46k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 8.46k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 8.46k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 8.46k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 8.46k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 8.46k | return _buffer.build(); | 251 | 8.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 112k | OwnedSlice _finish(int final_size_of_type) { | 216 | 112k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 112k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 112k | int padding_elems = num_elems_after_padding - _count; | 221 | 112k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 4.86M | for (int i = 0; i < padding_bytes; i++) { | 223 | 4.75M | _data.push_back(0); | 224 | 4.75M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 112k | _buffer.resize( | 228 | 112k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 112k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 112k | int64_t bytes = | 232 | 112k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 112k | num_elems_after_padding, final_size_of_type, 0); | 234 | 112k | 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 | 112k | encode_fixed32_le(&_buffer[0], _count); | 244 | 112k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 112k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 112k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 112k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 112k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 112k | return _buffer.build(); | 251 | 112k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 66.7k | OwnedSlice _finish(int final_size_of_type) { | 216 | 66.7k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 66.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 66.7k | int padding_elems = num_elems_after_padding - _count; | 221 | 66.7k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.16M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.10M | _data.push_back(0); | 224 | 3.10M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 66.7k | _buffer.resize( | 228 | 66.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 66.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 66.7k | int64_t bytes = | 232 | 66.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 66.7k | num_elems_after_padding, final_size_of_type, 0); | 234 | 66.7k | 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 | 66.7k | encode_fixed32_le(&_buffer[0], _count); | 244 | 66.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 66.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 66.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 66.7k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 66.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 66.7k | return _buffer.build(); | 251 | 66.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 10.6k | OwnedSlice _finish(int final_size_of_type) { | 216 | 10.6k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 10.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 10.6k | int padding_elems = num_elems_after_padding - _count; | 221 | 10.6k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 748k | for (int i = 0; i < padding_bytes; i++) { | 223 | 737k | _data.push_back(0); | 224 | 737k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 10.6k | _buffer.resize( | 228 | 10.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 10.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 10.6k | int64_t bytes = | 232 | 10.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 10.6k | num_elems_after_padding, final_size_of_type, 0); | 234 | 10.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 | 10.6k | encode_fixed32_le(&_buffer[0], _count); | 244 | 10.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 10.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 10.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 10.6k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 10.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 10.6k | return _buffer.build(); | 251 | 10.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 240k | for (int i = 0; i < padding_bytes; i++) { | 223 | 229k | _data.push_back(0); | 224 | 229k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.0k | _buffer.resize( | 228 | 11.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.0k | int64_t bytes = | 232 | 11.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.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 | 11.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.0k | return _buffer.build(); | 251 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 594k | for (int i = 0; i < padding_bytes; i++) { | 223 | 579k | _data.push_back(0); | 224 | 579k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.3k | _buffer.resize( | 228 | 14.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.3k | int64_t bytes = | 232 | 14.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.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 | 14.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.3k | return _buffer.build(); | 251 | 14.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 210 | OwnedSlice _finish(int final_size_of_type) { | 216 | 210 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 210 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 210 | int padding_elems = num_elems_after_padding - _count; | 221 | 210 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.87k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.66k | _data.push_back(0); | 224 | 2.66k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 210 | _buffer.resize( | 228 | 210 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 210 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 210 | int64_t bytes = | 232 | 210 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 210 | num_elems_after_padding, final_size_of_type, 0); | 234 | 210 | 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 | 210 | encode_fixed32_le(&_buffer[0], _count); | 244 | 210 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 210 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 210 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 210 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 210 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 210 | return _buffer.build(); | 251 | 210 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 37.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 37.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 37.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 37.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 37.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 794k | for (int i = 0; i < padding_bytes; i++) { | 223 | 757k | _data.push_back(0); | 224 | 757k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 37.1k | _buffer.resize( | 228 | 37.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 37.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 37.1k | int64_t bytes = | 232 | 37.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 37.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 37.1k | 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 | 37.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 37.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 37.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 37.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 37.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 37.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 37.1k | return _buffer.build(); | 251 | 37.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 42.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 42.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 42.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 42.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 42.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.82M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.77M | _data.push_back(0); | 224 | 1.77M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 42.9k | _buffer.resize( | 228 | 42.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 42.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 42.9k | int64_t bytes = | 232 | 42.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 42.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 42.9k | 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 | 42.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 42.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 42.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 42.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 42.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 42.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 42.9k | return _buffer.build(); | 251 | 42.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 448 | OwnedSlice _finish(int final_size_of_type) { | 216 | 448 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 448 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 448 | int padding_elems = num_elems_after_padding - _count; | 221 | 448 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.40k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.95k | _data.push_back(0); | 224 | 6.95k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 448 | _buffer.resize( | 228 | 448 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 448 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 448 | int64_t bytes = | 232 | 448 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 448 | num_elems_after_padding, final_size_of_type, 0); | 234 | 448 | 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 | 448 | encode_fixed32_le(&_buffer[0], _count); | 244 | 448 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 448 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 448 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 448 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 448 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 448 | return _buffer.build(); | 251 | 448 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.52k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.52k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.52k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.52k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.52k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 394k | for (int i = 0; i < padding_bytes; i++) { | 223 | 386k | _data.push_back(0); | 224 | 386k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.52k | _buffer.resize( | 228 | 7.52k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.52k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.52k | int64_t bytes = | 232 | 7.52k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.52k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.52k | 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.52k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.52k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.52k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.52k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.52k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.52k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.52k | return _buffer.build(); | 251 | 7.52k | } |
_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.76k | for (int i = 0; i < padding_bytes; i++) { | 223 | 5.66k | _data.push_back(0); | 224 | 5.66k | } | 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.66k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.66k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.66k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.66k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.66k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 116k | for (int i = 0; i < padding_bytes; i++) { | 223 | 106k | _data.push_back(0); | 224 | 106k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.66k | _buffer.resize( | 228 | 9.66k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.66k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.66k | int64_t bytes = | 232 | 9.66k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.66k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.66k | 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.66k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.66k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.66k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.66k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.66k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.66k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.66k | return _buffer.build(); | 251 | 9.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 18.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 18.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 18.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 18.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 18.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 501k | for (int i = 0; i < padding_bytes; i++) { | 223 | 482k | _data.push_back(0); | 224 | 482k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 18.9k | _buffer.resize( | 228 | 18.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 18.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 18.9k | int64_t bytes = | 232 | 18.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 18.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 18.9k | 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 | 18.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 18.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 18.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 18.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 18.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 18.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 18.9k | return _buffer.build(); | 251 | 18.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.10M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.08M | _data.push_back(0); | 224 | 1.08M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 16.1k | _buffer.resize( | 228 | 16.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.1k | int64_t bytes = | 232 | 16.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.1k | 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.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.1k | return _buffer.build(); | 251 | 16.1k | } |
_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 | 704 | OwnedSlice _finish(int final_size_of_type) { | 216 | 704 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 704 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 704 | int padding_elems = num_elems_after_padding - _count; | 221 | 704 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 14.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 14.1k | _data.push_back(0); | 224 | 14.1k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 704 | _buffer.resize( | 228 | 704 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 704 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 704 | int64_t bytes = | 232 | 704 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 704 | num_elems_after_padding, final_size_of_type, 0); | 234 | 704 | 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 | 704 | encode_fixed32_le(&_buffer[0], _count); | 244 | 704 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 704 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 704 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 704 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 704 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 704 | return _buffer.build(); | 251 | 704 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 627 | OwnedSlice _finish(int final_size_of_type) { | 216 | 627 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 627 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 627 | int padding_elems = num_elems_after_padding - _count; | 221 | 627 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 50.7k | for (int i = 0; i < padding_bytes; i++) { | 223 | 50.1k | _data.push_back(0); | 224 | 50.1k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 627 | _buffer.resize( | 228 | 627 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 627 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 627 | int64_t bytes = | 232 | 627 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 627 | num_elems_after_padding, final_size_of_type, 0); | 234 | 627 | 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 | 627 | encode_fixed32_le(&_buffer[0], _count); | 244 | 627 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 627 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 627 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 627 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 627 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 627 | return _buffer.build(); | 251 | 627 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.44M | CppType cell(int idx) const { |
256 | 1.44M | DCHECK_GE(idx, 0); |
257 | 1.44M | CppType ret; |
258 | 1.44M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.44M | return ret; |
260 | 1.44M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 644k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 644k | CppType ret; | 258 | 644k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 644k | return ret; | 260 | 644k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 103k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 103k | CppType ret; | 258 | 103k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 103k | return ret; | 260 | 103k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 16.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 16.7k | CppType ret; | 258 | 16.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 16.7k | return ret; | 260 | 16.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 220k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 220k | CppType ret; | 258 | 220k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 220k | return ret; | 260 | 220k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 133k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 133k | CppType ret; | 258 | 133k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 133k | return ret; | 260 | 133k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 20.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 20.6k | CppType ret; | 258 | 20.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 20.6k | return ret; | 260 | 20.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 21.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.3k | CppType ret; | 258 | 21.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.3k | return ret; | 260 | 21.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 27.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 27.9k | CppType ret; | 258 | 27.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 27.9k | return ret; | 260 | 27.9k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 410 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 410 | CppType ret; | 258 | 410 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 410 | return ret; | 260 | 410 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 72.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.2k | CppType ret; | 258 | 72.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.2k | return ret; | 260 | 72.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 83.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 83.0k | CppType ret; | 258 | 83.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 83.0k | return ret; | 260 | 83.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 696 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 696 | CppType ret; | 258 | 696 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 696 | return ret; | 260 | 696 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 14.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 14.6k | CppType ret; | 258 | 14.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 14.6k | return ret; | 260 | 14.6k | } |
_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.49k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.49k | CppType ret; | 258 | 9.49k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.49k | return ret; | 260 | 9.49k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 36.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 36.0k | CppType ret; | 258 | 36.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 36.0k | return ret; | 260 | 36.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.2k | CppType ret; | 258 | 31.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.2k | return ret; | 260 | 31.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.01k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.01k | CppType ret; | 258 | 2.01k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.01k | return ret; | 260 | 2.01k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.30k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.30k | CppType ret; | 258 | 1.30k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.30k | return ret; | 260 | 1.30k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.18k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.18k | CppType ret; | 258 | 1.18k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.18k | return ret; | 260 | 1.18k | } |
|
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.17M | int& size_of_element) { |
277 | 2.17M | 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.17M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.17M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.17M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.17M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.17M | 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.17M | switch (size_of_element) { |
295 | 139k | case 1: |
296 | 162k | case 2: |
297 | 163k | case 3: |
298 | 1.34M | case 4: |
299 | 2.10M | case 8: |
300 | 2.10M | case 12: |
301 | 2.17M | case 16: |
302 | 2.18M | case 32: |
303 | 2.18M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.17M | } |
307 | 2.17M | return Status::OK(); |
308 | 2.17M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.43M | : _data(data), |
315 | 1.43M | _options(options), |
316 | 1.43M | _parsed(false), |
317 | 1.43M | _num_elements(0), |
318 | 1.43M | _num_element_after_padding(0), |
319 | 1.43M | _size_of_element(0), |
320 | 1.43M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 671k | : _data(data), | 315 | 671k | _options(options), | 316 | 671k | _parsed(false), | 317 | 671k | _num_elements(0), | 318 | 671k | _num_element_after_padding(0), | 319 | 671k | _size_of_element(0), | 320 | 671k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 91.0k | : _data(data), | 315 | 91.0k | _options(options), | 316 | 91.0k | _parsed(false), | 317 | 91.0k | _num_elements(0), | 318 | 91.0k | _num_element_after_padding(0), | 319 | 91.0k | _size_of_element(0), | 320 | 91.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.5k | : _data(data), | 315 | 15.5k | _options(options), | 316 | 15.5k | _parsed(false), | 317 | 15.5k | _num_elements(0), | 318 | 15.5k | _num_element_after_padding(0), | 319 | 15.5k | _size_of_element(0), | 320 | 15.5k | _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 | 95.5k | : _data(data), | 315 | 95.5k | _options(options), | 316 | 95.5k | _parsed(false), | 317 | 95.5k | _num_elements(0), | 318 | 95.5k | _num_element_after_padding(0), | 319 | 95.5k | _size_of_element(0), | 320 | 95.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.3k | : _data(data), | 315 | 16.3k | _options(options), | 316 | 16.3k | _parsed(false), | 317 | 16.3k | _num_elements(0), | 318 | 16.3k | _num_element_after_padding(0), | 319 | 16.3k | _size_of_element(0), | 320 | 16.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.5k | : _data(data), | 315 | 19.5k | _options(options), | 316 | 19.5k | _parsed(false), | 317 | 19.5k | _num_elements(0), | 318 | 19.5k | _num_element_after_padding(0), | 319 | 19.5k | _size_of_element(0), | 320 | 19.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 29.3k | : _data(data), | 315 | 29.3k | _options(options), | 316 | 29.3k | _parsed(false), | 317 | 29.3k | _num_elements(0), | 318 | 29.3k | _num_element_after_padding(0), | 319 | 29.3k | _size_of_element(0), | 320 | 29.3k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.50k | : _data(data), | 315 | 1.50k | _options(options), | 316 | 1.50k | _parsed(false), | 317 | 1.50k | _num_elements(0), | 318 | 1.50k | _num_element_after_padding(0), | 319 | 1.50k | _size_of_element(0), | 320 | 1.50k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 59.9k | : _data(data), | 315 | 59.9k | _options(options), | 316 | 59.9k | _parsed(false), | 317 | 59.9k | _num_elements(0), | 318 | 59.9k | _num_element_after_padding(0), | 319 | 59.9k | _size_of_element(0), | 320 | 59.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 67.8k | : _data(data), | 315 | 67.8k | _options(options), | 316 | 67.8k | _parsed(false), | 317 | 67.8k | _num_elements(0), | 318 | 67.8k | _num_element_after_padding(0), | 319 | 67.8k | _size_of_element(0), | 320 | 67.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.15k | : _data(data), | 315 | 2.15k | _options(options), | 316 | 2.15k | _parsed(false), | 317 | 2.15k | _num_elements(0), | 318 | 2.15k | _num_element_after_padding(0), | 319 | 2.15k | _size_of_element(0), | 320 | 2.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 16.1k | : _data(data), | 315 | 16.1k | _options(options), | 316 | 16.1k | _parsed(false), | 317 | 16.1k | _num_elements(0), | 318 | 16.1k | _num_element_after_padding(0), | 319 | 16.1k | _size_of_element(0), | 320 | 16.1k | _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.5k | : _data(data), | 315 | 15.5k | _options(options), | 316 | 15.5k | _parsed(false), | 317 | 15.5k | _num_elements(0), | 318 | 15.5k | _num_element_after_padding(0), | 319 | 15.5k | _size_of_element(0), | 320 | 15.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 39.5k | : _data(data), | 315 | 39.5k | _options(options), | 316 | 39.5k | _parsed(false), | 317 | 39.5k | _num_elements(0), | 318 | 39.5k | _num_element_after_padding(0), | 319 | 39.5k | _size_of_element(0), | 320 | 39.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 29.8k | : _data(data), | 315 | 29.8k | _options(options), | 316 | 29.8k | _parsed(false), | 317 | 29.8k | _num_elements(0), | 318 | 29.8k | _num_element_after_padding(0), | 319 | 29.8k | _size_of_element(0), | 320 | 29.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.80k | : _data(data), | 315 | 1.80k | _options(options), | 316 | 1.80k | _parsed(false), | 317 | 1.80k | _num_elements(0), | 318 | 1.80k | _num_element_after_padding(0), | 319 | 1.80k | _size_of_element(0), | 320 | 1.80k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_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) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.14k | : _data(data), | 315 | 1.14k | _options(options), | 316 | 1.14k | _parsed(false), | 317 | 1.14k | _num_elements(0), | 318 | 1.14k | _num_element_after_padding(0), | 319 | 1.14k | _size_of_element(0), | 320 | 1.14k | _cur_index(0) {} |
|
321 | | |
322 | 1.43M | Status init() override { |
323 | 1.43M | CHECK(!_parsed); |
324 | 1.43M | size_t unused; |
325 | 1.43M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.43M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.43M | if (_data.size != |
329 | 1.43M | _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.43M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.43M | _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.43M | 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.43M | _parsed = true; |
349 | 1.43M | return Status::OK(); |
350 | 1.43M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 671k | Status init() override { | 323 | 671k | CHECK(!_parsed); | 324 | 671k | size_t unused; | 325 | 671k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 671k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 671k | if (_data.size != | 329 | 671k | _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 | 671k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 671k | _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 | 671k | 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 | 671k | _parsed = true; | 349 | 671k | return Status::OK(); | 350 | 671k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 91.0k | Status init() override { | 323 | 91.0k | CHECK(!_parsed); | 324 | 91.0k | size_t unused; | 325 | 91.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 91.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 91.0k | if (_data.size != | 329 | 91.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 | 91.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 91.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 | 91.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 | 91.0k | _parsed = true; | 349 | 91.0k | return Status::OK(); | 350 | 91.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 15.5k | Status init() override { | 323 | 15.5k | CHECK(!_parsed); | 324 | 15.5k | size_t unused; | 325 | 15.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.5k | if (_data.size != | 329 | 15.5k | _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.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.5k | _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.5k | 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.5k | _parsed = true; | 349 | 15.5k | return Status::OK(); | 350 | 15.5k | } |
_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 | 95.5k | Status init() override { | 323 | 95.5k | CHECK(!_parsed); | 324 | 95.5k | size_t unused; | 325 | 95.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 95.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 95.5k | if (_data.size != | 329 | 95.5k | _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 | 95.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 95.5k | _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 | 95.5k | 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 | 95.5k | _parsed = true; | 349 | 95.5k | return Status::OK(); | 350 | 95.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 16.3k | Status init() override { | 323 | 16.3k | CHECK(!_parsed); | 324 | 16.3k | size_t unused; | 325 | 16.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.3k | if (_data.size != | 329 | 16.3k | _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.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.3k | _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.3k | 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.3k | _parsed = true; | 349 | 16.3k | return Status::OK(); | 350 | 16.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 19.5k | Status init() override { | 323 | 19.5k | CHECK(!_parsed); | 324 | 19.5k | size_t unused; | 325 | 19.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.5k | if (_data.size != | 329 | 19.5k | _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 | 19.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.5k | _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 | 19.5k | 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 | 19.5k | _parsed = true; | 349 | 19.5k | return Status::OK(); | 350 | 19.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 29.3k | Status init() override { | 323 | 29.3k | CHECK(!_parsed); | 324 | 29.3k | size_t unused; | 325 | 29.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 29.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 29.3k | if (_data.size != | 329 | 29.3k | _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 | 29.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 29.3k | _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 | 29.3k | 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 | 29.3k | _parsed = true; | 349 | 29.3k | return Status::OK(); | 350 | 29.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.50k | Status init() override { | 323 | 1.50k | CHECK(!_parsed); | 324 | 1.50k | size_t unused; | 325 | 1.50k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.50k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.50k | if (_data.size != | 329 | 1.50k | _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.50k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.50k | _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.50k | 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.50k | _parsed = true; | 349 | 1.50k | return Status::OK(); | 350 | 1.50k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 59.9k | Status init() override { | 323 | 59.9k | CHECK(!_parsed); | 324 | 59.9k | size_t unused; | 325 | 59.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 59.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 59.9k | if (_data.size != | 329 | 59.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 | 59.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 59.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 | 59.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 | 59.9k | _parsed = true; | 349 | 59.9k | return Status::OK(); | 350 | 59.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 67.8k | Status init() override { | 323 | 67.8k | CHECK(!_parsed); | 324 | 67.8k | size_t unused; | 325 | 67.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 67.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 67.8k | if (_data.size != | 329 | 67.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 | 67.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 67.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 | 67.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 | 67.8k | _parsed = true; | 349 | 67.8k | return Status::OK(); | 350 | 67.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.15k | Status init() override { | 323 | 2.15k | CHECK(!_parsed); | 324 | 2.15k | size_t unused; | 325 | 2.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.15k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.15k | if (_data.size != | 329 | 2.15k | _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.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.15k | _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.15k | 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.15k | _parsed = true; | 349 | 2.15k | return Status::OK(); | 350 | 2.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 16.1k | Status init() override { | 323 | 16.1k | CHECK(!_parsed); | 324 | 16.1k | size_t unused; | 325 | 16.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 16.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 16.1k | if (_data.size != | 329 | 16.1k | _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.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 16.1k | _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.1k | 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.1k | _parsed = true; | 349 | 16.1k | return Status::OK(); | 350 | 16.1k | } |
_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.5k | Status init() override { | 323 | 15.5k | CHECK(!_parsed); | 324 | 15.5k | size_t unused; | 325 | 15.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.5k | if (_data.size != | 329 | 15.5k | _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.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.5k | _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.5k | 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.5k | _parsed = true; | 349 | 15.5k | return Status::OK(); | 350 | 15.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 39.5k | Status init() override { | 323 | 39.5k | CHECK(!_parsed); | 324 | 39.5k | size_t unused; | 325 | 39.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 39.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 39.5k | if (_data.size != | 329 | 39.5k | _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 | 39.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 39.5k | _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 | 39.5k | 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 | 39.5k | _parsed = true; | 349 | 39.5k | return Status::OK(); | 350 | 39.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 29.8k | Status init() override { | 323 | 29.8k | CHECK(!_parsed); | 324 | 29.8k | size_t unused; | 325 | 29.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 29.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 29.8k | if (_data.size != | 329 | 29.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 | 29.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 29.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 | 29.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 | 29.8k | _parsed = true; | 349 | 29.8k | return Status::OK(); | 350 | 29.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.80k | Status init() override { | 323 | 1.80k | CHECK(!_parsed); | 324 | 1.80k | size_t unused; | 325 | 1.80k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.80k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.80k | if (_data.size != | 329 | 1.80k | _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.80k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.80k | _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.80k | 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.80k | _parsed = true; | 349 | 1.80k | return Status::OK(); | 350 | 1.80k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv 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 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.14k | Status init() override { | 323 | 1.14k | CHECK(!_parsed); | 324 | 1.14k | size_t unused; | 325 | 1.14k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.14k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.14k | if (_data.size != | 329 | 1.14k | _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.14k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.14k | _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.14k | 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.14k | _parsed = true; | 349 | 1.14k | return Status::OK(); | 350 | 1.14k | } |
|
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 | 1.73M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 1.73M | if (_num_elements == 0) [[unlikely]] { |
361 | 4.55k | 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 | 4.55k | } |
366 | | |
367 | 1.73M | DCHECK_LE(pos, _num_elements); |
368 | 1.73M | _cur_index = pos; |
369 | 1.73M | return Status::OK(); |
370 | 1.73M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 823k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 823k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.75k | 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.75k | } | 366 | | | 367 | 823k | DCHECK_LE(pos, _num_elements); | 368 | 823k | _cur_index = pos; | 369 | 823k | return Status::OK(); | 370 | 823k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 131k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 131k | if (_num_elements == 0) [[unlikely]] { | 361 | 443 | 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 | 443 | } | 366 | | | 367 | 131k | DCHECK_LE(pos, _num_elements); | 368 | 131k | _cur_index = pos; | 369 | 131k | return Status::OK(); | 370 | 131k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.1k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.1k | 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.1k | DCHECK_LE(pos, _num_elements); | 368 | 17.1k | _cur_index = pos; | 369 | 17.1k | return Status::OK(); | 370 | 17.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 239k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 239k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.14k | 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.14k | } | 366 | | | 367 | 239k | DCHECK_LE(pos, _num_elements); | 368 | 239k | _cur_index = pos; | 369 | 239k | return Status::OK(); | 370 | 239k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 16.2k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 16.2k | 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 | 16.2k | DCHECK_LE(pos, _num_elements); | 368 | 16.2k | _cur_index = pos; | 369 | 16.2k | return Status::OK(); | 370 | 16.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 9.07k | Status seek_to_position_in_page(size_t pos) override { | 359 | 9.07k | DCHECK(_parsed) << "Must call init()"; | 360 | 9.07k | if (_num_elements == 0) [[unlikely]] { | 361 | 6 | 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 | 6 | } | 366 | | | 367 | 9.07k | DCHECK_LE(pos, _num_elements); | 368 | 9.07k | _cur_index = pos; | 369 | 9.07k | return Status::OK(); | 370 | 9.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.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 | 17.4k | DCHECK_LE(pos, _num_elements); | 368 | 17.4k | _cur_index = pos; | 369 | 17.4k | return Status::OK(); | 370 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.8k | Status seek_to_position_in_page(size_t pos) override { | 359 | 13.8k | DCHECK(_parsed) << "Must call init()"; | 360 | 13.8k | 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 | 13.8k | DCHECK_LE(pos, _num_elements); | 368 | 13.8k | _cur_index = pos; | 369 | 13.8k | return Status::OK(); | 370 | 13.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.8k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 11.8k | 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.8k | DCHECK_LE(pos, _num_elements); | 368 | 11.8k | _cur_index = pos; | 369 | 11.8k | return Status::OK(); | 370 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 365k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 365k | 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 | 365k | DCHECK_LE(pos, _num_elements); | 368 | 365k | _cur_index = pos; | 369 | 365k | return Status::OK(); | 370 | 365k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 42.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 42.0k | DCHECK(_parsed) << "Must call init()"; | 360 | 42.0k | if (_num_elements == 0) [[unlikely]] { | 361 | 15 | 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 | 15 | } | 366 | | | 367 | 42.0k | DCHECK_LE(pos, _num_elements); | 368 | 42.0k | _cur_index = pos; | 369 | 42.0k | return Status::OK(); | 370 | 42.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.75k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.75k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.75k | 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.75k | DCHECK_LE(pos, _num_elements); | 368 | 7.75k | _cur_index = pos; | 369 | 7.75k | return Status::OK(); | 370 | 7.75k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 6.97k | Status seek_to_position_in_page(size_t pos) override { | 359 | 6.97k | DCHECK(_parsed) << "Must call init()"; | 360 | 6.97k | 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 | 6.97k | DCHECK_LE(pos, _num_elements); | 368 | 6.97k | _cur_index = pos; | 369 | 6.97k | return Status::OK(); | 370 | 6.97k | } |
_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 | 800 | Status seek_to_position_in_page(size_t pos) override { | 359 | 800 | DCHECK(_parsed) << "Must call init()"; | 360 | 800 | if (_num_elements == 0) [[unlikely]] { | 361 | 30 | 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 | 30 | } | 366 | | | 367 | 800 | DCHECK_LE(pos, _num_elements); | 368 | 800 | _cur_index = pos; | 369 | 800 | return Status::OK(); | 370 | 800 | } |
_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 | 67 | Status seek_to_position_in_page(size_t pos) override { | 359 | 67 | DCHECK(_parsed) << "Must call init()"; | 360 | 67 | 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 | 67 | DCHECK_LE(pos, _num_elements); | 368 | 67 | _cur_index = pos; | 369 | 67 | return Status::OK(); | 370 | 67 | } |
_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 | 2.99M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.99M | DCHECK(_parsed); |
413 | 2.99M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.99M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.99M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.99M | *n = max_fetch; |
422 | 2.99M | if constexpr (forward_index) { |
423 | 2.18M | _cur_index += max_fetch; |
424 | 2.18M | } |
425 | | |
426 | 2.99M | return Status::OK(); |
427 | 2.99M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 313k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 313k | DCHECK(_parsed); | 413 | 313k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 313k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 313k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 313k | *n = max_fetch; | 422 | 313k | if constexpr (forward_index) { | 423 | 313k | _cur_index += max_fetch; | 424 | 313k | } | 425 | | | 426 | 313k | return Status::OK(); | 427 | 313k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 550k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 550k | DCHECK(_parsed); | 413 | 550k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 550k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 550k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 550k | *n = max_fetch; | 422 | 550k | if constexpr (forward_index) { | 423 | 550k | _cur_index += max_fetch; | 424 | 550k | } | 425 | | | 426 | 550k | return Status::OK(); | 427 | 550k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 11.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 11.4k | DCHECK(_parsed); | 413 | 11.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 11.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 11.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 11.4k | *n = max_fetch; | 422 | 11.4k | if constexpr (forward_index) { | 423 | 11.4k | _cur_index += max_fetch; | 424 | 11.4k | } | 425 | | | 426 | 11.4k | return Status::OK(); | 427 | 11.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 110k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 110k | DCHECK(_parsed); | 413 | 110k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 110k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 110k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 110k | *n = max_fetch; | 422 | 110k | if constexpr (forward_index) { | 423 | 110k | _cur_index += max_fetch; | 424 | 110k | } | 425 | | | 426 | 110k | return Status::OK(); | 427 | 110k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 461k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 461k | DCHECK(_parsed); | 413 | 461k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 461k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 461k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 461k | *n = max_fetch; | 422 | 461k | if constexpr (forward_index) { | 423 | 461k | _cur_index += max_fetch; | 424 | 461k | } | 425 | | | 426 | 461k | return Status::OK(); | 427 | 461k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 816k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 816k | DCHECK(_parsed); | 413 | 816k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 816k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 816k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 816k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 816k | return Status::OK(); | 427 | 816k | } |
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 | 24.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 24.3k | DCHECK(_parsed); | 413 | 24.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 24.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 24.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 24.3k | *n = max_fetch; | 422 | 24.3k | if constexpr (forward_index) { | 423 | 24.3k | _cur_index += max_fetch; | 424 | 24.3k | } | 425 | | | 426 | 24.3k | return Status::OK(); | 427 | 24.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 14.5k | DCHECK(_parsed); | 413 | 14.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 14.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 14.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 14.5k | *n = max_fetch; | 422 | 14.5k | if constexpr (forward_index) { | 423 | 14.5k | _cur_index += max_fetch; | 424 | 14.5k | } | 425 | | | 426 | 14.5k | return Status::OK(); | 427 | 14.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 29.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 29.5k | DCHECK(_parsed); | 413 | 29.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 29.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 29.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 29.5k | *n = max_fetch; | 422 | 29.5k | if constexpr (forward_index) { | 423 | 29.5k | _cur_index += max_fetch; | 424 | 29.5k | } | 425 | | | 426 | 29.5k | return Status::OK(); | 427 | 29.5k | } |
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.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.81k | DCHECK(_parsed); | 413 | 3.81k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.81k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.81k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.81k | *n = max_fetch; | 422 | 3.81k | if constexpr (forward_index) { | 423 | 3.81k | _cur_index += max_fetch; | 424 | 3.81k | } | 425 | | | 426 | 3.81k | return Status::OK(); | 427 | 3.81k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 479k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 479k | DCHECK(_parsed); | 413 | 479k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 479k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 479k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 479k | *n = max_fetch; | 422 | 479k | if constexpr (forward_index) { | 423 | 479k | _cur_index += max_fetch; | 424 | 479k | } | 425 | | | 426 | 479k | return Status::OK(); | 427 | 479k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 82.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 82.9k | DCHECK(_parsed); | 413 | 82.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 82.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 82.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 82.9k | *n = max_fetch; | 422 | 82.9k | if constexpr (forward_index) { | 423 | 82.9k | _cur_index += max_fetch; | 424 | 82.9k | } | 425 | | | 426 | 82.9k | return Status::OK(); | 427 | 82.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 | 984 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 984 | DCHECK(_parsed); | 413 | 984 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 984 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 984 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 984 | *n = max_fetch; | 422 | 984 | if constexpr (forward_index) { | 423 | 984 | _cur_index += max_fetch; | 424 | 984 | } | 425 | | | 426 | 984 | return Status::OK(); | 427 | 984 | } |
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.45k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.45k | DCHECK(_parsed); | 413 | 7.45k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.45k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.45k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.45k | *n = max_fetch; | 422 | 7.45k | if constexpr (forward_index) { | 423 | 7.45k | _cur_index += max_fetch; | 424 | 7.45k | } | 425 | | | 426 | 7.45k | return Status::OK(); | 427 | 7.45k | } |
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 | 9.55k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 9.55k | DCHECK(_parsed); | 413 | 9.55k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 9.55k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 9.55k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 9.55k | *n = max_fetch; | 422 | 9.55k | if constexpr (forward_index) { | 423 | 9.55k | _cur_index += max_fetch; | 424 | 9.55k | } | 425 | | | 426 | 9.55k | return Status::OK(); | 427 | 9.55k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 43.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 43.2k | DCHECK(_parsed); | 413 | 43.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 43.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 43.2k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 43.2k | *n = max_fetch; | 422 | 43.2k | if constexpr (forward_index) { | 423 | 43.2k | _cur_index += max_fetch; | 424 | 43.2k | } | 425 | | | 426 | 43.2k | return Status::OK(); | 427 | 43.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 26.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 26.5k | DCHECK(_parsed); | 413 | 26.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 26.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 26.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 26.5k | *n = max_fetch; | 422 | 26.5k | if constexpr (forward_index) { | 423 | 26.5k | _cur_index += max_fetch; | 424 | 26.5k | } | 425 | | | 426 | 26.5k | return Status::OK(); | 427 | 26.5k | } |
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 | 3.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.23k | 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.23k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.23k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.23k | *n = max_fetch; | 422 | 3.23k | if constexpr (forward_index) { | 423 | 3.23k | _cur_index += max_fetch; | 424 | 3.23k | } | 425 | | | 426 | 3.23k | return Status::OK(); | 427 | 3.23k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 5.75k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 5.75k | DCHECK(_parsed); | 413 | 5.75k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 5.75k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 5.75k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 5.75k | *n = max_fetch; | 422 | 5.75k | if constexpr (forward_index) { | 423 | 5.75k | _cur_index += max_fetch; | 424 | 5.75k | } | 425 | | | 426 | 5.75k | return Status::OK(); | 427 | 5.75k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 2.18M | 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 | 313k | 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 | 550k | 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 | 11.4k | 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 | 110k | 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 | 461k | 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 | 24.3k | 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 | 14.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 29.5k | 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.81k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 479k | 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 | 82.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 | 984 | 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.45k | 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 | 9.55k | 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 | 43.2k | 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 | 26.5k | 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 | 3.23k | 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 | 5.75k | 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 | 380k | MutableColumnPtr& dst) override { |
433 | 380k | DCHECK(_parsed); |
434 | 380k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 380k | auto total = *n; |
440 | 380k | auto read_count = 0; |
441 | 380k | _buffer.resize(total); |
442 | 97.0M | for (size_t i = 0; i < total; ++i) { |
443 | 96.6M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 96.6M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 10.4k | break; |
446 | 10.4k | } |
447 | | |
448 | 96.6M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 96.6M | } |
450 | | |
451 | 380k | if (LIKELY(read_count > 0)) { |
452 | 380k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 380k | } |
454 | | |
455 | 380k | *n = read_count; |
456 | 380k | return Status::OK(); |
457 | 380k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 69.8k | MutableColumnPtr& dst) override { | 433 | 69.8k | DCHECK(_parsed); | 434 | 69.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 69.8k | auto total = *n; | 440 | 69.8k | auto read_count = 0; | 441 | 69.8k | _buffer.resize(total); | 442 | 12.4M | for (size_t i = 0; i < total; ++i) { | 443 | 12.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 12.3M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.64k | break; | 446 | 1.64k | } | 447 | | | 448 | 12.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 12.3M | } | 450 | | | 451 | 69.8k | if (LIKELY(read_count > 0)) { | 452 | 69.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 69.8k | } | 454 | | | 455 | 69.8k | *n = read_count; | 456 | 69.8k | return Status::OK(); | 457 | 69.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.4k | MutableColumnPtr& dst) override { | 433 | 31.4k | DCHECK(_parsed); | 434 | 31.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.4k | auto total = *n; | 440 | 31.4k | auto read_count = 0; | 441 | 31.4k | _buffer.resize(total); | 442 | 3.73M | for (size_t i = 0; i < total; ++i) { | 443 | 3.69M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.69M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 43 | break; | 446 | 43 | } | 447 | | | 448 | 3.69M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.69M | } | 450 | | | 451 | 31.4k | if (LIKELY(read_count > 0)) { | 452 | 31.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.4k | } | 454 | | | 455 | 31.4k | *n = read_count; | 456 | 31.4k | return Status::OK(); | 457 | 31.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 8.53k | MutableColumnPtr& dst) override { | 433 | 8.53k | DCHECK(_parsed); | 434 | 8.53k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 8.53k | auto total = *n; | 440 | 8.53k | auto read_count = 0; | 441 | 8.53k | _buffer.resize(total); | 442 | 725k | for (size_t i = 0; i < total; ++i) { | 443 | 716k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 716k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 13 | break; | 446 | 13 | } | 447 | | | 448 | 716k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 716k | } | 450 | | | 451 | 8.53k | if (LIKELY(read_count > 0)) { | 452 | 8.53k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 8.53k | } | 454 | | | 455 | 8.53k | *n = read_count; | 456 | 8.53k | return Status::OK(); | 457 | 8.53k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 74.6k | MutableColumnPtr& dst) override { | 433 | 74.6k | DCHECK(_parsed); | 434 | 74.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 74.6k | auto total = *n; | 440 | 74.6k | auto read_count = 0; | 441 | 74.6k | _buffer.resize(total); | 442 | 22.7M | for (size_t i = 0; i < total; ++i) { | 443 | 22.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 22.7M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.07k | break; | 446 | 1.07k | } | 447 | | | 448 | 22.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 22.7M | } | 450 | | | 451 | 74.6k | if (LIKELY(read_count > 0)) { | 452 | 74.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 74.6k | } | 454 | | | 455 | 74.6k | *n = read_count; | 456 | 74.6k | return Status::OK(); | 457 | 74.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 35.5k | MutableColumnPtr& dst) override { | 433 | 35.5k | DCHECK(_parsed); | 434 | 35.5k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 35.5k | auto total = *n; | 440 | 35.5k | auto read_count = 0; | 441 | 35.5k | _buffer.resize(total); | 442 | 3.96M | for (size_t i = 0; i < total; ++i) { | 443 | 3.92M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.92M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 937 | break; | 446 | 937 | } | 447 | | | 448 | 3.92M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.92M | } | 450 | | | 451 | 35.5k | if (LIKELY(read_count > 0)) { | 452 | 35.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 35.5k | } | 454 | | | 455 | 35.5k | *n = read_count; | 456 | 35.5k | return Status::OK(); | 457 | 35.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 9.58k | MutableColumnPtr& dst) override { | 433 | 9.58k | DCHECK(_parsed); | 434 | 9.58k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 9.58k | auto total = *n; | 440 | 9.58k | auto read_count = 0; | 441 | 9.58k | _buffer.resize(total); | 442 | 1.96M | for (size_t i = 0; i < total; ++i) { | 443 | 1.95M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.95M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 242 | break; | 446 | 242 | } | 447 | | | 448 | 1.95M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.95M | } | 450 | | | 451 | 9.58k | if (LIKELY(read_count > 0)) { | 452 | 9.58k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 9.58k | } | 454 | | | 455 | 9.58k | *n = read_count; | 456 | 9.58k | return Status::OK(); | 457 | 9.58k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.4k | MutableColumnPtr& dst) override { | 433 | 10.4k | DCHECK(_parsed); | 434 | 10.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.4k | auto total = *n; | 440 | 10.4k | auto read_count = 0; | 441 | 10.4k | _buffer.resize(total); | 442 | 1.17M | for (size_t i = 0; i < total; ++i) { | 443 | 1.16M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.16M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 29 | break; | 446 | 29 | } | 447 | | | 448 | 1.16M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.16M | } | 450 | | | 451 | 10.4k | if (LIKELY(read_count > 0)) { | 452 | 10.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.4k | } | 454 | | | 455 | 10.4k | *n = read_count; | 456 | 10.4k | return Status::OK(); | 457 | 10.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 14.0k | MutableColumnPtr& dst) override { | 433 | 14.0k | DCHECK(_parsed); | 434 | 14.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 14.0k | auto total = *n; | 440 | 14.0k | auto read_count = 0; | 441 | 14.0k | _buffer.resize(total); | 442 | 2.46M | for (size_t i = 0; i < total; ++i) { | 443 | 2.44M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 2.44M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 432 | break; | 446 | 432 | } | 447 | | | 448 | 2.44M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 2.44M | } | 450 | | | 451 | 14.0k | if (LIKELY(read_count > 0)) { | 452 | 14.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 14.0k | } | 454 | | | 455 | 14.0k | *n = read_count; | 456 | 14.0k | return Status::OK(); | 457 | 14.0k | } |
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.05k | MutableColumnPtr& dst) override { | 433 | 2.05k | DCHECK(_parsed); | 434 | 2.05k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.05k | auto total = *n; | 440 | 2.05k | auto read_count = 0; | 441 | 2.05k | _buffer.resize(total); | 442 | 567k | for (size_t i = 0; i < total; ++i) { | 443 | 565k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 565k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 11 | break; | 446 | 11 | } | 447 | | | 448 | 565k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 565k | } | 450 | | | 451 | 2.05k | if (LIKELY(read_count > 0)) { | 452 | 2.05k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.05k | } | 454 | | | 455 | 2.05k | *n = read_count; | 456 | 2.05k | return Status::OK(); | 457 | 2.05k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.0k | MutableColumnPtr& dst) override { | 433 | 30.0k | DCHECK(_parsed); | 434 | 30.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.0k | auto total = *n; | 440 | 30.0k | auto read_count = 0; | 441 | 30.0k | _buffer.resize(total); | 442 | 6.34M | for (size_t i = 0; i < total; ++i) { | 443 | 6.32M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.32M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 704 | break; | 446 | 704 | } | 447 | | | 448 | 6.31M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.31M | } | 450 | | | 451 | 30.0k | if (LIKELY(read_count > 0)) { | 452 | 30.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.0k | } | 454 | | | 455 | 30.0k | *n = read_count; | 456 | 30.0k | return Status::OK(); | 457 | 30.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.5k | MutableColumnPtr& dst) override { | 433 | 31.5k | DCHECK(_parsed); | 434 | 31.5k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.5k | auto total = *n; | 440 | 31.5k | auto read_count = 0; | 441 | 31.5k | _buffer.resize(total); | 442 | 7.70M | for (size_t i = 0; i < total; ++i) { | 443 | 7.67M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.67M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 82 | break; | 446 | 82 | } | 447 | | | 448 | 7.67M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.67M | } | 450 | | | 451 | 31.5k | if (LIKELY(read_count > 0)) { | 452 | 31.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.5k | } | 454 | | | 455 | 31.5k | *n = read_count; | 456 | 31.5k | return Status::OK(); | 457 | 31.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.19k | MutableColumnPtr& dst) override { | 433 | 2.19k | DCHECK(_parsed); | 434 | 2.19k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.19k | auto total = *n; | 440 | 2.19k | auto read_count = 0; | 441 | 2.19k | _buffer.resize(total); | 442 | 541k | for (size_t i = 0; i < total; ++i) { | 443 | 539k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 539k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 77 | break; | 446 | 77 | } | 447 | | | 448 | 539k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 539k | } | 450 | | | 451 | 2.19k | if (LIKELY(read_count > 0)) { | 452 | 2.19k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.19k | } | 454 | | | 455 | 2.19k | *n = read_count; | 456 | 2.19k | return Status::OK(); | 457 | 2.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 12.7k | MutableColumnPtr& dst) override { | 433 | 12.7k | DCHECK(_parsed); | 434 | 12.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 12.7k | auto total = *n; | 440 | 12.7k | auto read_count = 0; | 441 | 12.7k | _buffer.resize(total); | 442 | 27.1k | for (size_t i = 0; i < total; ++i) { | 443 | 14.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.3k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.3k | } | 450 | | | 451 | 12.8k | if (LIKELY(read_count > 0)) { | 452 | 12.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 12.8k | } | 454 | | | 455 | 12.7k | *n = read_count; | 456 | 12.7k | return Status::OK(); | 457 | 12.7k | } |
_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.65k | MutableColumnPtr& dst) override { | 433 | 4.65k | DCHECK(_parsed); | 434 | 4.65k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.65k | auto total = *n; | 440 | 4.65k | auto read_count = 0; | 441 | 4.65k | _buffer.resize(total); | 442 | 19.2k | 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.65k | if (LIKELY(read_count > 0)) { | 452 | 4.65k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.65k | } | 454 | | | 455 | 4.65k | *n = read_count; | 456 | 4.65k | return Status::OK(); | 457 | 4.65k | } |
_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.5M | for (size_t i = 0; i < total; ++i) { | 443 | 21.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 21.5M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 4.73k | break; | 446 | 4.73k | } | 447 | | | 448 | 21.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 21.5M | } | 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 | 15.6k | MutableColumnPtr& dst) override { | 433 | 15.6k | DCHECK(_parsed); | 434 | 15.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.6k | auto total = *n; | 440 | 15.6k | auto read_count = 0; | 441 | 15.6k | _buffer.resize(total); | 442 | 11.0M | for (size_t i = 0; i < total; ++i) { | 443 | 11.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 11.0M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 408 | break; | 446 | 408 | } | 447 | | | 448 | 11.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 11.0M | } | 450 | | | 451 | 15.6k | if (LIKELY(read_count > 0)) { | 452 | 15.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.6k | } | 454 | | | 455 | 15.6k | *n = read_count; | 456 | 15.6k | return Status::OK(); | 457 | 15.6k | } |
_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 | 474 | MutableColumnPtr& dst) override { | 433 | 474 | DCHECK(_parsed); | 434 | 474 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 474 | auto total = *n; | 440 | 474 | auto read_count = 0; | 441 | 474 | _buffer.resize(total); | 442 | 1.19k | for (size_t i = 0; i < total; ++i) { | 443 | 718 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 718 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 718 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 718 | } | 450 | | | 451 | 474 | if (LIKELY(read_count > 0)) { | 452 | 473 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 473 | } | 454 | | | 455 | 474 | *n = read_count; | 456 | 474 | return Status::OK(); | 457 | 474 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 416 | MutableColumnPtr& dst) override { | 433 | 416 | DCHECK(_parsed); | 434 | 416 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 416 | auto total = *n; | 440 | 416 | auto read_count = 0; | 441 | 416 | _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 | 416 | *n = read_count; | 456 | 416 | return Status::OK(); | 457 | 416 | } |
|
458 | | |
459 | 817k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 817k | return next_batch<false>(n, dst); |
461 | 817k | } 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 | 817k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 817k | return next_batch<false>(n, dst); | 461 | 817k | } |
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 | 590k | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 259k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 16.4k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 15.0k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 201k | 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 | 3.81k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 15.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 11.1k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 7.53k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 29.1k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 14.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 5.98k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 1.06k | 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.35k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 778 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 4.93k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 48 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 103 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 100M | char* get_data(size_t index) const { |
468 | 100M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 100M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 13.6M | char* get_data(size_t index) const { | 468 | 13.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 13.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 4.25M | char* get_data(size_t index) const { | 468 | 4.25M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.25M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 728k | char* get_data(size_t index) const { | 468 | 728k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 728k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 22.8M | char* get_data(size_t index) const { | 468 | 22.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 5.20M | char* get_data(size_t index) const { | 468 | 5.20M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.20M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 1.97M | char* get_data(size_t index) const { | 468 | 1.97M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.97M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.18M | char* get_data(size_t index) const { | 468 | 1.18M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.18M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 2.47M | char* get_data(size_t index) const { | 468 | 2.47M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 2.47M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 568k | char* get_data(size_t index) const { | 468 | 568k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 568k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 6.79M | char* get_data(size_t index) const { | 468 | 6.79M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.79M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.75M | char* get_data(size_t index) const { | 468 | 7.75M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.75M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 540k | char* get_data(size_t index) const { | 468 | 540k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 540k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 21.7k | char* get_data(size_t index) const { | 468 | 21.7k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 21.7k | } |
_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 | 24.1k | char* get_data(size_t index) const { | 468 | 24.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 24.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 21.5M | char* get_data(size_t index) const { | 468 | 21.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 21.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 11.0M | char* get_data(size_t index) const { | 468 | 11.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 11.0M | } |
_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 | 3.95k | char* get_data(size_t index) const { | 468 | 3.95k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 3.95k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 6.68k | char* get_data(size_t index) const { | 468 | 6.68k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 6.68k | } |
|
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 |