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 | 717k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 394k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 29.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 5.39k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 47.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 72.3k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 7.09k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 12.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 15.0k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 37.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 47.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 283 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 6.92k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 201 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.82k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 16.2k | 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 | 803 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 715 | Status init() override { return reset(); } |
|
97 | | |
98 | 158M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 158M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 38.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 8.02k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 320k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 73.1k | 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 | 47.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 12.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 17.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 120k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 119k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 337 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 6.83k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 99 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.38k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 33.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 49.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.36k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 35.7k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 8.14k | 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 | 767k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 767k | return add_internal<false>(vals, count); | 102 | 767k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 38.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 38.8k | return add_internal<false>(vals, count); | 102 | 38.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 8.02k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 8.02k | return add_internal<false>(vals, count); | 102 | 8.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 320k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 320k | return add_internal<false>(vals, count); | 102 | 320k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 73.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 73.1k | return add_internal<false>(vals, count); | 102 | 73.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 47.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 47.1k | return add_internal<false>(vals, count); | 102 | 47.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 12.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 12.1k | return add_internal<false>(vals, count); | 102 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 17.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 17.2k | return add_internal<false>(vals, count); | 102 | 17.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 192 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 192 | return add_internal<false>(vals, count); | 102 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 120k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 120k | return add_internal<false>(vals, count); | 102 | 120k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 119k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 119k | return add_internal<false>(vals, count); | 102 | 119k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 337 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 337 | return add_internal<false>(vals, count); | 102 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 6.83k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 6.83k | return add_internal<false>(vals, count); | 102 | 6.83k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 99 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 99 | return add_internal<false>(vals, count); | 102 | 99 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.38k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.38k | return add_internal<false>(vals, count); | 102 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 33.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 33.0k | return add_internal<false>(vals, count); | 102 | 33.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 49.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 49.9k | return add_internal<false>(vals, count); | 102 | 49.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.36k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.36k | return add_internal<false>(vals, count); | 102 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 35.7k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 35.7k | return add_internal<false>(vals, count); | 102 | 35.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 8.14k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 8.14k | return add_internal<false>(vals, count); | 102 | 8.14k | } |
|
103 | | |
104 | 159M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 159M | return add_internal<true>(vals, count); |
106 | 159M | } |
107 | | |
108 | | template <bool single> |
109 | 159M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 159M | DCHECK(!_finished); |
111 | 159M | 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 | 159M | uint32_t to_add = cast_set<UInt32>( |
127 | 159M | 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 | 159M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 159M | 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 | 159M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 159M | _count += to_add; |
135 | 159M | _remain_element_capacity -= to_add; |
136 | 159M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 159M | *num_written = to_add; |
139 | 159M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 158M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 158M | 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 | 158M | } |
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 | 159M | return Status::OK(); |
160 | 159M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 767k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 767k | DCHECK(!_finished); | 111 | 767k | 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 | 767k | uint32_t to_add = cast_set<UInt32>( | 127 | 767k | 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 | 767k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 767k | 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 | 767k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 767k | _count += to_add; | 135 | 767k | _remain_element_capacity -= to_add; | 136 | 767k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 767k | *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 | 767k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 767k | return Status::OK(); | 160 | 767k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 158M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 158M | DCHECK(!_finished); | 111 | 158M | 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 | 158M | uint32_t to_add = cast_set<UInt32>( | 127 | 158M | 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 | 158M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 158M | 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 | 158M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 158M | _count += to_add; | 135 | 158M | _remain_element_capacity -= to_add; | 136 | 158M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 158M | *num_written = to_add; | 139 | 158M | 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 | 158M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 158M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 158M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 158M | 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 | 158M | } | 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 | 158M | return Status::OK(); | 160 | 158M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 38.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 38.8k | DCHECK(!_finished); | 111 | 38.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 | 38.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 38.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 | 38.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 38.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 | 38.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 38.8k | _count += to_add; | 135 | 38.8k | _remain_element_capacity -= to_add; | 136 | 38.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 38.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 | 38.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 38.8k | return Status::OK(); | 160 | 38.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 8.02k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 8.02k | DCHECK(!_finished); | 111 | 8.02k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 8.02k | uint32_t to_add = cast_set<UInt32>( | 127 | 8.02k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 8.02k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 8.02k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 8.02k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 8.02k | _count += to_add; | 135 | 8.02k | _remain_element_capacity -= to_add; | 136 | 8.02k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 8.02k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 8.02k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 8.02k | return Status::OK(); | 160 | 8.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 320k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 320k | DCHECK(!_finished); | 111 | 320k | 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 | 320k | uint32_t to_add = cast_set<UInt32>( | 127 | 320k | 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 | 320k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 320k | 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 | 320k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 320k | _count += to_add; | 135 | 320k | _remain_element_capacity -= to_add; | 136 | 320k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 320k | *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 | 320k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 320k | return Status::OK(); | 160 | 320k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 73.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 73.1k | DCHECK(!_finished); | 111 | 73.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 | 73.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 73.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 | 73.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 73.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 | 73.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 73.1k | _count += to_add; | 135 | 73.1k | _remain_element_capacity -= to_add; | 136 | 73.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 73.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 | 73.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 73.1k | return Status::OK(); | 160 | 73.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 47.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 47.1k | DCHECK(!_finished); | 111 | 47.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 | 47.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 47.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 | 47.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 47.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 | 47.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 47.1k | _count += to_add; | 135 | 47.1k | _remain_element_capacity -= to_add; | 136 | 47.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 47.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 | 47.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 47.1k | return Status::OK(); | 160 | 47.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 12.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 12.1k | DCHECK(!_finished); | 111 | 12.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 12.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 12.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 12.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 12.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 12.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 12.1k | _count += to_add; | 135 | 12.1k | _remain_element_capacity -= to_add; | 136 | 12.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 12.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 12.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 12.1k | return Status::OK(); | 160 | 12.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 17.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 17.2k | DCHECK(!_finished); | 111 | 17.2k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 17.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 17.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 17.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 17.2k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 17.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 17.2k | _count += to_add; | 135 | 17.2k | _remain_element_capacity -= to_add; | 136 | 17.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 17.2k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 17.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 17.2k | return Status::OK(); | 160 | 17.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 192 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 192 | DCHECK(!_finished); | 111 | 192 | 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 | 192 | uint32_t to_add = cast_set<UInt32>( | 127 | 192 | 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 | 192 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 192 | 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 | 192 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 192 | _count += to_add; | 135 | 192 | _remain_element_capacity -= to_add; | 136 | 192 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 192 | *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 | 192 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 192 | return Status::OK(); | 160 | 192 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 120k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 120k | DCHECK(!_finished); | 111 | 120k | 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 | 120k | uint32_t to_add = cast_set<UInt32>( | 127 | 120k | 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 | 120k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 120k | 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 | 120k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 120k | _count += to_add; | 135 | 120k | _remain_element_capacity -= to_add; | 136 | 120k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 120k | *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 | 120k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 120k | return Status::OK(); | 160 | 120k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 119k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 119k | DCHECK(!_finished); | 111 | 119k | 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 | 119k | uint32_t to_add = cast_set<UInt32>( | 127 | 119k | 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 | 119k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 119k | 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 | 119k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 119k | _count += to_add; | 135 | 119k | _remain_element_capacity -= to_add; | 136 | 119k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 119k | *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 | 119k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 119k | return Status::OK(); | 160 | 119k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 337 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 337 | DCHECK(!_finished); | 111 | 337 | 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 | 337 | uint32_t to_add = cast_set<UInt32>( | 127 | 337 | 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 | 337 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 337 | 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 | 337 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 337 | _count += to_add; | 135 | 337 | _remain_element_capacity -= to_add; | 136 | 337 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 337 | *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 | 337 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 337 | return Status::OK(); | 160 | 337 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 6.83k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 6.83k | DCHECK(!_finished); | 111 | 6.83k | 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 | 6.83k | uint32_t to_add = cast_set<UInt32>( | 127 | 6.83k | 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 | 6.83k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 6.83k | 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 | 6.83k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 6.83k | _count += to_add; | 135 | 6.83k | _remain_element_capacity -= to_add; | 136 | 6.83k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 6.83k | *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 | 6.83k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 6.83k | return Status::OK(); | 160 | 6.83k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 99 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 99 | DCHECK(!_finished); | 111 | 99 | 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 | 99 | uint32_t to_add = cast_set<UInt32>( | 127 | 99 | 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 | 99 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 99 | 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 | 99 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 99 | _count += to_add; | 135 | 99 | _remain_element_capacity -= to_add; | 136 | 99 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 99 | *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 | 99 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 99 | return Status::OK(); | 160 | 99 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.38k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.38k | DCHECK(!_finished); | 111 | 5.38k | 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.38k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.38k | 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.38k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.38k | 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.38k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.38k | _count += to_add; | 135 | 5.38k | _remain_element_capacity -= to_add; | 136 | 5.38k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.38k | *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.38k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.38k | return Status::OK(); | 160 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 33.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 33.0k | DCHECK(!_finished); | 111 | 33.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 | 33.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 33.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 | 33.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 33.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 | 33.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 33.0k | _count += to_add; | 135 | 33.0k | _remain_element_capacity -= to_add; | 136 | 33.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 33.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 | 33.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 33.0k | return Status::OK(); | 160 | 33.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 49.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 49.9k | DCHECK(!_finished); | 111 | 49.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 49.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 49.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 49.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 49.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 49.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 49.9k | _count += to_add; | 135 | 49.9k | _remain_element_capacity -= to_add; | 136 | 49.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 49.9k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 49.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 49.9k | return Status::OK(); | 160 | 49.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.36k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.36k | DCHECK(!_finished); | 111 | 1.36k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.36k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.36k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.36k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.36k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.36k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.36k | _count += to_add; | 135 | 1.36k | _remain_element_capacity -= to_add; | 136 | 1.36k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.36k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *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.36k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.36k | return Status::OK(); | 160 | 1.36k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 35.7k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 35.7k | DCHECK(!_finished); | 111 | 35.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 | 35.7k | uint32_t to_add = cast_set<UInt32>( | 127 | 35.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 | 35.7k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 35.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 | 35.7k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 35.7k | _count += to_add; | 135 | 35.7k | _remain_element_capacity -= to_add; | 136 | 35.7k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 35.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 | 35.7k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 35.7k | return Status::OK(); | 160 | 35.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 8.14k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 8.14k | DCHECK(!_finished); | 111 | 8.14k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 8.14k | uint32_t to_add = cast_set<UInt32>( | 127 | 8.14k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 8.14k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 8.14k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 8.14k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 8.14k | _count += to_add; | 135 | 8.14k | _remain_element_capacity -= to_add; | 136 | 8.14k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 8.14k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 8.14k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 8.14k | return Status::OK(); | 160 | 8.14k | } |
|
161 | | |
162 | 712k | Status finish(OwnedSlice* slice) override { |
163 | 712k | if (_count > 0) { |
164 | 661k | _first_value = cell(0); |
165 | 661k | _last_value = cell(_count - 1); |
166 | 661k | } |
167 | 712k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 712k | return Status::OK(); |
169 | 712k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 380k | Status finish(OwnedSlice* slice) override { | 163 | 380k | if (_count > 0) { | 164 | 342k | _first_value = cell(0); | 165 | 342k | _last_value = cell(_count - 1); | 166 | 342k | } | 167 | 380k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 380k | return Status::OK(); | 169 | 380k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 29.9k | Status finish(OwnedSlice* slice) override { | 163 | 29.9k | if (_count > 0) { | 164 | 29.3k | _first_value = cell(0); | 165 | 29.3k | _last_value = cell(_count - 1); | 166 | 29.3k | } | 167 | 29.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 29.9k | return Status::OK(); | 169 | 29.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 5.38k | Status finish(OwnedSlice* slice) override { | 163 | 5.38k | if (_count > 0) { | 164 | 5.23k | _first_value = cell(0); | 165 | 5.23k | _last_value = cell(_count - 1); | 166 | 5.23k | } | 167 | 5.38k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 5.38k | return Status::OK(); | 169 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 50.1k | Status finish(OwnedSlice* slice) override { | 163 | 50.1k | if (_count > 0) { | 164 | 48.3k | _first_value = cell(0); | 165 | 48.3k | _last_value = cell(_count - 1); | 166 | 48.3k | } | 167 | 50.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 50.1k | return Status::OK(); | 169 | 50.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 72.1k | Status finish(OwnedSlice* slice) override { | 163 | 72.1k | if (_count > 0) { | 164 | 72.1k | _first_value = cell(0); | 165 | 72.1k | _last_value = cell(_count - 1); | 166 | 72.1k | } | 167 | 72.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 72.1k | return Status::OK(); | 169 | 72.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.14k | Status finish(OwnedSlice* slice) override { | 163 | 7.14k | if (_count > 0) { | 164 | 6.89k | _first_value = cell(0); | 165 | 6.89k | _last_value = cell(_count - 1); | 166 | 6.89k | } | 167 | 7.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.14k | return Status::OK(); | 169 | 7.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.5k | Status finish(OwnedSlice* slice) override { | 163 | 11.5k | if (_count > 0) { | 164 | 11.1k | _first_value = cell(0); | 165 | 11.1k | _last_value = cell(_count - 1); | 166 | 11.1k | } | 167 | 11.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.5k | return Status::OK(); | 169 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.8k | Status finish(OwnedSlice* slice) override { | 163 | 14.8k | if (_count > 0) { | 164 | 14.4k | _first_value = cell(0); | 165 | 14.4k | _last_value = cell(_count - 1); | 166 | 14.4k | } | 167 | 14.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.8k | return Status::OK(); | 169 | 14.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 197 | Status finish(OwnedSlice* slice) override { | 163 | 197 | if (_count > 0) { | 164 | 192 | _first_value = cell(0); | 165 | 192 | _last_value = cell(_count - 1); | 166 | 192 | } | 167 | 197 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 197 | return Status::OK(); | 169 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.9k | Status finish(OwnedSlice* slice) override { | 163 | 37.9k | if (_count > 0) { | 164 | 36.9k | _first_value = cell(0); | 165 | 36.9k | _last_value = cell(_count - 1); | 166 | 36.9k | } | 167 | 37.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 38.0k | return Status::OK(); | 169 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 46.3k | Status finish(OwnedSlice* slice) override { | 163 | 46.3k | if (_count > 0) { | 164 | 44.8k | _first_value = cell(0); | 165 | 44.8k | _last_value = cell(_count - 1); | 166 | 44.8k | } | 167 | 46.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 46.3k | return Status::OK(); | 169 | 46.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 437 | Status finish(OwnedSlice* slice) override { | 163 | 437 | if (_count > 0) { | 164 | 337 | _first_value = cell(0); | 165 | 337 | _last_value = cell(_count - 1); | 166 | 337 | } | 167 | 437 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 437 | return Status::OK(); | 169 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.02k | Status finish(OwnedSlice* slice) override { | 163 | 7.02k | if (_count > 0) { | 164 | 6.83k | _first_value = cell(0); | 165 | 6.83k | _last_value = cell(_count - 1); | 166 | 6.83k | } | 167 | 7.02k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.02k | return Status::OK(); | 169 | 7.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 107 | Status finish(OwnedSlice* slice) override { | 163 | 107 | if (_count > 0) { | 164 | 99 | _first_value = cell(0); | 165 | 99 | _last_value = cell(_count - 1); | 166 | 99 | } | 167 | 107 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 107 | return Status::OK(); | 169 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.82k | Status finish(OwnedSlice* slice) override { | 163 | 9.82k | if (_count > 0) { | 164 | 4.85k | _first_value = cell(0); | 165 | 4.85k | _last_value = cell(_count - 1); | 166 | 4.85k | } | 167 | 9.82k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.82k | return Status::OK(); | 169 | 9.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.9k | Status finish(OwnedSlice* slice) override { | 163 | 19.9k | if (_count > 0) { | 164 | 19.0k | _first_value = cell(0); | 165 | 19.0k | _last_value = cell(_count - 1); | 166 | 19.0k | } | 167 | 19.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 19.9k | return Status::OK(); | 169 | 19.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 16.4k | Status finish(OwnedSlice* slice) override { | 163 | 16.4k | if (_count > 0) { | 164 | 15.9k | _first_value = cell(0); | 165 | 15.9k | _last_value = cell(_count - 1); | 166 | 15.9k | } | 167 | 16.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 16.4k | return Status::OK(); | 169 | 16.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.05k | Status finish(OwnedSlice* slice) override { | 163 | 1.05k | if (_count > 0) { | 164 | 1.00k | _first_value = cell(0); | 165 | 1.00k | _last_value = cell(_count - 1); | 166 | 1.00k | } | 167 | 1.05k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.05k | return Status::OK(); | 169 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 710 | Status finish(OwnedSlice* slice) override { | 163 | 710 | if (_count > 0) { | 164 | 661 | _first_value = cell(0); | 165 | 661 | _last_value = cell(_count - 1); | 166 | 661 | } | 167 | 710 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 710 | return Status::OK(); | 169 | 710 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 631 | Status finish(OwnedSlice* slice) override { | 163 | 631 | if (_count > 0) { | 164 | 597 | _first_value = cell(0); | 165 | 597 | _last_value = cell(_count - 1); | 166 | 597 | } | 167 | 631 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 631 | return Status::OK(); | 169 | 631 | } |
|
170 | | |
171 | 1.75M | Status reset() override { |
172 | 1.75M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 1.75M | size_t block_size = _options.data_page_size; |
174 | 1.75M | _count = 0; |
175 | 1.75M | _raw_data_size = 0; |
176 | 1.75M | _data.clear(); |
177 | 1.75M | _data.reserve(block_size); |
178 | 1.75M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 1.75M | << "buffer must be naturally-aligned"; |
180 | 1.75M | _buffer.clear(); |
181 | 1.75M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 1.75M | _finished = false; |
183 | 1.75M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 1.75M | }); |
185 | 1.76M | return Status::OK(); |
186 | 1.75M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.10M | Status reset() override { | 172 | 1.10M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.10M | size_t block_size = _options.data_page_size; | 174 | 1.10M | _count = 0; | 175 | 1.10M | _raw_data_size = 0; | 176 | 1.10M | _data.clear(); | 177 | 1.10M | _data.reserve(block_size); | 178 | 1.10M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.10M | << "buffer must be naturally-aligned"; | 180 | 1.10M | _buffer.clear(); | 181 | 1.10M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.10M | _finished = false; | 183 | 1.10M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.10M | }); | 185 | 1.10M | return Status::OK(); | 186 | 1.10M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 59.9k | Status reset() override { | 172 | 59.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 59.9k | size_t block_size = _options.data_page_size; | 174 | 59.9k | _count = 0; | 175 | 59.9k | _raw_data_size = 0; | 176 | 59.9k | _data.clear(); | 177 | 59.9k | _data.reserve(block_size); | 178 | 59.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 59.9k | << "buffer must be naturally-aligned"; | 180 | 59.9k | _buffer.clear(); | 181 | 59.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 59.9k | _finished = false; | 183 | 59.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 59.9k | }); | 185 | 59.9k | return Status::OK(); | 186 | 59.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 10.7k | Status reset() override { | 172 | 10.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 10.7k | size_t block_size = _options.data_page_size; | 174 | 10.7k | _count = 0; | 175 | 10.7k | _raw_data_size = 0; | 176 | 10.7k | _data.clear(); | 177 | 10.7k | _data.reserve(block_size); | 178 | 10.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 10.7k | << "buffer must be naturally-aligned"; | 180 | 10.7k | _buffer.clear(); | 181 | 10.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 10.7k | _finished = false; | 183 | 10.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 10.7k | }); | 185 | 10.7k | return Status::OK(); | 186 | 10.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 97.3k | Status reset() override { | 172 | 97.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 97.3k | size_t block_size = _options.data_page_size; | 174 | 97.3k | _count = 0; | 175 | 97.3k | _raw_data_size = 0; | 176 | 97.3k | _data.clear(); | 177 | 97.3k | _data.reserve(block_size); | 178 | 97.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 97.3k | << "buffer must be naturally-aligned"; | 180 | 97.3k | _buffer.clear(); | 181 | 97.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 97.3k | _finished = false; | 183 | 97.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 97.3k | }); | 185 | 97.3k | return Status::OK(); | 186 | 97.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 144k | Status reset() override { | 172 | 144k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 144k | size_t block_size = _options.data_page_size; | 174 | 144k | _count = 0; | 175 | 144k | _raw_data_size = 0; | 176 | 144k | _data.clear(); | 177 | 144k | _data.reserve(block_size); | 178 | 144k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 144k | << "buffer must be naturally-aligned"; | 180 | 144k | _buffer.clear(); | 181 | 144k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 144k | _finished = false; | 183 | 144k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 144k | }); | 185 | 144k | return Status::OK(); | 186 | 144k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 14.2k | Status reset() override { | 172 | 14.2k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 14.2k | size_t block_size = _options.data_page_size; | 174 | 14.2k | _count = 0; | 175 | 14.2k | _raw_data_size = 0; | 176 | 14.2k | _data.clear(); | 177 | 14.2k | _data.reserve(block_size); | 178 | 14.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 14.2k | << "buffer must be naturally-aligned"; | 180 | 14.2k | _buffer.clear(); | 181 | 14.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 14.2k | _finished = false; | 183 | 14.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 14.2k | }); | 185 | 14.2k | return Status::OK(); | 186 | 14.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 23.8k | Status reset() override { | 172 | 23.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 23.8k | size_t block_size = _options.data_page_size; | 174 | 23.8k | _count = 0; | 175 | 23.8k | _raw_data_size = 0; | 176 | 23.8k | _data.clear(); | 177 | 23.8k | _data.reserve(block_size); | 178 | 23.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 23.8k | << "buffer must be naturally-aligned"; | 180 | 23.8k | _buffer.clear(); | 181 | 23.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 23.8k | _finished = false; | 183 | 23.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 23.8k | }); | 185 | 23.8k | return Status::OK(); | 186 | 23.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 29.8k | Status reset() override { | 172 | 29.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 29.8k | size_t block_size = _options.data_page_size; | 174 | 29.8k | _count = 0; | 175 | 29.8k | _raw_data_size = 0; | 176 | 29.8k | _data.clear(); | 177 | 29.8k | _data.reserve(block_size); | 178 | 29.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 29.8k | << "buffer must be naturally-aligned"; | 180 | 29.8k | _buffer.clear(); | 181 | 29.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 29.8k | _finished = false; | 183 | 29.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 29.8k | }); | 185 | 29.8k | return Status::OK(); | 186 | 29.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 171 | 382 | Status reset() override { | 172 | 382 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 382 | size_t block_size = _options.data_page_size; | 174 | 382 | _count = 0; | 175 | 382 | _raw_data_size = 0; | 176 | 382 | _data.clear(); | 177 | 382 | _data.reserve(block_size); | 178 | 382 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 382 | << "buffer must be naturally-aligned"; | 180 | 382 | _buffer.clear(); | 181 | 382 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 382 | _finished = false; | 183 | 382 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 382 | }); | 185 | 382 | return Status::OK(); | 186 | 382 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 171 | 75.1k | Status reset() override { | 172 | 75.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 75.1k | size_t block_size = _options.data_page_size; | 174 | 75.1k | _count = 0; | 175 | 75.1k | _raw_data_size = 0; | 176 | 75.1k | _data.clear(); | 177 | 75.1k | _data.reserve(block_size); | 178 | 75.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 75.1k | << "buffer must be naturally-aligned"; | 180 | 75.1k | _buffer.clear(); | 181 | 75.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 75.1k | _finished = false; | 183 | 75.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 75.1k | }); | 185 | 75.1k | return Status::OK(); | 186 | 75.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 93.7k | Status reset() override { | 172 | 93.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 93.7k | size_t block_size = _options.data_page_size; | 174 | 93.7k | _count = 0; | 175 | 93.7k | _raw_data_size = 0; | 176 | 93.7k | _data.clear(); | 177 | 93.7k | _data.reserve(block_size); | 178 | 93.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 93.7k | << "buffer must be naturally-aligned"; | 180 | 93.7k | _buffer.clear(); | 181 | 93.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 93.7k | _finished = false; | 183 | 93.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 93.7k | }); | 185 | 93.7k | return Status::OK(); | 186 | 93.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 720 | Status reset() override { | 172 | 720 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 720 | size_t block_size = _options.data_page_size; | 174 | 720 | _count = 0; | 175 | 720 | _raw_data_size = 0; | 176 | 720 | _data.clear(); | 177 | 720 | _data.reserve(block_size); | 178 | 720 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 720 | << "buffer must be naturally-aligned"; | 180 | 720 | _buffer.clear(); | 181 | 720 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 720 | _finished = false; | 183 | 720 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 720 | }); | 185 | 720 | return Status::OK(); | 186 | 720 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 13.9k | Status reset() override { | 172 | 13.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 13.9k | size_t block_size = _options.data_page_size; | 174 | 13.9k | _count = 0; | 175 | 13.9k | _raw_data_size = 0; | 176 | 13.9k | _data.clear(); | 177 | 13.9k | _data.reserve(block_size); | 178 | 13.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 13.9k | << "buffer must be naturally-aligned"; | 180 | 13.9k | _buffer.clear(); | 181 | 13.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 13.9k | _finished = false; | 183 | 13.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 13.9k | }); | 185 | 14.0k | return Status::OK(); | 186 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 308 | Status reset() override { | 172 | 308 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 308 | size_t block_size = _options.data_page_size; | 174 | 308 | _count = 0; | 175 | 308 | _raw_data_size = 0; | 176 | 308 | _data.clear(); | 177 | 308 | _data.reserve(block_size); | 178 | 308 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 308 | << "buffer must be naturally-aligned"; | 180 | 308 | _buffer.clear(); | 181 | 308 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 308 | _finished = false; | 183 | 308 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 308 | }); | 185 | 308 | return Status::OK(); | 186 | 308 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.6k | Status reset() override { | 172 | 19.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.6k | size_t block_size = _options.data_page_size; | 174 | 19.6k | _count = 0; | 175 | 19.6k | _raw_data_size = 0; | 176 | 19.6k | _data.clear(); | 177 | 19.6k | _data.reserve(block_size); | 178 | 19.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.6k | << "buffer must be naturally-aligned"; | 180 | 19.6k | _buffer.clear(); | 181 | 19.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.6k | _finished = false; | 183 | 19.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.6k | }); | 185 | 19.6k | return Status::OK(); | 186 | 19.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 32.6k | Status reset() override { | 172 | 32.6k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.6k | size_t block_size = _options.data_page_size; | 174 | 32.6k | _count = 0; | 175 | 32.6k | _raw_data_size = 0; | 176 | 32.6k | _data.clear(); | 177 | 32.6k | _data.reserve(block_size); | 178 | 32.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.6k | << "buffer must be naturally-aligned"; | 180 | 32.6k | _buffer.clear(); | 181 | 32.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.6k | _finished = false; | 183 | 32.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.6k | }); | 185 | 32.7k | return Status::OK(); | 186 | 32.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 32.7k | Status reset() override { | 172 | 32.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 32.7k | size_t block_size = _options.data_page_size; | 174 | 32.7k | _count = 0; | 175 | 32.7k | _raw_data_size = 0; | 176 | 32.7k | _data.clear(); | 177 | 32.7k | _data.reserve(block_size); | 178 | 32.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 32.7k | << "buffer must be naturally-aligned"; | 180 | 32.7k | _buffer.clear(); | 181 | 32.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 32.7k | _finished = false; | 183 | 32.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 32.7k | }); | 185 | 32.7k | return Status::OK(); | 186 | 32.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.21k | Status reset() override { | 172 | 2.21k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.21k | size_t block_size = _options.data_page_size; | 174 | 2.21k | _count = 0; | 175 | 2.21k | _raw_data_size = 0; | 176 | 2.21k | _data.clear(); | 177 | 2.21k | _data.reserve(block_size); | 178 | 2.21k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.21k | << "buffer must be naturally-aligned"; | 180 | 2.21k | _buffer.clear(); | 181 | 2.21k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.21k | _finished = false; | 183 | 2.21k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.21k | }); | 185 | 2.21k | return Status::OK(); | 186 | 2.21k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.51k | Status reset() override { | 172 | 1.51k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.51k | size_t block_size = _options.data_page_size; | 174 | 1.51k | _count = 0; | 175 | 1.51k | _raw_data_size = 0; | 176 | 1.51k | _data.clear(); | 177 | 1.51k | _data.reserve(block_size); | 178 | 1.51k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.51k | << "buffer must be naturally-aligned"; | 180 | 1.51k | _buffer.clear(); | 181 | 1.51k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.51k | _finished = false; | 183 | 1.51k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.51k | }); | 185 | 1.51k | return Status::OK(); | 186 | 1.51k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.34k | Status reset() override { | 172 | 1.34k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.34k | size_t block_size = _options.data_page_size; | 174 | 1.34k | _count = 0; | 175 | 1.34k | _raw_data_size = 0; | 176 | 1.34k | _data.clear(); | 177 | 1.34k | _data.reserve(block_size); | 178 | 1.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.34k | << "buffer must be naturally-aligned"; | 180 | 1.34k | _buffer.clear(); | 181 | 1.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.34k | _finished = false; | 183 | 1.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.34k | }); | 185 | 1.34k | return Status::OK(); | 186 | 1.34k | } |
|
187 | | |
188 | 1.85M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 1.85M | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv |
189 | | |
190 | 42.5k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 22.3k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 4.31k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 797 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 4.59k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 1.96k | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.07k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 787 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 797 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 190 | 1.69k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.48k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 190 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 190 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 190 | 160 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 315 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.17k | 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 | 397k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 65.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 29.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 5.38k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 50.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 72.1k | 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 | 7.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.8k | 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 | 197 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 192 | 38.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 46.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 437 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.02k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 107 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.82k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 19.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 16.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.05k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 710 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 631 | 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 | 717k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 394k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 29.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 5.39k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 47.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 72.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 7.09k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 15.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 185 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 37.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 47.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 283 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 6.93k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 201 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.82k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.6k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 16.2k | : _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 | 804 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 716 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 712k | OwnedSlice _finish(int final_size_of_type) { |
216 | 712k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 712k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 712k | int padding_elems = num_elems_after_padding - _count; |
221 | 712k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 19.3M | for (int i = 0; i < padding_bytes; i++) { |
223 | 18.6M | _data.push_back(0); |
224 | 18.6M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 712k | _buffer.resize( |
228 | 712k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 712k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 712k | int64_t bytes = |
232 | 712k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 712k | num_elems_after_padding, final_size_of_type, 0); |
234 | 712k | 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 | 712k | encode_fixed32_le(&_buffer[0], _count); |
244 | 712k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 712k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 712k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 712k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 712k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 712k | return _buffer.build(); |
251 | 712k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 380k | OwnedSlice _finish(int final_size_of_type) { | 216 | 380k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 380k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 380k | int padding_elems = num_elems_after_padding - _count; | 221 | 380k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 7.21M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.83M | _data.push_back(0); | 224 | 6.83M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 380k | _buffer.resize( | 228 | 380k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 380k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 380k | int64_t bytes = | 232 | 380k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 380k | num_elems_after_padding, final_size_of_type, 0); | 234 | 380k | 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 | 380k | encode_fixed32_le(&_buffer[0], _count); | 244 | 380k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 380k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 380k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 380k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 380k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 380k | return _buffer.build(); | 251 | 380k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 29.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 29.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 29.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 29.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 29.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 175k | for (int i = 0; i < padding_bytes; i++) { | 223 | 145k | _data.push_back(0); | 224 | 145k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 29.9k | _buffer.resize( | 228 | 29.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 29.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 29.9k | int64_t bytes = | 232 | 29.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 29.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 29.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 | 29.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 29.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 29.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 29.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 29.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 29.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 29.9k | return _buffer.build(); | 251 | 29.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 5.38k | OwnedSlice _finish(int final_size_of_type) { | 216 | 5.38k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 5.38k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 5.38k | int padding_elems = num_elems_after_padding - _count; | 221 | 5.38k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 52.1k | for (int i = 0; i < padding_bytes; i++) { | 223 | 46.7k | _data.push_back(0); | 224 | 46.7k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 5.38k | _buffer.resize( | 228 | 5.38k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 5.38k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 5.38k | int64_t bytes = | 232 | 5.38k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 5.38k | num_elems_after_padding, final_size_of_type, 0); | 234 | 5.38k | 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 | 5.38k | encode_fixed32_le(&_buffer[0], _count); | 244 | 5.38k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 5.38k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 5.38k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 5.38k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 5.38k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 5.38k | return _buffer.build(); | 251 | 5.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 50.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 50.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 50.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 50.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 50.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.94M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.89M | _data.push_back(0); | 224 | 1.89M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 50.1k | _buffer.resize( | 228 | 50.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 50.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 50.1k | int64_t bytes = | 232 | 50.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 50.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 50.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 | 50.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 50.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 50.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 50.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 50.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 50.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 50.1k | return _buffer.build(); | 251 | 50.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 72.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 72.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 72.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 72.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 72.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.43M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.36M | _data.push_back(0); | 224 | 3.36M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 72.1k | _buffer.resize( | 228 | 72.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 72.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 72.1k | int64_t bytes = | 232 | 72.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 72.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 72.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 | 72.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 72.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 72.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 72.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 72.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 72.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 72.1k | return _buffer.build(); | 251 | 72.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 7.14k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.14k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.14k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.14k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 462k | for (int i = 0; i < padding_bytes; i++) { | 223 | 455k | _data.push_back(0); | 224 | 455k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.14k | _buffer.resize( | 228 | 7.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.14k | int64_t bytes = | 232 | 7.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.14k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.14k | 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.14k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.14k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.14k | return _buffer.build(); | 251 | 7.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.5k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.5k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.5k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.5k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 250k | for (int i = 0; i < padding_bytes; i++) { | 223 | 238k | _data.push_back(0); | 224 | 238k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.5k | _buffer.resize( | 228 | 11.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.5k | int64_t bytes = | 232 | 11.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.5k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.5k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 11.5k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.5k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.5k | return _buffer.build(); | 251 | 11.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.8k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.8k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.8k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.8k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 616k | for (int i = 0; i < padding_bytes; i++) { | 223 | 601k | _data.push_back(0); | 224 | 601k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.8k | _buffer.resize( | 228 | 14.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.8k | int64_t bytes = | 232 | 14.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.8k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.8k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 14.8k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.8k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.8k | return _buffer.build(); | 251 | 14.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 215 | 197 | OwnedSlice _finish(int final_size_of_type) { | 216 | 197 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 197 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 197 | int padding_elems = num_elems_after_padding - _count; | 221 | 197 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 2.70k | for (int i = 0; i < padding_bytes; i++) { | 223 | 2.50k | _data.push_back(0); | 224 | 2.50k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 197 | _buffer.resize( | 228 | 197 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 197 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 197 | int64_t bytes = | 232 | 197 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 197 | num_elems_after_padding, final_size_of_type, 0); | 234 | 197 | 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 | 197 | encode_fixed32_le(&_buffer[0], _count); | 244 | 197 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 197 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 197 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 197 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 197 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 197 | return _buffer.build(); | 251 | 197 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 215 | 38.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 38.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 38.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 38.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 38.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 809k | for (int i = 0; i < padding_bytes; i++) { | 223 | 771k | _data.push_back(0); | 224 | 771k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 38.0k | _buffer.resize( | 228 | 38.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 38.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 38.0k | int64_t bytes = | 232 | 38.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 38.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 38.0k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 38.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 38.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 38.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 38.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 38.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 38.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 38.0k | return _buffer.build(); | 251 | 38.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 46.3k | OwnedSlice _finish(int final_size_of_type) { | 216 | 46.3k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 46.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 46.3k | int padding_elems = num_elems_after_padding - _count; | 221 | 46.3k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.98M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.93M | _data.push_back(0); | 224 | 1.93M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 46.3k | _buffer.resize( | 228 | 46.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 46.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 46.3k | int64_t bytes = | 232 | 46.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 46.3k | num_elems_after_padding, final_size_of_type, 0); | 234 | 46.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 | 46.3k | encode_fixed32_le(&_buffer[0], _count); | 244 | 46.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 46.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 46.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 46.3k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 46.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 46.3k | return _buffer.build(); | 251 | 46.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 215 | 437 | OwnedSlice _finish(int final_size_of_type) { | 216 | 437 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 437 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 437 | int padding_elems = num_elems_after_padding - _count; | 221 | 437 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.96k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.52k | _data.push_back(0); | 224 | 6.52k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 437 | _buffer.resize( | 228 | 437 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 437 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 437 | int64_t bytes = | 232 | 437 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 437 | num_elems_after_padding, final_size_of_type, 0); | 234 | 437 | 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 | 437 | encode_fixed32_le(&_buffer[0], _count); | 244 | 437 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 437 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 437 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 437 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 437 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 437 | return _buffer.build(); | 251 | 437 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 215 | 7.02k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.02k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.02k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.02k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.02k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 368k | for (int i = 0; i < padding_bytes; i++) { | 223 | 361k | _data.push_back(0); | 224 | 361k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.02k | _buffer.resize( | 228 | 7.02k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.02k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.02k | int64_t bytes = | 232 | 7.02k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.02k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.02k | 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.02k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.02k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.02k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.02k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.02k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.02k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.02k | return _buffer.build(); | 251 | 7.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 107 | OwnedSlice _finish(int final_size_of_type) { | 216 | 107 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 107 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 107 | int padding_elems = num_elems_after_padding - _count; | 221 | 107 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.62k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.51k | _data.push_back(0); | 224 | 6.51k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 107 | _buffer.resize( | 228 | 107 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 107 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 107 | int64_t bytes = | 232 | 107 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 107 | num_elems_after_padding, final_size_of_type, 0); | 234 | 107 | 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 | 107 | encode_fixed32_le(&_buffer[0], _count); | 244 | 107 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 107 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 107 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 107 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 107 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 107 | return _buffer.build(); | 251 | 107 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.82k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.82k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.82k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.82k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.82k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 120k | for (int i = 0; i < padding_bytes; i++) { | 223 | 110k | _data.push_back(0); | 224 | 110k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.82k | _buffer.resize( | 228 | 9.82k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.82k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.82k | int64_t bytes = | 232 | 9.82k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.82k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.82k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 9.82k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.82k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.82k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.82k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.82k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.82k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.82k | return _buffer.build(); | 251 | 9.82k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 19.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 19.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 19.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 19.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 19.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 517k | for (int i = 0; i < padding_bytes; i++) { | 223 | 497k | _data.push_back(0); | 224 | 497k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 19.9k | _buffer.resize( | 228 | 19.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 19.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 19.9k | int64_t bytes = | 232 | 19.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 19.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 19.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 | 19.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 19.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 19.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 19.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 19.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 19.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 19.9k | return _buffer.build(); | 251 | 19.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 16.4k | OwnedSlice _finish(int final_size_of_type) { | 216 | 16.4k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 16.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 16.4k | int padding_elems = num_elems_after_padding - _count; | 221 | 16.4k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.12M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.11M | _data.push_back(0); | 224 | 1.11M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 16.4k | _buffer.resize( | 228 | 16.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 16.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 16.4k | int64_t bytes = | 232 | 16.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 16.4k | num_elems_after_padding, final_size_of_type, 0); | 234 | 16.4k | 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.4k | encode_fixed32_le(&_buffer[0], _count); | 244 | 16.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 16.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 16.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 16.4k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 16.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 16.4k | return _buffer.build(); | 251 | 16.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.05k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.05k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.05k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.05k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.05k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 160k | for (int i = 0; i < padding_bytes; i++) { | 223 | 159k | _data.push_back(0); | 224 | 159k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.05k | _buffer.resize( | 228 | 1.05k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.05k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.05k | int64_t bytes = | 232 | 1.05k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.05k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.05k | 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.05k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.05k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.05k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.05k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.05k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.05k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.05k | return _buffer.build(); | 251 | 1.05k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 710 | OwnedSlice _finish(int final_size_of_type) { | 216 | 710 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 710 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 710 | int padding_elems = num_elems_after_padding - _count; | 221 | 710 | 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 | 710 | _buffer.resize( | 228 | 710 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 710 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 710 | int64_t bytes = | 232 | 710 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 710 | num_elems_after_padding, final_size_of_type, 0); | 234 | 710 | 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 | 710 | encode_fixed32_le(&_buffer[0], _count); | 244 | 710 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 710 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 710 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 710 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 710 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 710 | return _buffer.build(); | 251 | 710 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 631 | OwnedSlice _finish(int final_size_of_type) { | 216 | 631 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 631 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 631 | int padding_elems = num_elems_after_padding - _count; | 221 | 631 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 50.8k | for (int i = 0; i < padding_bytes; i++) { | 223 | 50.2k | _data.push_back(0); | 224 | 50.2k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 631 | _buffer.resize( | 228 | 631 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 631 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 631 | int64_t bytes = | 232 | 631 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 631 | num_elems_after_padding, final_size_of_type, 0); | 234 | 631 | 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 | 631 | encode_fixed32_le(&_buffer[0], _count); | 244 | 631 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 631 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 631 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 631 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 631 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 631 | return _buffer.build(); | 251 | 631 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.32M | CppType cell(int idx) const { |
256 | 1.32M | DCHECK_GE(idx, 0); |
257 | 1.32M | CppType ret; |
258 | 1.32M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.32M | return ret; |
260 | 1.32M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 685k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 685k | CppType ret; | 258 | 685k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 685k | return ret; | 260 | 685k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 58.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 58.6k | CppType ret; | 258 | 58.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 58.6k | return ret; | 260 | 58.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 10.4k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 10.4k | CppType ret; | 258 | 10.4k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 10.4k | return ret; | 260 | 10.4k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 96.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 96.6k | CppType ret; | 258 | 96.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 96.6k | return ret; | 260 | 96.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 144k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 144k | CppType ret; | 258 | 144k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 144k | return ret; | 260 | 144k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 13.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 13.7k | CppType ret; | 258 | 13.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 13.7k | return ret; | 260 | 13.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 22.2k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 22.2k | CppType ret; | 258 | 22.2k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 22.2k | return ret; | 260 | 22.2k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 28.8k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 28.8k | CppType ret; | 258 | 28.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 28.8k | return ret; | 260 | 28.8k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 384 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 384 | CppType ret; | 258 | 384 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 384 | return ret; | 260 | 384 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi Line | Count | Source | 255 | 73.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 73.9k | CppType ret; | 258 | 73.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 73.9k | return ret; | 260 | 73.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 89.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 89.6k | CppType ret; | 258 | 89.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 89.6k | return ret; | 260 | 89.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 674 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 674 | CppType ret; | 258 | 674 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 674 | return ret; | 260 | 674 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi Line | Count | Source | 255 | 13.6k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 13.6k | CppType ret; | 258 | 13.6k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 13.6k | return ret; | 260 | 13.6k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 198 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 198 | CppType ret; | 258 | 198 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 198 | return ret; | 260 | 198 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.71k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.71k | CppType ret; | 258 | 9.71k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.71k | return ret; | 260 | 9.71k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 38.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 38.0k | CppType ret; | 258 | 38.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 38.0k | return ret; | 260 | 38.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.8k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.8k | CppType ret; | 258 | 31.8k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.8k | return ret; | 260 | 31.8k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.00k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.00k | CppType ret; | 258 | 2.00k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.00k | return ret; | 260 | 2.00k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.32k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.32k | CppType ret; | 258 | 1.32k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.32k | return ret; | 260 | 1.32k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.19k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.19k | CppType ret; | 258 | 1.19k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.19k | return ret; | 260 | 1.19k | } |
|
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.54M | int& size_of_element) { |
277 | 2.54M | 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.54M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.54M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.54M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.54M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.54M | 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.54M | switch (size_of_element) { |
295 | 121k | case 1: |
296 | 153k | case 2: |
297 | 156k | case 3: |
298 | 1.80M | case 4: |
299 | 2.45M | case 8: |
300 | 2.45M | case 12: |
301 | 2.54M | case 16: |
302 | 2.54M | case 32: |
303 | 2.54M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.54M | } |
307 | 2.54M | return Status::OK(); |
308 | 2.54M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.27M | : _data(data), |
315 | 1.27M | _options(options), |
316 | 1.27M | _parsed(false), |
317 | 1.27M | _num_elements(0), |
318 | 1.27M | _num_element_after_padding(0), |
319 | 1.27M | _size_of_element(0), |
320 | 1.27M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 725k | : _data(data), | 315 | 725k | _options(options), | 316 | 725k | _parsed(false), | 317 | 725k | _num_elements(0), | 318 | 725k | _num_element_after_padding(0), | 319 | 725k | _size_of_element(0), | 320 | 725k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 60.7k | : _data(data), | 315 | 60.7k | _options(options), | 316 | 60.7k | _parsed(false), | 317 | 60.7k | _num_elements(0), | 318 | 60.7k | _num_element_after_padding(0), | 319 | 60.7k | _size_of_element(0), | 320 | 60.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.9k | : _data(data), | 315 | 15.9k | _options(options), | 316 | 15.9k | _parsed(false), | 317 | 15.9k | _num_elements(0), | 318 | 15.9k | _num_element_after_padding(0), | 319 | 15.9k | _size_of_element(0), | 320 | 15.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 65.0k | : _data(data), | 315 | 65.0k | _options(options), | 316 | 65.0k | _parsed(false), | 317 | 65.0k | _num_elements(0), | 318 | 65.0k | _num_element_after_padding(0), | 319 | 65.0k | _size_of_element(0), | 320 | 65.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 96.5k | : _data(data), | 315 | 96.5k | _options(options), | 316 | 96.5k | _parsed(false), | 317 | 96.5k | _num_elements(0), | 318 | 96.5k | _num_element_after_padding(0), | 319 | 96.5k | _size_of_element(0), | 320 | 96.5k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 12.0k | : _data(data), | 315 | 12.0k | _options(options), | 316 | 12.0k | _parsed(false), | 317 | 12.0k | _num_elements(0), | 318 | 12.0k | _num_element_after_padding(0), | 319 | 12.0k | _size_of_element(0), | 320 | 12.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 20.7k | : _data(data), | 315 | 20.7k | _options(options), | 316 | 20.7k | _parsed(false), | 317 | 20.7k | _num_elements(0), | 318 | 20.7k | _num_element_after_padding(0), | 319 | 20.7k | _size_of_element(0), | 320 | 20.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.3k | : _data(data), | 315 | 30.3k | _options(options), | 316 | 30.3k | _parsed(false), | 317 | 30.3k | _num_elements(0), | 318 | 30.3k | _num_element_after_padding(0), | 319 | 30.3k | _size_of_element(0), | 320 | 30.3k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.64k | : _data(data), | 315 | 1.64k | _options(options), | 316 | 1.64k | _parsed(false), | 317 | 1.64k | _num_elements(0), | 318 | 1.64k | _num_element_after_padding(0), | 319 | 1.64k | _size_of_element(0), | 320 | 1.64k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 62.0k | : _data(data), | 315 | 62.0k | _options(options), | 316 | 62.0k | _parsed(false), | 317 | 62.0k | _num_elements(0), | 318 | 62.0k | _num_element_after_padding(0), | 319 | 62.0k | _size_of_element(0), | 320 | 62.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 71.6k | : _data(data), | 315 | 71.6k | _options(options), | 316 | 71.6k | _parsed(false), | 317 | 71.6k | _num_elements(0), | 318 | 71.6k | _num_element_after_padding(0), | 319 | 71.6k | _size_of_element(0), | 320 | 71.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.42k | : _data(data), | 315 | 2.42k | _options(options), | 316 | 2.42k | _parsed(false), | 317 | 2.42k | _num_elements(0), | 318 | 2.42k | _num_element_after_padding(0), | 319 | 2.42k | _size_of_element(0), | 320 | 2.42k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.8k | : _data(data), | 315 | 14.8k | _options(options), | 316 | 14.8k | _parsed(false), | 317 | 14.8k | _num_elements(0), | 318 | 14.8k | _num_element_after_padding(0), | 319 | 14.8k | _size_of_element(0), | 320 | 14.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.29k | : _data(data), | 315 | 1.29k | _options(options), | 316 | 1.29k | _parsed(false), | 317 | 1.29k | _num_elements(0), | 318 | 1.29k | _num_element_after_padding(0), | 319 | 1.29k | _size_of_element(0), | 320 | 1.29k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 15.8k | : _data(data), | 315 | 15.8k | _options(options), | 316 | 15.8k | _parsed(false), | 317 | 15.8k | _num_elements(0), | 318 | 15.8k | _num_element_after_padding(0), | 319 | 15.8k | _size_of_element(0), | 320 | 15.8k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 42.1k | : _data(data), | 315 | 42.1k | _options(options), | 316 | 42.1k | _parsed(false), | 317 | 42.1k | _num_elements(0), | 318 | 42.1k | _num_element_after_padding(0), | 319 | 42.1k | _size_of_element(0), | 320 | 42.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 30.9k | : _data(data), | 315 | 30.9k | _options(options), | 316 | 30.9k | _parsed(false), | 317 | 30.9k | _num_elements(0), | 318 | 30.9k | _num_element_after_padding(0), | 319 | 30.9k | _size_of_element(0), | 320 | 30.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.79k | : _data(data), | 315 | 1.79k | _options(options), | 316 | 1.79k | _parsed(false), | 317 | 1.79k | _num_elements(0), | 318 | 1.79k | _num_element_after_padding(0), | 319 | 1.79k | _size_of_element(0), | 320 | 1.79k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.21k | : _data(data), | 315 | 1.21k | _options(options), | 316 | 1.21k | _parsed(false), | 317 | 1.21k | _num_elements(0), | 318 | 1.21k | _num_element_after_padding(0), | 319 | 1.21k | _size_of_element(0), | 320 | 1.21k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.17k | : _data(data), | 315 | 1.17k | _options(options), | 316 | 1.17k | _parsed(false), | 317 | 1.17k | _num_elements(0), | 318 | 1.17k | _num_element_after_padding(0), | 319 | 1.17k | _size_of_element(0), | 320 | 1.17k | _cur_index(0) {} |
|
321 | | |
322 | 1.27M | Status init() override { |
323 | 1.27M | CHECK(!_parsed); |
324 | 1.27M | size_t unused; |
325 | 1.27M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.27M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.27M | if (_data.size != |
329 | 1.27M | _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.27M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.27M | _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.27M | 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.27M | _parsed = true; |
349 | 1.27M | return Status::OK(); |
350 | 1.27M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 725k | Status init() override { | 323 | 725k | CHECK(!_parsed); | 324 | 725k | size_t unused; | 325 | 725k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 725k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 725k | if (_data.size != | 329 | 725k | _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 | 725k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 725k | _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 | 725k | 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 | 725k | _parsed = true; | 349 | 725k | return Status::OK(); | 350 | 725k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 60.6k | Status init() override { | 323 | 60.6k | CHECK(!_parsed); | 324 | 60.6k | size_t unused; | 325 | 60.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 60.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 60.6k | if (_data.size != | 329 | 60.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 60.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 60.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 60.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 60.6k | _parsed = true; | 349 | 60.6k | return Status::OK(); | 350 | 60.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 15.9k | Status init() override { | 323 | 15.9k | CHECK(!_parsed); | 324 | 15.9k | size_t unused; | 325 | 15.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.9k | if (_data.size != | 329 | 15.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 15.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.9k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 15.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 15.9k | _parsed = true; | 349 | 15.9k | return Status::OK(); | 350 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 65.0k | Status init() override { | 323 | 65.0k | CHECK(!_parsed); | 324 | 65.0k | size_t unused; | 325 | 65.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 65.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 65.0k | if (_data.size != | 329 | 65.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 | 65.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 65.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 | 65.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 | 65.0k | _parsed = true; | 349 | 65.0k | return Status::OK(); | 350 | 65.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 96.5k | Status init() override { | 323 | 96.5k | CHECK(!_parsed); | 324 | 96.5k | size_t unused; | 325 | 96.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 96.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 96.5k | if (_data.size != | 329 | 96.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 | 96.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 96.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 | 96.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 | 96.5k | _parsed = true; | 349 | 96.5k | return Status::OK(); | 350 | 96.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 12.0k | Status init() override { | 323 | 12.0k | CHECK(!_parsed); | 324 | 12.0k | size_t unused; | 325 | 12.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 12.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 12.0k | if (_data.size != | 329 | 12.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 | 12.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 12.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 | 12.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 | 12.0k | _parsed = true; | 349 | 12.0k | return Status::OK(); | 350 | 12.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 20.6k | Status init() override { | 323 | 20.6k | CHECK(!_parsed); | 324 | 20.6k | size_t unused; | 325 | 20.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 20.6k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 20.6k | if (_data.size != | 329 | 20.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 20.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 20.6k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 20.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 20.6k | _parsed = true; | 349 | 20.6k | return Status::OK(); | 350 | 20.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 30.3k | Status init() override { | 323 | 30.3k | CHECK(!_parsed); | 324 | 30.3k | size_t unused; | 325 | 30.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.3k | if (_data.size != | 329 | 30.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 | 30.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.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 | 30.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 | 30.3k | _parsed = true; | 349 | 30.3k | return Status::OK(); | 350 | 30.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.64k | Status init() override { | 323 | 1.64k | CHECK(!_parsed); | 324 | 1.64k | size_t unused; | 325 | 1.64k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.64k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.64k | if (_data.size != | 329 | 1.64k | _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.64k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.64k | _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.64k | 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.64k | _parsed = true; | 349 | 1.64k | return Status::OK(); | 350 | 1.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 62.0k | Status init() override { | 323 | 62.0k | CHECK(!_parsed); | 324 | 62.0k | size_t unused; | 325 | 62.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 62.0k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 62.0k | if (_data.size != | 329 | 62.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 | 62.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 62.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 | 62.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 | 62.0k | _parsed = true; | 349 | 62.0k | return Status::OK(); | 350 | 62.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 71.5k | Status init() override { | 323 | 71.5k | CHECK(!_parsed); | 324 | 71.5k | size_t unused; | 325 | 71.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 71.5k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 71.5k | if (_data.size != | 329 | 71.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 | 71.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 71.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 | 71.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 | 71.5k | _parsed = true; | 349 | 71.5k | return Status::OK(); | 350 | 71.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.42k | Status init() override { | 323 | 2.42k | CHECK(!_parsed); | 324 | 2.42k | size_t unused; | 325 | 2.42k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.42k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.42k | if (_data.size != | 329 | 2.42k | _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.42k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.42k | _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.42k | 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.42k | _parsed = true; | 349 | 2.42k | return Status::OK(); | 350 | 2.42k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 322 | 14.8k | Status init() override { | 323 | 14.8k | CHECK(!_parsed); | 324 | 14.8k | size_t unused; | 325 | 14.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 14.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 14.8k | if (_data.size != | 329 | 14.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 | 14.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 14.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 | 14.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 | 14.8k | _parsed = true; | 349 | 14.8k | return Status::OK(); | 350 | 14.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 322 | 1.29k | Status init() override { | 323 | 1.29k | CHECK(!_parsed); | 324 | 1.29k | size_t unused; | 325 | 1.29k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.29k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.29k | if (_data.size != | 329 | 1.29k | _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.29k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.29k | _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.29k | 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.29k | _parsed = true; | 349 | 1.29k | return Status::OK(); | 350 | 1.29k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.8k | Status init() override { | 323 | 15.8k | CHECK(!_parsed); | 324 | 15.8k | size_t unused; | 325 | 15.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.8k | if (_data.size != | 329 | 15.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 | 15.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.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 | 15.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 | 15.8k | _parsed = true; | 349 | 15.8k | return Status::OK(); | 350 | 15.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 42.1k | Status init() override { | 323 | 42.1k | CHECK(!_parsed); | 324 | 42.1k | size_t unused; | 325 | 42.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 42.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 42.1k | if (_data.size != | 329 | 42.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 | 42.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 42.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 | 42.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 | 42.1k | _parsed = true; | 349 | 42.1k | return Status::OK(); | 350 | 42.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 30.8k | Status init() override { | 323 | 30.8k | CHECK(!_parsed); | 324 | 30.8k | size_t unused; | 325 | 30.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 30.8k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 30.8k | if (_data.size != | 329 | 30.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 | 30.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 30.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 | 30.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 | 30.8k | _parsed = true; | 349 | 30.8k | return Status::OK(); | 350 | 30.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.79k | Status init() override { | 323 | 1.79k | CHECK(!_parsed); | 324 | 1.79k | size_t unused; | 325 | 1.79k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.79k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.79k | if (_data.size != | 329 | 1.79k | _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.79k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.79k | _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.79k | 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.79k | _parsed = true; | 349 | 1.79k | return Status::OK(); | 350 | 1.79k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 322 | 1.21k | Status init() override { | 323 | 1.21k | CHECK(!_parsed); | 324 | 1.21k | size_t unused; | 325 | 1.21k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.21k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.21k | if (_data.size != | 329 | 1.21k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.21k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.21k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.21k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.21k | _parsed = true; | 349 | 1.21k | return Status::OK(); | 350 | 1.21k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.17k | Status init() override { | 323 | 1.17k | CHECK(!_parsed); | 324 | 1.17k | size_t unused; | 325 | 1.17k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.17k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.17k | if (_data.size != | 329 | 1.17k | _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.17k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.17k | _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.17k | 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.17k | _parsed = true; | 349 | 1.17k | return Status::OK(); | 350 | 1.17k | } |
|
351 | | |
352 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
353 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
354 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
355 | | // code such as check if the count == 0, then skip seek, but there are other method such |
356 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
357 | | // == 0, because next batch will return empty in this method. |
358 | 2.34M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.34M | if (_num_elements == 0) [[unlikely]] { |
361 | 11.5k | 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 | 11.5k | } |
366 | | |
367 | 2.34M | DCHECK_LE(pos, _num_elements); |
368 | 2.34M | _cur_index = pos; |
369 | 2.34M | return Status::OK(); |
370 | 2.34M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.55M | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 1.55M | if (_num_elements == 0) [[unlikely]] { | 361 | 5.33k | 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.33k | } | 366 | | | 367 | 1.55M | DCHECK_LE(pos, _num_elements); | 368 | 1.55M | _cur_index = pos; | 369 | 1.55M | return Status::OK(); | 370 | 1.55M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 84.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 84.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 534 | 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 | 534 | } | 366 | | | 367 | 84.9k | DCHECK_LE(pos, _num_elements); | 368 | 84.9k | _cur_index = pos; | 369 | 84.9k | return Status::OK(); | 370 | 84.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 3.71k | Status seek_to_position_in_page(size_t pos) override { | 359 | 3.71k | DCHECK(_parsed) << "Must call init()"; | 360 | 3.71k | if (_num_elements == 0) [[unlikely]] { | 361 | 1.35k | 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.35k | } | 366 | | | 367 | 3.71k | DCHECK_LE(pos, _num_elements); | 368 | 3.71k | _cur_index = pos; | 369 | 3.71k | return Status::OK(); | 370 | 3.71k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 173k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 173k | if (_num_elements == 0) [[unlikely]] { | 361 | 792 | 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 | 792 | } | 366 | | | 367 | 173k | DCHECK_LE(pos, _num_elements); | 368 | 173k | _cur_index = pos; | 369 | 173k | return Status::OK(); | 370 | 173k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.6k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 13.6k | 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 | 13.6k | DCHECK_LE(pos, _num_elements); | 368 | 13.6k | _cur_index = pos; | 369 | 13.6k | return Status::OK(); | 370 | 13.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 4.84k | Status seek_to_position_in_page(size_t pos) override { | 359 | 4.84k | DCHECK(_parsed) << "Must call init()"; | 360 | 4.84k | 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 | 4.84k | DCHECK_LE(pos, _num_elements); | 368 | 4.84k | _cur_index = pos; | 369 | 4.84k | return Status::OK(); | 370 | 4.84k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 18.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.3k | DCHECK(_parsed) << "Must call init()"; | 360 | 18.3k | 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 | 18.3k | DCHECK_LE(pos, _num_elements); | 368 | 18.3k | _cur_index = pos; | 369 | 18.3k | return Status::OK(); | 370 | 18.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 14.1k | Status seek_to_position_in_page(size_t pos) override { | 359 | 14.1k | DCHECK(_parsed) << "Must call init()"; | 360 | 14.1k | 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 | 14.1k | DCHECK_LE(pos, _num_elements); | 368 | 14.1k | _cur_index = pos; | 369 | 14.1k | return Status::OK(); | 370 | 14.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 12.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 12.0k | DCHECK(_parsed) << "Must call init()"; | 360 | 12.0k | 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 | 12.0k | DCHECK_LE(pos, _num_elements); | 368 | 12.0k | _cur_index = pos; | 369 | 12.0k | return Status::OK(); | 370 | 12.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 374k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 374k | 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 | 374k | DCHECK_LE(pos, _num_elements); | 368 | 374k | _cur_index = pos; | 369 | 374k | return Status::OK(); | 370 | 374k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 40.3k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 40.3k | if (_num_elements == 0) [[unlikely]] { | 361 | 19 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 19 | } | 366 | | | 367 | 40.3k | DCHECK_LE(pos, _num_elements); | 368 | 40.3k | _cur_index = pos; | 369 | 40.3k | return Status::OK(); | 370 | 40.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 8.46k | Status seek_to_position_in_page(size_t pos) override { | 359 | 8.46k | DCHECK(_parsed) << "Must call init()"; | 360 | 8.46k | 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 | 8.46k | DCHECK_LE(pos, _num_elements); | 368 | 8.46k | _cur_index = pos; | 369 | 8.46k | return Status::OK(); | 370 | 8.46k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 6.78k | Status seek_to_position_in_page(size_t pos) override { | 359 | 6.78k | DCHECK(_parsed) << "Must call init()"; | 360 | 6.78k | 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.78k | DCHECK_LE(pos, _num_elements); | 368 | 6.78k | _cur_index = pos; | 369 | 6.78k | return Status::OK(); | 370 | 6.78k | } |
_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 | 791 | Status seek_to_position_in_page(size_t pos) override { | 359 | 791 | DCHECK(_parsed) << "Must call init()"; | 360 | 791 | if (_num_elements == 0) [[unlikely]] { | 361 | 31 | 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 | 31 | } | 366 | | | 367 | 791 | DCHECK_LE(pos, _num_elements); | 368 | 791 | _cur_index = pos; | 369 | 791 | return Status::OK(); | 370 | 791 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_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 | 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 | 17.4k | DCHECK_LE(pos, _num_elements); | 368 | 17.4k | _cur_index = pos; | 369 | 17.4k | return Status::OK(); | 370 | 17.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 12.8k | Status seek_to_position_in_page(size_t pos) override { | 359 | 12.8k | DCHECK(_parsed) << "Must call init()"; | 360 | 12.8k | if (_num_elements == 0) [[unlikely]] { | 361 | 563 | 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 | 563 | } | 366 | | | 367 | 12.8k | DCHECK_LE(pos, _num_elements); | 368 | 12.8k | _cur_index = pos; | 369 | 12.8k | return Status::OK(); | 370 | 12.8k | } |
_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 | 70 | Status seek_to_position_in_page(size_t pos) override { | 359 | 70 | DCHECK(_parsed) << "Must call init()"; | 360 | 70 | 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 | 70 | DCHECK_LE(pos, _num_elements); | 368 | 70 | _cur_index = pos; | 369 | 70 | return Status::OK(); | 370 | 70 | } |
_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.65M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.65M | DCHECK(_parsed); |
413 | 2.65M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.65M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.65M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.65M | *n = max_fetch; |
422 | 2.65M | if constexpr (forward_index) { |
423 | 1.86M | _cur_index += max_fetch; |
424 | 1.86M | } |
425 | | |
426 | 2.65M | return Status::OK(); |
427 | 2.65M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 382k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 382k | DCHECK(_parsed); | 413 | 382k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 382k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 382k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 382k | *n = max_fetch; | 422 | 382k | if constexpr (forward_index) { | 423 | 382k | _cur_index += max_fetch; | 424 | 382k | } | 425 | | | 426 | 382k | return Status::OK(); | 427 | 382k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 167k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 167k | DCHECK(_parsed); | 413 | 167k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 167k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 167k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 167k | *n = max_fetch; | 422 | 167k | if constexpr (forward_index) { | 423 | 167k | _cur_index += max_fetch; | 424 | 167k | } | 425 | | | 426 | 167k | return Status::OK(); | 427 | 167k | } |
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.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 11.6k | DCHECK(_parsed); | 413 | 11.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 11.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 11.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 11.6k | *n = max_fetch; | 422 | 11.6k | if constexpr (forward_index) { | 423 | 11.6k | _cur_index += max_fetch; | 424 | 11.6k | } | 425 | | | 426 | 11.6k | return Status::OK(); | 427 | 11.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 70.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 70.6k | DCHECK(_parsed); | 413 | 70.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 70.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 70.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 70.6k | *n = max_fetch; | 422 | 70.6k | if constexpr (forward_index) { | 423 | 70.6k | _cur_index += max_fetch; | 424 | 70.6k | } | 425 | | | 426 | 70.6k | return Status::OK(); | 427 | 70.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 447k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 447k | DCHECK(_parsed); | 413 | 447k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 447k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 447k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 447k | *n = max_fetch; | 422 | 447k | if constexpr (forward_index) { | 423 | 447k | _cur_index += max_fetch; | 424 | 447k | } | 425 | | | 426 | 447k | return Status::OK(); | 427 | 447k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 792k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 792k | DCHECK(_parsed); | 413 | 792k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 792k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 792k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 792k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 792k | return Status::OK(); | 427 | 792k | } |
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 | 28.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 28.6k | DCHECK(_parsed); | 413 | 28.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 28.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 28.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 28.6k | *n = max_fetch; | 422 | 28.6k | if constexpr (forward_index) { | 423 | 28.6k | _cur_index += max_fetch; | 424 | 28.6k | } | 425 | | | 426 | 28.6k | return Status::OK(); | 427 | 28.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 15.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.1k | DCHECK(_parsed); | 413 | 15.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.1k | *n = max_fetch; | 422 | 15.1k | if constexpr (forward_index) { | 423 | 15.1k | _cur_index += max_fetch; | 424 | 15.1k | } | 425 | | | 426 | 15.1k | return Status::OK(); | 427 | 15.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 23.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 23.1k | DCHECK(_parsed); | 413 | 23.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 23.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 23.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 23.1k | *n = max_fetch; | 422 | 23.1k | if constexpr (forward_index) { | 423 | 23.1k | _cur_index += max_fetch; | 424 | 23.1k | } | 425 | | | 426 | 23.1k | return Status::OK(); | 427 | 23.1k | } |
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.74k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.74k | DCHECK(_parsed); | 413 | 3.74k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.74k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.74k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.74k | *n = max_fetch; | 422 | 3.74k | if constexpr (forward_index) { | 423 | 3.74k | _cur_index += max_fetch; | 424 | 3.74k | } | 425 | | | 426 | 3.74k | return Status::OK(); | 427 | 3.74k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 507k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 507k | DCHECK(_parsed); | 413 | 507k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 507k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 507k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 507k | *n = max_fetch; | 422 | 507k | if constexpr (forward_index) { | 423 | 507k | _cur_index += max_fetch; | 424 | 507k | } | 425 | | | 426 | 507k | return Status::OK(); | 427 | 507k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 93.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 93.1k | DCHECK(_parsed); | 413 | 93.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 93.1k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 93.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 93.1k | *n = max_fetch; | 422 | 93.1k | if constexpr (forward_index) { | 423 | 93.1k | _cur_index += max_fetch; | 424 | 93.1k | } | 425 | | | 426 | 93.1k | return Status::OK(); | 427 | 93.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 1.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.12k | DCHECK(_parsed); | 413 | 1.12k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.12k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.12k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.12k | *n = max_fetch; | 422 | 1.12k | if constexpr (forward_index) { | 423 | 1.12k | _cur_index += max_fetch; | 424 | 1.12k | } | 425 | | | 426 | 1.12k | return Status::OK(); | 427 | 1.12k | } |
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.01k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.01k | DCHECK(_parsed); | 413 | 7.01k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.01k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.01k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.01k | *n = max_fetch; | 422 | 7.01k | if constexpr (forward_index) { | 423 | 7.01k | _cur_index += max_fetch; | 424 | 7.01k | } | 425 | | | 426 | 7.01k | return Status::OK(); | 427 | 7.01k | } |
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 | 8.63k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.63k | DCHECK(_parsed); | 413 | 8.63k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.63k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.63k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.63k | *n = max_fetch; | 422 | 8.63k | if constexpr (forward_index) { | 423 | 8.63k | _cur_index += max_fetch; | 424 | 8.63k | } | 425 | | | 426 | 8.63k | return Status::OK(); | 427 | 8.63k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 40.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 40.8k | DCHECK(_parsed); | 413 | 40.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 40.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 40.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 40.8k | *n = max_fetch; | 422 | 40.8k | if constexpr (forward_index) { | 423 | 40.8k | _cur_index += max_fetch; | 424 | 40.8k | } | 425 | | | 426 | 40.8k | return Status::OK(); | 427 | 40.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 31.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 31.3k | DCHECK(_parsed); | 413 | 31.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 31.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 31.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 31.3k | *n = max_fetch; | 422 | 31.3k | if constexpr (forward_index) { | 423 | 31.3k | _cur_index += max_fetch; | 424 | 31.3k | } | 425 | | | 426 | 31.3k | return Status::OK(); | 427 | 31.3k | } |
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.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.21k | DCHECK(_parsed); | 413 | 3.21k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.21k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.21k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.21k | *n = max_fetch; | 422 | 3.21k | if constexpr (forward_index) { | 423 | 3.21k | _cur_index += max_fetch; | 424 | 3.21k | } | 425 | | | 426 | 3.21k | return Status::OK(); | 427 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 13.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 13.3k | DCHECK(_parsed); | 413 | 13.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 13.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 13.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 13.3k | *n = max_fetch; | 422 | 13.3k | if constexpr (forward_index) { | 423 | 13.3k | _cur_index += max_fetch; | 424 | 13.3k | } | 425 | | | 426 | 13.3k | return Status::OK(); | 427 | 13.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 8.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.31k | DCHECK(_parsed); | 413 | 8.31k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.31k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.31k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.31k | *n = max_fetch; | 422 | 8.31k | if constexpr (forward_index) { | 423 | 8.31k | _cur_index += max_fetch; | 424 | 8.31k | } | 425 | | | 426 | 8.31k | return Status::OK(); | 427 | 8.31k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 1.86M | 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 | 382k | 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 | 167k | 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.6k | 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 | 70.6k | 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 | 448k | 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 | 28.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 15.1k | 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 | 23.1k | 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.74k | 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 | 507k | 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 | 93.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 1.12k | 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.01k | 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 | 8.63k | 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 | 40.8k | 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 | 31.3k | 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.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 13.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 8.31k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
430 | | |
431 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
432 | 441k | MutableColumnPtr& dst) override { |
433 | 441k | DCHECK(_parsed); |
434 | 441k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 441k | auto total = *n; |
440 | 441k | auto read_count = 0; |
441 | 441k | _buffer.resize(total); |
442 | 95.3M | for (size_t i = 0; i < total; ++i) { |
443 | 94.9M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 94.9M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 8.61k | break; |
446 | 8.61k | } |
447 | | |
448 | 94.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 94.8M | } |
450 | | |
451 | 442k | if (LIKELY(read_count > 0)) { |
452 | 442k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 442k | } |
454 | | |
455 | 441k | *n = read_count; |
456 | 441k | return Status::OK(); |
457 | 441k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 76.4k | MutableColumnPtr& dst) override { | 433 | 76.4k | DCHECK(_parsed); | 434 | 76.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 76.4k | auto total = *n; | 440 | 76.4k | auto read_count = 0; | 441 | 76.4k | _buffer.resize(total); | 442 | 29.1M | for (size_t i = 0; i < total; ++i) { | 443 | 29.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 29.0M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 530 | break; | 446 | 530 | } | 447 | | | 448 | 29.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 29.0M | } | 450 | | | 451 | 76.4k | if (LIKELY(read_count > 0)) { | 452 | 76.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 76.4k | } | 454 | | | 455 | 76.4k | *n = read_count; | 456 | 76.4k | return Status::OK(); | 457 | 76.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 22.2k | MutableColumnPtr& dst) override { | 433 | 22.2k | DCHECK(_parsed); | 434 | 22.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 22.2k | auto total = *n; | 440 | 22.2k | auto read_count = 0; | 441 | 22.2k | _buffer.resize(total); | 442 | 819k | for (size_t i = 0; i < total; ++i) { | 443 | 797k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 797k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 797k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 797k | } | 450 | | | 451 | 22.2k | if (LIKELY(read_count > 0)) { | 452 | 22.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 22.2k | } | 454 | | | 455 | 22.2k | *n = read_count; | 456 | 22.2k | return Status::OK(); | 457 | 22.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 6.60k | MutableColumnPtr& dst) override { | 433 | 6.60k | DCHECK(_parsed); | 434 | 6.60k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 6.60k | auto total = *n; | 440 | 6.60k | auto read_count = 0; | 441 | 6.60k | _buffer.resize(total); | 442 | 44.4k | for (size_t i = 0; i < total; ++i) { | 443 | 37.8k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 37.8k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 37.8k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 37.8k | } | 450 | | | 451 | 6.61k | if (LIKELY(read_count > 0)) { | 452 | 6.61k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 6.61k | } | 454 | | | 455 | 6.60k | *n = read_count; | 456 | 6.60k | return Status::OK(); | 457 | 6.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 141k | MutableColumnPtr& dst) override { | 433 | 141k | DCHECK(_parsed); | 434 | 141k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 141k | auto total = *n; | 440 | 141k | auto read_count = 0; | 441 | 141k | _buffer.resize(total); | 442 | 11.0M | for (size_t i = 0; i < total; ++i) { | 443 | 10.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 10.9M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 638 | break; | 446 | 638 | } | 447 | | | 448 | 10.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 10.9M | } | 450 | | | 451 | 141k | if (LIKELY(read_count > 0)) { | 452 | 141k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 141k | } | 454 | | | 455 | 141k | *n = read_count; | 456 | 141k | return Status::OK(); | 457 | 141k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 33.9k | MutableColumnPtr& dst) override { | 433 | 33.9k | DCHECK(_parsed); | 434 | 33.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 33.9k | auto total = *n; | 440 | 33.9k | auto read_count = 0; | 441 | 33.9k | _buffer.resize(total); | 442 | 3.05M | for (size_t i = 0; i < total; ++i) { | 443 | 3.02M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.02M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 726 | break; | 446 | 726 | } | 447 | | | 448 | 3.01M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.01M | } | 450 | | | 451 | 33.9k | if (LIKELY(read_count > 0)) { | 452 | 33.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 33.9k | } | 454 | | | 455 | 33.9k | *n = read_count; | 456 | 33.9k | return Status::OK(); | 457 | 33.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 5.47k | MutableColumnPtr& dst) override { | 433 | 5.47k | DCHECK(_parsed); | 434 | 5.47k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 5.47k | auto total = *n; | 440 | 5.47k | auto read_count = 0; | 441 | 5.47k | _buffer.resize(total); | 442 | 11.7k | for (size_t i = 0; i < total; ++i) { | 443 | 6.27k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.27k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 6.27k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.27k | } | 450 | | | 451 | 5.47k | if (LIKELY(read_count > 0)) { | 452 | 5.47k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 5.47k | } | 454 | | | 455 | 5.47k | *n = read_count; | 456 | 5.47k | return Status::OK(); | 457 | 5.47k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.9k | MutableColumnPtr& dst) override { | 433 | 10.9k | DCHECK(_parsed); | 434 | 10.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.9k | auto total = *n; | 440 | 10.9k | auto read_count = 0; | 441 | 10.9k | _buffer.resize(total); | 442 | 1.19M | for (size_t i = 0; i < total; ++i) { | 443 | 1.18M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.18M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 28 | break; | 446 | 28 | } | 447 | | | 448 | 1.18M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.18M | } | 450 | | | 451 | 10.9k | if (LIKELY(read_count > 0)) { | 452 | 10.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.9k | } | 454 | | | 455 | 10.9k | *n = read_count; | 456 | 10.9k | return Status::OK(); | 457 | 10.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 14.9k | MutableColumnPtr& dst) override { | 433 | 14.9k | DCHECK(_parsed); | 434 | 14.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 14.9k | auto total = *n; | 440 | 14.9k | auto read_count = 0; | 441 | 14.9k | _buffer.resize(total); | 442 | 1.65M | for (size_t i = 0; i < total; ++i) { | 443 | 1.63M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.63M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 383 | break; | 446 | 383 | } | 447 | | | 448 | 1.63M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.63M | } | 450 | | | 451 | 14.9k | if (LIKELY(read_count > 0)) { | 452 | 14.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 14.9k | } | 454 | | | 455 | 14.9k | *n = read_count; | 456 | 14.9k | return Status::OK(); | 457 | 14.9k | } |
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.13k | MutableColumnPtr& dst) override { | 433 | 2.13k | DCHECK(_parsed); | 434 | 2.13k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.13k | auto total = *n; | 440 | 2.13k | auto read_count = 0; | 441 | 2.13k | _buffer.resize(total); | 442 | 460k | for (size_t i = 0; i < total; ++i) { | 443 | 458k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 458k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 8 | break; | 446 | 8 | } | 447 | | | 448 | 458k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 458k | } | 450 | | | 451 | 2.13k | if (LIKELY(read_count > 0)) { | 452 | 2.13k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.13k | } | 454 | | | 455 | 2.13k | *n = read_count; | 456 | 2.13k | return Status::OK(); | 457 | 2.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.8k | MutableColumnPtr& dst) override { | 433 | 30.8k | DCHECK(_parsed); | 434 | 30.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.8k | auto total = *n; | 440 | 30.8k | auto read_count = 0; | 441 | 30.8k | _buffer.resize(total); | 442 | 7.17M | for (size_t i = 0; i < total; ++i) { | 443 | 7.14M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.14M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 622 | break; | 446 | 622 | } | 447 | | | 448 | 7.14M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.14M | } | 450 | | | 451 | 30.8k | if (LIKELY(read_count > 0)) { | 452 | 30.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.8k | } | 454 | | | 455 | 30.8k | *n = read_count; | 456 | 30.8k | return Status::OK(); | 457 | 30.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 34.2k | MutableColumnPtr& dst) override { | 433 | 34.2k | DCHECK(_parsed); | 434 | 34.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 34.2k | auto total = *n; | 440 | 34.2k | auto read_count = 0; | 441 | 34.2k | _buffer.resize(total); | 442 | 7.62M | for (size_t i = 0; i < total; ++i) { | 443 | 7.59M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.59M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 85 | break; | 446 | 85 | } | 447 | | | 448 | 7.59M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.59M | } | 450 | | | 451 | 34.2k | if (LIKELY(read_count > 0)) { | 452 | 34.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 34.2k | } | 454 | | | 455 | 34.2k | *n = read_count; | 456 | 34.2k | return Status::OK(); | 457 | 34.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.28k | MutableColumnPtr& dst) override { | 433 | 2.28k | DCHECK(_parsed); | 434 | 2.28k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.28k | auto total = *n; | 440 | 2.28k | auto read_count = 0; | 441 | 2.28k | _buffer.resize(total); | 442 | 466k | for (size_t i = 0; i < total; ++i) { | 443 | 464k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 464k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 76 | break; | 446 | 76 | } | 447 | | | 448 | 464k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 464k | } | 450 | | | 451 | 2.28k | if (LIKELY(read_count > 0)) { | 452 | 2.28k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.28k | } | 454 | | | 455 | 2.28k | *n = read_count; | 456 | 2.28k | return Status::OK(); | 457 | 2.28k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 11.8k | MutableColumnPtr& dst) override { | 433 | 11.8k | DCHECK(_parsed); | 434 | 11.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 11.8k | auto total = *n; | 440 | 11.8k | auto read_count = 0; | 441 | 11.8k | _buffer.resize(total); | 442 | 25.1k | for (size_t i = 0; i < total; ++i) { | 443 | 13.3k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 13.3k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 13.3k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 13.3k | } | 450 | | | 451 | 11.8k | if (LIKELY(read_count > 0)) { | 452 | 11.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 11.8k | } | 454 | | | 455 | 11.8k | *n = read_count; | 456 | 11.8k | return Status::OK(); | 457 | 11.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 83 | MutableColumnPtr& dst) override { | 433 | 83 | DCHECK(_parsed); | 434 | 83 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 83 | auto total = *n; | 440 | 83 | auto read_count = 0; | 441 | 83 | _buffer.resize(total); | 442 | 174 | for (size_t i = 0; i < total; ++i) { | 443 | 91 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 91 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 91 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 91 | } | 450 | | | 451 | 83 | if (LIKELY(read_count > 0)) { | 452 | 83 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 83 | } | 454 | | | 455 | 83 | *n = read_count; | 456 | 83 | return Status::OK(); | 457 | 83 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.87k | MutableColumnPtr& dst) override { | 433 | 4.87k | DCHECK(_parsed); | 434 | 4.87k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.87k | auto total = *n; | 440 | 4.87k | auto read_count = 0; | 441 | 4.87k | _buffer.resize(total); | 442 | 19.5k | for (size_t i = 0; i < total; ++i) { | 443 | 14.7k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.7k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.7k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.7k | } | 450 | | | 451 | 4.87k | if (LIKELY(read_count > 0)) { | 452 | 4.87k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.87k | } | 454 | | | 455 | 4.87k | *n = read_count; | 456 | 4.87k | return Status::OK(); | 457 | 4.87k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 26.1k | MutableColumnPtr& dst) override { | 433 | 26.1k | DCHECK(_parsed); | 434 | 26.1k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 26.1k | auto total = *n; | 440 | 26.1k | auto read_count = 0; | 441 | 26.1k | _buffer.resize(total); | 442 | 22.2M | for (size_t i = 0; i < total; ++i) { | 443 | 22.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 22.2M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 5.13k | break; | 446 | 5.13k | } | 447 | | | 448 | 22.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 22.2M | } | 450 | | | 451 | 26.1k | if (LIKELY(read_count > 0)) { | 452 | 26.1k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 26.1k | } | 454 | | | 455 | 26.1k | *n = read_count; | 456 | 26.1k | return Status::OK(); | 457 | 26.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.9k | MutableColumnPtr& dst) override { | 433 | 15.9k | DCHECK(_parsed); | 434 | 15.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.9k | auto total = *n; | 440 | 15.9k | auto read_count = 0; | 441 | 15.9k | _buffer.resize(total); | 442 | 10.2M | for (size_t i = 0; i < total; ++i) { | 443 | 10.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 10.2M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 380 | break; | 446 | 380 | } | 447 | | | 448 | 10.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 10.2M | } | 450 | | | 451 | 15.9k | if (LIKELY(read_count > 0)) { | 452 | 15.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.9k | } | 454 | | | 455 | 15.9k | *n = read_count; | 456 | 15.9k | return Status::OK(); | 457 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 960 | MutableColumnPtr& dst) override { | 433 | 960 | DCHECK(_parsed); | 434 | 960 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 960 | auto total = *n; | 440 | 960 | auto read_count = 0; | 441 | 960 | _buffer.resize(total); | 442 | 2.77k | for (size_t i = 0; i < total; ++i) { | 443 | 1.81k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.81k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 1.81k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.81k | } | 450 | | | 451 | 960 | if (LIKELY(read_count > 0)) { | 452 | 960 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 960 | } | 454 | | | 455 | 960 | *n = read_count; | 456 | 960 | return Status::OK(); | 457 | 960 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 480 | MutableColumnPtr& dst) override { | 433 | 480 | DCHECK(_parsed); | 434 | 480 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 480 | auto total = *n; | 440 | 480 | auto read_count = 0; | 441 | 480 | _buffer.resize(total); | 442 | 1.20k | for (size_t i = 0; i < total; ++i) { | 443 | 724 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 724 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 724 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 724 | } | 450 | | | 451 | 482 | if (LIKELY(read_count > 0)) { | 452 | 482 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 482 | } | 454 | | | 455 | 480 | *n = read_count; | 456 | 480 | return Status::OK(); | 457 | 480 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 410 | MutableColumnPtr& dst) override { | 433 | 410 | DCHECK(_parsed); | 434 | 410 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 410 | auto total = *n; | 440 | 410 | auto read_count = 0; | 441 | 410 | _buffer.resize(total); | 442 | 1.33k | for (size_t i = 0; i < total; ++i) { | 443 | 923 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 923 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 923 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 923 | } | 450 | | | 451 | 412 | if (LIKELY(read_count > 0)) { | 452 | 412 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 412 | } | 454 | | | 455 | 410 | *n = read_count; | 456 | 410 | return Status::OK(); | 457 | 410 | } |
|
458 | | |
459 | 792k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 792k | return next_batch<false>(n, dst); |
461 | 792k | } 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 | 792k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 792k | return next_batch<false>(n, dst); | 461 | 792k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
462 | | |
463 | 3 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 463 | 3 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv |
464 | | |
465 | 2.50M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 2.09M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 1.20k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 893 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 309k | 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 | 297 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 16.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 11.6k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 7.73k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 29.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 15.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 6.43k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 989 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 465 | 9 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 465 | 3.49k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 2.36k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 6.78k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 304 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 56 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 104 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 99.1M | char* get_data(size_t index) const { |
468 | 99.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 99.1M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 31.0M | char* get_data(size_t index) const { | 468 | 31.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 31.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 964k | char* get_data(size_t index) const { | 468 | 964k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 964k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 49.4k | char* get_data(size_t index) const { | 468 | 49.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 49.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_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_9FieldTypeE8EE8get_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 | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 34.8k | char* get_data(size_t index) const { | 468 | 34.8k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 34.8k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.19M | char* get_data(size_t index) const { | 468 | 1.19M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.19M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 1.66M | char* get_data(size_t index) const { | 468 | 1.66M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.66M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 462k | char* get_data(size_t index) const { | 468 | 462k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 462k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 7.65M | char* get_data(size_t index) const { | 468 | 7.65M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.65M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.68M | char* get_data(size_t index) const { | 468 | 7.68M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.68M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 465k | char* get_data(size_t index) const { | 468 | 465k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 465k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 20.3k | char* get_data(size_t index) const { | 468 | 20.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.31k | char* get_data(size_t index) const { | 468 | 1.31k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.31k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 23.3k | char* get_data(size_t index) const { | 468 | 23.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 23.3k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 22.3M | char* get_data(size_t index) const { | 468 | 22.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 10.2M | char* get_data(size_t index) const { | 468 | 10.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 10.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 467 | 5.02k | char* get_data(size_t index) const { | 468 | 5.02k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 5.02k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 467 | 14.0k | char* get_data(size_t index) const { | 468 | 14.0k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 14.0k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 9.23k | char* get_data(size_t index) const { | 468 | 9.23k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 9.23k | } |
|
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 |