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 | 863k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 374k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 59.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 10.7k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 186k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 65.1k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 14.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 11.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 14.4k | Status init() override { return reset(); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 185 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 36.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 43.6k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 282 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 6.77k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 200 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.58k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 15.8k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.16k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 788 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 701 | Status init() override { return reset(); } |
|
97 | | |
98 | 143M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 142M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 61.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 13.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 496k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 65.4k | 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 | 13.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 11.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 16.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 192 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 54.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 43.4k | 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.89k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 102 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.12k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 35.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 16.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.37k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 711 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 3.12k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.56M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.56M | return add_internal<false>(vals, count); |
102 | 1.56M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 722k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 722k | return add_internal<false>(vals, count); | 102 | 722k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 61.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 61.0k | return add_internal<false>(vals, count); | 102 | 61.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 13.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 13.2k | return add_internal<false>(vals, count); | 102 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 496k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 496k | return add_internal<false>(vals, count); | 102 | 496k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 65.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 65.4k | return add_internal<false>(vals, count); | 102 | 65.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 13.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 13.8k | return add_internal<false>(vals, count); | 102 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 11.6k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.6k | return add_internal<false>(vals, count); | 102 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 16.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.4k | return add_internal<false>(vals, count); | 102 | 16.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 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 | 54.0k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 54.0k | return add_internal<false>(vals, count); | 102 | 54.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 43.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 43.4k | return add_internal<false>(vals, count); | 102 | 43.4k | } |
_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.90k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 6.90k | return add_internal<false>(vals, count); | 102 | 6.90k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 102 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 102 | return add_internal<false>(vals, count); | 102 | 102 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.12k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.12k | return add_internal<false>(vals, count); | 102 | 5.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 35.2k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 35.2k | return add_internal<false>(vals, count); | 102 | 35.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 16.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 16.8k | return add_internal<false>(vals, count); | 102 | 16.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.37k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.37k | return add_internal<false>(vals, count); | 102 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 711 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 711 | return add_internal<false>(vals, count); | 102 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 3.12k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 3.12k | return add_internal<false>(vals, count); | 102 | 3.12k | } |
|
103 | | |
104 | 143M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 143M | return add_internal<true>(vals, count); |
106 | 143M | } |
107 | | |
108 | | template <bool single> |
109 | 144M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 144M | DCHECK(!_finished); |
111 | 144M | 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 | 144M | uint32_t to_add = cast_set<UInt32>( |
127 | 144M | 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 | 144M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 144M | 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 | 144M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 144M | _count += to_add; |
135 | 144M | _remain_element_capacity -= to_add; |
136 | 144M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 144M | *num_written = to_add; |
139 | 144M | 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 | 142M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 142M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 142M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 142M | 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 | 142M | } |
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 | 144M | return Status::OK(); |
160 | 144M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 722k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 722k | DCHECK(!_finished); | 111 | 722k | 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 | 722k | uint32_t to_add = cast_set<UInt32>( | 127 | 722k | 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 | 722k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 722k | 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 | 722k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 722k | _count += to_add; | 135 | 722k | _remain_element_capacity -= to_add; | 136 | 722k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 722k | *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 | 722k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 722k | return Status::OK(); | 160 | 722k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 143M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 143M | DCHECK(!_finished); | 111 | 143M | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 143M | uint32_t to_add = cast_set<UInt32>( | 127 | 143M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 143M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 143M | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 143M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 142M | _count += to_add; | 135 | 142M | _remain_element_capacity -= to_add; | 136 | 142M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 142M | *num_written = to_add; | 139 | 142M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | 142M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 142M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 142M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 142M | 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 | 142M | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 142M | return Status::OK(); | 160 | 143M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 61.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 61.0k | DCHECK(!_finished); | 111 | 61.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 | 61.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 61.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 | 61.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 61.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 | 61.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 61.0k | _count += to_add; | 135 | 61.0k | _remain_element_capacity -= to_add; | 136 | 61.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 61.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 | 61.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 61.0k | return Status::OK(); | 160 | 61.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 13.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 13.2k | DCHECK(!_finished); | 111 | 13.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 | 13.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 13.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 | 13.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 13.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 | 13.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 13.2k | _count += to_add; | 135 | 13.2k | _remain_element_capacity -= to_add; | 136 | 13.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 13.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 | 13.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 13.2k | return Status::OK(); | 160 | 13.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 496k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 496k | DCHECK(!_finished); | 111 | 496k | 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 | 496k | uint32_t to_add = cast_set<UInt32>( | 127 | 496k | 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 | 496k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 496k | 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 | 496k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 496k | _count += to_add; | 135 | 496k | _remain_element_capacity -= to_add; | 136 | 496k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 496k | *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 | 496k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 496k | return Status::OK(); | 160 | 496k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 65.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 65.4k | DCHECK(!_finished); | 111 | 65.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 65.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 65.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 65.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 65.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 65.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 65.4k | _count += to_add; | 135 | 65.4k | _remain_element_capacity -= to_add; | 136 | 65.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 65.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 65.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 65.4k | return Status::OK(); | 160 | 65.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 13.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 13.8k | DCHECK(!_finished); | 111 | 13.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 13.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 13.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 13.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 13.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 13.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 13.8k | _count += to_add; | 135 | 13.8k | _remain_element_capacity -= to_add; | 136 | 13.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 13.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 13.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 13.8k | return Status::OK(); | 160 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.6k | DCHECK(!_finished); | 111 | 11.6k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 11.6k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 11.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.6k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 11.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.6k | _count += to_add; | 135 | 11.6k | _remain_element_capacity -= to_add; | 136 | 11.6k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.6k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 11.6k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.6k | return Status::OK(); | 160 | 11.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.4k | DCHECK(!_finished); | 111 | 16.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 16.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 16.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 16.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.4k | _count += to_add; | 135 | 16.4k | _remain_element_capacity -= to_add; | 136 | 16.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 16.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.4k | return Status::OK(); | 160 | 16.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 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 | 54.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 54.0k | DCHECK(!_finished); | 111 | 54.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 | 54.0k | uint32_t to_add = cast_set<UInt32>( | 127 | 54.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 | 54.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 54.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 | 54.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 54.0k | _count += to_add; | 135 | 54.0k | _remain_element_capacity -= to_add; | 136 | 54.0k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 54.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 | 54.0k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 54.0k | return Status::OK(); | 160 | 54.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 43.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 43.4k | DCHECK(!_finished); | 111 | 43.4k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 43.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 43.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 43.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 43.4k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 43.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 43.4k | _count += to_add; | 135 | 43.4k | _remain_element_capacity -= to_add; | 136 | 43.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 43.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 43.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 43.4k | return Status::OK(); | 160 | 43.4k | } |
_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.89k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 6.89k | DCHECK(!_finished); | 111 | 6.89k | 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.89k | uint32_t to_add = cast_set<UInt32>( | 127 | 6.89k | 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.89k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 6.89k | 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.89k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 6.90k | _count += to_add; | 135 | 6.90k | _remain_element_capacity -= to_add; | 136 | 6.90k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 6.90k | *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.90k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 6.90k | return Status::OK(); | 160 | 6.89k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 102 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 102 | DCHECK(!_finished); | 111 | 102 | 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 | 102 | uint32_t to_add = cast_set<UInt32>( | 127 | 102 | 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 | 102 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 102 | 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 | 102 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 102 | _count += to_add; | 135 | 102 | _remain_element_capacity -= to_add; | 136 | 102 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 102 | *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 | 102 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 102 | return Status::OK(); | 160 | 102 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.12k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.12k | DCHECK(!_finished); | 111 | 5.12k | 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.12k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.12k | 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.12k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.12k | 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.12k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.12k | _count += to_add; | 135 | 5.12k | _remain_element_capacity -= to_add; | 136 | 5.12k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.12k | *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.12k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.12k | return Status::OK(); | 160 | 5.12k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 35.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 35.2k | DCHECK(!_finished); | 111 | 35.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 | 35.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 35.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 | 35.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 35.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 | 35.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 35.2k | _count += to_add; | 135 | 35.2k | _remain_element_capacity -= to_add; | 136 | 35.2k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 35.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 | 35.2k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 35.2k | return Status::OK(); | 160 | 35.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 16.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 16.8k | DCHECK(!_finished); | 111 | 16.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 | 16.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 16.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 | 16.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 16.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 | 16.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 16.8k | _count += to_add; | 135 | 16.8k | _remain_element_capacity -= to_add; | 136 | 16.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 16.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 | 16.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 16.8k | return Status::OK(); | 160 | 16.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.37k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.37k | DCHECK(!_finished); | 111 | 1.37k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 1.37k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.37k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 1.37k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.37k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 1.37k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.37k | _count += to_add; | 135 | 1.37k | _remain_element_capacity -= to_add; | 136 | 1.37k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.37k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 1.37k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.37k | return Status::OK(); | 160 | 1.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 711 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 711 | DCHECK(!_finished); | 111 | 711 | 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 | 711 | uint32_t to_add = cast_set<UInt32>( | 127 | 711 | 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 | 711 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 711 | 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 | 711 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 711 | _count += to_add; | 135 | 711 | _remain_element_capacity -= to_add; | 136 | 711 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 711 | *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 | 711 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 711 | return Status::OK(); | 160 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 3.12k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 3.12k | DCHECK(!_finished); | 111 | 3.12k | 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 | 3.12k | uint32_t to_add = cast_set<UInt32>( | 127 | 3.12k | 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 | 3.12k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 3.12k | 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 | 3.12k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 3.12k | _count += to_add; | 135 | 3.12k | _remain_element_capacity -= to_add; | 136 | 3.12k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 3.12k | *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 | 3.12k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 3.12k | return Status::OK(); | 160 | 3.12k | } |
|
161 | | |
162 | 864k | Status finish(OwnedSlice* slice) override { |
163 | 864k | if (_count > 0) { |
164 | 818k | _first_value = cell(0); |
165 | 818k | _last_value = cell(_count - 1); |
166 | 818k | } |
167 | 864k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
168 | 864k | return Status::OK(); |
169 | 864k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 364k | Status finish(OwnedSlice* slice) override { | 163 | 364k | if (_count > 0) { | 164 | 331k | _first_value = cell(0); | 165 | 331k | _last_value = cell(_count - 1); | 166 | 331k | } | 167 | 364k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 365k | return Status::OK(); | 169 | 364k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 58.6k | Status finish(OwnedSlice* slice) override { | 163 | 58.6k | if (_count > 0) { | 164 | 58.3k | _first_value = cell(0); | 165 | 58.3k | _last_value = cell(_count - 1); | 166 | 58.3k | } | 167 | 58.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 58.6k | return Status::OK(); | 169 | 58.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.97k | Status finish(OwnedSlice* slice) override { | 163 | 9.97k | if (_count > 0) { | 164 | 9.89k | _first_value = cell(0); | 165 | 9.89k | _last_value = cell(_count - 1); | 166 | 9.89k | } | 167 | 9.97k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.97k | return Status::OK(); | 169 | 9.97k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 191k | Status finish(OwnedSlice* slice) override { | 163 | 191k | if (_count > 0) { | 164 | 190k | _first_value = cell(0); | 165 | 190k | _last_value = cell(_count - 1); | 166 | 190k | } | 167 | 191k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 192k | return Status::OK(); | 169 | 191k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 65.1k | Status finish(OwnedSlice* slice) override { | 163 | 65.1k | if (_count > 0) { | 164 | 65.1k | _first_value = cell(0); | 165 | 65.1k | _last_value = cell(_count - 1); | 166 | 65.1k | } | 167 | 65.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 65.1k | return Status::OK(); | 169 | 65.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 13.9k | Status finish(OwnedSlice* slice) override { | 163 | 13.9k | if (_count > 0) { | 164 | 13.4k | _first_value = cell(0); | 165 | 13.4k | _last_value = cell(_count - 1); | 166 | 13.4k | } | 167 | 13.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 13.9k | return Status::OK(); | 169 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.0k | Status finish(OwnedSlice* slice) override { | 163 | 11.0k | if (_count > 0) { | 164 | 10.6k | _first_value = cell(0); | 165 | 10.6k | _last_value = cell(_count - 1); | 166 | 10.6k | } | 167 | 11.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 11.0k | return Status::OK(); | 169 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 14.2k | Status finish(OwnedSlice* slice) override { | 163 | 14.2k | if (_count > 0) { | 164 | 13.9k | _first_value = cell(0); | 165 | 13.9k | _last_value = cell(_count - 1); | 166 | 13.9k | } | 167 | 14.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 14.2k | return Status::OK(); | 169 | 14.2k | } |
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.0k | Status finish(OwnedSlice* slice) override { | 163 | 37.0k | if (_count > 0) { | 164 | 36.0k | _first_value = cell(0); | 165 | 36.0k | _last_value = cell(_count - 1); | 166 | 36.0k | } | 167 | 37.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 37.0k | return Status::OK(); | 169 | 37.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 42.6k | Status finish(OwnedSlice* slice) override { | 163 | 42.6k | if (_count > 0) { | 164 | 41.2k | _first_value = cell(0); | 165 | 41.2k | _last_value = cell(_count - 1); | 166 | 41.2k | } | 167 | 42.6k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 42.6k | return Status::OK(); | 169 | 42.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 436 | Status finish(OwnedSlice* slice) override { | 163 | 436 | if (_count > 0) { | 164 | 337 | _first_value = cell(0); | 165 | 337 | _last_value = cell(_count - 1); | 166 | 337 | } | 167 | 436 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 437 | return Status::OK(); | 169 | 436 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.09k | Status finish(OwnedSlice* slice) override { | 163 | 7.09k | if (_count > 0) { | 164 | 6.89k | _first_value = cell(0); | 165 | 6.89k | _last_value = cell(_count - 1); | 166 | 6.89k | } | 167 | 7.09k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 7.09k | return Status::OK(); | 169 | 7.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 110 | Status finish(OwnedSlice* slice) override { | 163 | 110 | if (_count > 0) { | 164 | 102 | _first_value = cell(0); | 165 | 102 | _last_value = cell(_count - 1); | 166 | 102 | } | 167 | 110 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 110 | return Status::OK(); | 169 | 110 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.57k | Status finish(OwnedSlice* slice) override { | 163 | 9.57k | if (_count > 0) { | 164 | 4.66k | _first_value = cell(0); | 165 | 4.66k | _last_value = cell(_count - 1); | 166 | 4.66k | } | 167 | 9.57k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 9.57k | return Status::OK(); | 169 | 9.57k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 18.8k | Status finish(OwnedSlice* slice) override { | 163 | 18.8k | if (_count > 0) { | 164 | 17.9k | _first_value = cell(0); | 165 | 17.9k | _last_value = cell(_count - 1); | 166 | 17.9k | } | 167 | 18.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 18.8k | return Status::OK(); | 169 | 18.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 15.9k | Status finish(OwnedSlice* slice) override { | 163 | 15.9k | if (_count > 0) { | 164 | 15.5k | _first_value = cell(0); | 165 | 15.5k | _last_value = cell(_count - 1); | 166 | 15.5k | } | 167 | 15.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 15.9k | return Status::OK(); | 169 | 15.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.06k | Status finish(OwnedSlice* slice) override { | 163 | 1.06k | if (_count > 0) { | 164 | 1.01k | _first_value = cell(0); | 165 | 1.01k | _last_value = cell(_count - 1); | 166 | 1.01k | } | 167 | 1.06k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 1.06k | return Status::OK(); | 169 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 696 | Status finish(OwnedSlice* slice) override { | 163 | 696 | if (_count > 0) { | 164 | 647 | _first_value = cell(0); | 165 | 647 | _last_value = cell(_count - 1); | 166 | 647 | } | 167 | 696 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 696 | return Status::OK(); | 169 | 696 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 614 | Status finish(OwnedSlice* slice) override { | 163 | 614 | if (_count > 0) { | 164 | 580 | _first_value = cell(0); | 165 | 580 | _last_value = cell(_count - 1); | 166 | 580 | } | 167 | 614 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 168 | 614 | return Status::OK(); | 169 | 614 | } |
|
170 | | |
171 | 2.03M | Status reset() override { |
172 | 2.03M | RETURN_IF_CATCH_EXCEPTION({ |
173 | 2.03M | size_t block_size = _options.data_page_size; |
174 | 2.03M | _count = 0; |
175 | 2.03M | _raw_data_size = 0; |
176 | 2.03M | _data.clear(); |
177 | 2.03M | _data.reserve(block_size); |
178 | 2.03M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
179 | 2.03M | << "buffer must be naturally-aligned"; |
180 | 2.03M | _buffer.clear(); |
181 | 2.03M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
182 | 2.03M | _finished = false; |
183 | 2.03M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
184 | 2.03M | }); |
185 | 2.03M | return Status::OK(); |
186 | 2.03M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 171 | 1.04M | Status reset() override { | 172 | 1.04M | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.04M | size_t block_size = _options.data_page_size; | 174 | 1.04M | _count = 0; | 175 | 1.04M | _raw_data_size = 0; | 176 | 1.04M | _data.clear(); | 177 | 1.04M | _data.reserve(block_size); | 178 | 1.04M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.04M | << "buffer must be naturally-aligned"; | 180 | 1.04M | _buffer.clear(); | 181 | 1.04M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.04M | _finished = false; | 183 | 1.04M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.04M | }); | 185 | 1.04M | return Status::OK(); | 186 | 1.04M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 171 | 117k | Status reset() override { | 172 | 117k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 117k | size_t block_size = _options.data_page_size; | 174 | 117k | _count = 0; | 175 | 117k | _raw_data_size = 0; | 176 | 117k | _data.clear(); | 177 | 117k | _data.reserve(block_size); | 178 | 117k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 117k | << "buffer must be naturally-aligned"; | 180 | 117k | _buffer.clear(); | 181 | 117k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 117k | _finished = false; | 183 | 117k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 117k | }); | 185 | 118k | return Status::OK(); | 186 | 117k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 171 | 20.7k | Status reset() override { | 172 | 20.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 20.7k | size_t block_size = _options.data_page_size; | 174 | 20.7k | _count = 0; | 175 | 20.7k | _raw_data_size = 0; | 176 | 20.7k | _data.clear(); | 177 | 20.7k | _data.reserve(block_size); | 178 | 20.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 20.7k | << "buffer must be naturally-aligned"; | 180 | 20.7k | _buffer.clear(); | 181 | 20.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 20.7k | _finished = false; | 183 | 20.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 20.7k | }); | 185 | 20.7k | return Status::OK(); | 186 | 20.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 171 | 378k | Status reset() override { | 172 | 378k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 378k | size_t block_size = _options.data_page_size; | 174 | 378k | _count = 0; | 175 | 378k | _raw_data_size = 0; | 176 | 378k | _data.clear(); | 177 | 378k | _data.reserve(block_size); | 178 | 378k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 378k | << "buffer must be naturally-aligned"; | 180 | 378k | _buffer.clear(); | 181 | 378k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 378k | _finished = false; | 183 | 378k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 378k | }); | 185 | 378k | return Status::OK(); | 186 | 378k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 171 | 130k | Status reset() override { | 172 | 130k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 130k | size_t block_size = _options.data_page_size; | 174 | 130k | _count = 0; | 175 | 130k | _raw_data_size = 0; | 176 | 130k | _data.clear(); | 177 | 130k | _data.reserve(block_size); | 178 | 130k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 130k | << "buffer must be naturally-aligned"; | 180 | 130k | _buffer.clear(); | 181 | 130k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 130k | _finished = false; | 183 | 130k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 130k | }); | 185 | 130k | return Status::OK(); | 186 | 130k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 171 | 27.9k | Status reset() override { | 172 | 27.9k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 27.9k | size_t block_size = _options.data_page_size; | 174 | 27.9k | _count = 0; | 175 | 27.9k | _raw_data_size = 0; | 176 | 27.9k | _data.clear(); | 177 | 27.9k | _data.reserve(block_size); | 178 | 27.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 27.9k | << "buffer must be naturally-aligned"; | 180 | 27.9k | _buffer.clear(); | 181 | 27.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 27.9k | _finished = false; | 183 | 27.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 27.9k | }); | 185 | 27.9k | return Status::OK(); | 186 | 27.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 171 | 22.8k | Status reset() override { | 172 | 22.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 22.8k | size_t block_size = _options.data_page_size; | 174 | 22.8k | _count = 0; | 175 | 22.8k | _raw_data_size = 0; | 176 | 22.8k | _data.clear(); | 177 | 22.8k | _data.reserve(block_size); | 178 | 22.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 22.8k | << "buffer must be naturally-aligned"; | 180 | 22.8k | _buffer.clear(); | 181 | 22.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 22.8k | _finished = false; | 183 | 22.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 22.8k | }); | 185 | 22.8k | return Status::OK(); | 186 | 22.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 171 | 28.7k | Status reset() override { | 172 | 28.7k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 28.7k | size_t block_size = _options.data_page_size; | 174 | 28.7k | _count = 0; | 175 | 28.7k | _raw_data_size = 0; | 176 | 28.7k | _data.clear(); | 177 | 28.7k | _data.reserve(block_size); | 178 | 28.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 28.7k | << "buffer must be naturally-aligned"; | 180 | 28.7k | _buffer.clear(); | 181 | 28.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 28.7k | _finished = false; | 183 | 28.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 28.7k | }); | 185 | 28.7k | return Status::OK(); | 186 | 28.7k | } |
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 | 73.4k | Status reset() override { | 172 | 73.4k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 73.4k | size_t block_size = _options.data_page_size; | 174 | 73.4k | _count = 0; | 175 | 73.4k | _raw_data_size = 0; | 176 | 73.4k | _data.clear(); | 177 | 73.4k | _data.reserve(block_size); | 178 | 73.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 73.4k | << "buffer must be naturally-aligned"; | 180 | 73.4k | _buffer.clear(); | 181 | 73.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 73.4k | _finished = false; | 183 | 73.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 73.4k | }); | 185 | 73.5k | return Status::OK(); | 186 | 73.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 171 | 86.3k | Status reset() override { | 172 | 86.3k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 86.3k | size_t block_size = _options.data_page_size; | 174 | 86.3k | _count = 0; | 175 | 86.3k | _raw_data_size = 0; | 176 | 86.3k | _data.clear(); | 177 | 86.3k | _data.reserve(block_size); | 178 | 86.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 86.3k | << "buffer must be naturally-aligned"; | 180 | 86.3k | _buffer.clear(); | 181 | 86.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 86.3k | _finished = false; | 183 | 86.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 86.3k | }); | 185 | 86.4k | return Status::OK(); | 186 | 86.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 171 | 719 | Status reset() override { | 172 | 719 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 719 | size_t block_size = _options.data_page_size; | 174 | 719 | _count = 0; | 175 | 719 | _raw_data_size = 0; | 176 | 719 | _data.clear(); | 177 | 719 | _data.reserve(block_size); | 178 | 719 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 719 | << "buffer must be naturally-aligned"; | 180 | 719 | _buffer.clear(); | 181 | 719 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 719 | _finished = false; | 183 | 719 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 719 | }); | 185 | 720 | return Status::OK(); | 186 | 719 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 171 | 13.8k | Status reset() override { | 172 | 13.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 13.8k | size_t block_size = _options.data_page_size; | 174 | 13.8k | _count = 0; | 175 | 13.8k | _raw_data_size = 0; | 176 | 13.8k | _data.clear(); | 177 | 13.8k | _data.reserve(block_size); | 178 | 13.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 13.8k | << "buffer must be naturally-aligned"; | 180 | 13.8k | _buffer.clear(); | 181 | 13.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 13.8k | _finished = false; | 183 | 13.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 13.8k | }); | 185 | 14.1k | return Status::OK(); | 186 | 13.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 171 | 310 | Status reset() override { | 172 | 310 | RETURN_IF_CATCH_EXCEPTION({ | 173 | 310 | size_t block_size = _options.data_page_size; | 174 | 310 | _count = 0; | 175 | 310 | _raw_data_size = 0; | 176 | 310 | _data.clear(); | 177 | 310 | _data.reserve(block_size); | 178 | 310 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 310 | << "buffer must be naturally-aligned"; | 180 | 310 | _buffer.clear(); | 181 | 310 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 310 | _finished = false; | 183 | 310 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 310 | }); | 185 | 310 | return Status::OK(); | 186 | 310 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 171 | 19.1k | Status reset() override { | 172 | 19.1k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 19.1k | size_t block_size = _options.data_page_size; | 174 | 19.1k | _count = 0; | 175 | 19.1k | _raw_data_size = 0; | 176 | 19.1k | _data.clear(); | 177 | 19.1k | _data.reserve(block_size); | 178 | 19.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 19.1k | << "buffer must be naturally-aligned"; | 180 | 19.1k | _buffer.clear(); | 181 | 19.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 19.1k | _finished = false; | 183 | 19.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 19.1k | }); | 185 | 19.1k | return Status::OK(); | 186 | 19.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 171 | 31.0k | Status reset() override { | 172 | 31.0k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.0k | size_t block_size = _options.data_page_size; | 174 | 31.0k | _count = 0; | 175 | 31.0k | _raw_data_size = 0; | 176 | 31.0k | _data.clear(); | 177 | 31.0k | _data.reserve(block_size); | 178 | 31.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.0k | << "buffer must be naturally-aligned"; | 180 | 31.0k | _buffer.clear(); | 181 | 31.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.0k | _finished = false; | 183 | 31.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.0k | }); | 185 | 31.1k | return Status::OK(); | 186 | 31.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 171 | 31.8k | Status reset() override { | 172 | 31.8k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 31.8k | size_t block_size = _options.data_page_size; | 174 | 31.8k | _count = 0; | 175 | 31.8k | _raw_data_size = 0; | 176 | 31.8k | _data.clear(); | 177 | 31.8k | _data.reserve(block_size); | 178 | 31.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 31.8k | << "buffer must be naturally-aligned"; | 180 | 31.8k | _buffer.clear(); | 181 | 31.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 31.8k | _finished = false; | 183 | 31.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 31.8k | }); | 185 | 31.8k | return Status::OK(); | 186 | 31.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 171 | 2.22k | Status reset() override { | 172 | 2.22k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 2.22k | size_t block_size = _options.data_page_size; | 174 | 2.22k | _count = 0; | 175 | 2.22k | _raw_data_size = 0; | 176 | 2.22k | _data.clear(); | 177 | 2.22k | _data.reserve(block_size); | 178 | 2.22k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 2.22k | << "buffer must be naturally-aligned"; | 180 | 2.22k | _buffer.clear(); | 181 | 2.22k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 2.22k | _finished = false; | 183 | 2.22k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 2.22k | }); | 185 | 2.22k | return Status::OK(); | 186 | 2.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 171 | 1.48k | Status reset() override { | 172 | 1.48k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.48k | size_t block_size = _options.data_page_size; | 174 | 1.48k | _count = 0; | 175 | 1.48k | _raw_data_size = 0; | 176 | 1.48k | _data.clear(); | 177 | 1.48k | _data.reserve(block_size); | 178 | 1.48k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.48k | << "buffer must be naturally-aligned"; | 180 | 1.48k | _buffer.clear(); | 181 | 1.48k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.48k | _finished = false; | 183 | 1.48k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.48k | }); | 185 | 1.48k | return Status::OK(); | 186 | 1.48k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 171 | 1.31k | Status reset() override { | 172 | 1.31k | RETURN_IF_CATCH_EXCEPTION({ | 173 | 1.31k | size_t block_size = _options.data_page_size; | 174 | 1.31k | _count = 0; | 175 | 1.31k | _raw_data_size = 0; | 176 | 1.31k | _data.clear(); | 177 | 1.31k | _data.reserve(block_size); | 178 | 1.31k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 179 | 1.31k | << "buffer must be naturally-aligned"; | 180 | 1.31k | _buffer.clear(); | 181 | 1.31k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 182 | 1.31k | _finished = false; | 183 | 1.31k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 184 | 1.31k | }); | 185 | 1.31k | return Status::OK(); | 186 | 1.31k | } |
|
187 | | |
188 | 2.33M | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 188 | 2.33M | 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 | 32.4k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 190 | 16.7k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 190 | 2.72k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 190 | 981 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 190 | 2.80k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 190 | 780 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 190 | 1.60k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 190 | 762 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 190 | 773 | 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.59k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 190 | 2.08k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 190 | 13 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 190 | 6 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 190 | 2 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 190 | 133 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 190 | 291 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 190 | 1.11k | 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 | 564k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 192 | 65.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 192 | 58.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.97k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 192 | 191k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 192 | 65.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 | 13.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 192 | 11.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 192 | 14.2k | 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 | 37.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 192 | 42.6k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 192 | 436 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 192 | 7.08k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 192 | 110 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 192 | 9.57k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 192 | 18.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 192 | 15.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 192 | 1.06k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 192 | 696 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 192 | 614 | 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 | 863k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 373k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 59.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 10.7k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 186k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 65.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 11.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 14.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 185 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 36.3k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 43.6k | : _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.84k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 200 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 9.58k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 12.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 15.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 1.16k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 788 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 213 | 701 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
214 | | |
215 | 864k | OwnedSlice _finish(int final_size_of_type) { |
216 | 864k | _data.resize(final_size_of_type * _count); |
217 | | |
218 | | // Do padding so that the input num of element is multiple of 8. |
219 | 864k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
220 | 864k | int padding_elems = num_elems_after_padding - _count; |
221 | 864k | int padding_bytes = padding_elems * final_size_of_type; |
222 | 26.3M | for (int i = 0; i < padding_bytes; i++) { |
223 | 25.4M | _data.push_back(0); |
224 | 25.4M | } |
225 | | |
226 | | // reserve enough place for compression |
227 | 864k | _buffer.resize( |
228 | 864k | BITSHUFFLE_PAGE_HEADER_SIZE + |
229 | 864k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
230 | | |
231 | 864k | int64_t bytes = |
232 | 864k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
233 | 864k | num_elems_after_padding, final_size_of_type, 0); |
234 | 864k | 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 | 864k | encode_fixed32_le(&_buffer[0], _count); |
244 | 864k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
245 | 864k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
246 | 864k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
247 | 864k | _finished = true; |
248 | | // before build(), update buffer length to the actual compressed size |
249 | 864k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
250 | 864k | return _buffer.build(); |
251 | 864k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 215 | 364k | OwnedSlice _finish(int final_size_of_type) { | 216 | 364k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 364k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 364k | int padding_elems = num_elems_after_padding - _count; | 221 | 364k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.86M | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.50M | _data.push_back(0); | 224 | 6.50M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 364k | _buffer.resize( | 228 | 364k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 364k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 364k | int64_t bytes = | 232 | 364k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 364k | num_elems_after_padding, final_size_of_type, 0); | 234 | 364k | 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 | 364k | encode_fixed32_le(&_buffer[0], _count); | 244 | 364k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 364k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 364k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 364k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 364k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 364k | return _buffer.build(); | 251 | 364k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 215 | 58.6k | OwnedSlice _finish(int final_size_of_type) { | 216 | 58.6k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 58.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 58.6k | int padding_elems = num_elems_after_padding - _count; | 221 | 58.6k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 381k | for (int i = 0; i < padding_bytes; i++) { | 223 | 323k | _data.push_back(0); | 224 | 323k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 58.6k | _buffer.resize( | 228 | 58.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 58.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 58.6k | int64_t bytes = | 232 | 58.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 58.6k | num_elems_after_padding, final_size_of_type, 0); | 234 | 58.6k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 58.6k | encode_fixed32_le(&_buffer[0], _count); | 244 | 58.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 58.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 58.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 58.6k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 58.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 58.6k | return _buffer.build(); | 251 | 58.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 215 | 9.97k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.97k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.97k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.97k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.97k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 102k | for (int i = 0; i < padding_bytes; i++) { | 223 | 92.2k | _data.push_back(0); | 224 | 92.2k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.97k | _buffer.resize( | 228 | 9.97k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.97k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.97k | int64_t bytes = | 232 | 9.97k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.97k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.97k | 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.97k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.97k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.97k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.97k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.97k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.97k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.97k | return _buffer.build(); | 251 | 9.97k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 215 | 191k | OwnedSlice _finish(int final_size_of_type) { | 216 | 191k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 191k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 191k | int padding_elems = num_elems_after_padding - _count; | 221 | 191k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 9.22M | for (int i = 0; i < padding_bytes; i++) { | 223 | 9.03M | _data.push_back(0); | 224 | 9.03M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 191k | _buffer.resize( | 228 | 191k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 191k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 191k | int64_t bytes = | 232 | 191k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 191k | num_elems_after_padding, final_size_of_type, 0); | 234 | 191k | 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 | 191k | encode_fixed32_le(&_buffer[0], _count); | 244 | 191k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 191k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 191k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 191k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 191k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 191k | return _buffer.build(); | 251 | 191k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 215 | 65.1k | OwnedSlice _finish(int final_size_of_type) { | 216 | 65.1k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 65.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 65.1k | int padding_elems = num_elems_after_padding - _count; | 221 | 65.1k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 3.07M | for (int i = 0; i < padding_bytes; i++) { | 223 | 3.01M | _data.push_back(0); | 224 | 3.01M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 65.1k | _buffer.resize( | 228 | 65.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 65.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 65.1k | int64_t bytes = | 232 | 65.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 65.1k | num_elems_after_padding, final_size_of_type, 0); | 234 | 65.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 | 65.1k | encode_fixed32_le(&_buffer[0], _count); | 244 | 65.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 65.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 65.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 65.1k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 65.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 65.1k | return _buffer.build(); | 251 | 65.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 215 | 13.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 13.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 13.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 13.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 13.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 882k | for (int i = 0; i < padding_bytes; i++) { | 223 | 868k | _data.push_back(0); | 224 | 868k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 13.9k | _buffer.resize( | 228 | 13.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 13.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 13.9k | int64_t bytes = | 232 | 13.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 13.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 13.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 | 13.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 13.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 13.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 13.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 13.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 13.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 13.9k | return _buffer.build(); | 251 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 215 | 11.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 11.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 11.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 11.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 11.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 239k | for (int i = 0; i < padding_bytes; i++) { | 223 | 228k | _data.push_back(0); | 224 | 228k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 11.0k | _buffer.resize( | 228 | 11.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 11.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 11.0k | int64_t bytes = | 232 | 11.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 11.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 11.0k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 11.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 11.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 11.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 11.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 11.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 11.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 11.0k | return _buffer.build(); | 251 | 11.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 215 | 14.2k | OwnedSlice _finish(int final_size_of_type) { | 216 | 14.2k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 14.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 14.2k | int padding_elems = num_elems_after_padding - _count; | 221 | 14.2k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 593k | for (int i = 0; i < padding_bytes; i++) { | 223 | 579k | _data.push_back(0); | 224 | 579k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 14.2k | _buffer.resize( | 228 | 14.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 14.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 14.2k | int64_t bytes = | 232 | 14.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 14.2k | num_elems_after_padding, final_size_of_type, 0); | 234 | 14.2k | 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.2k | encode_fixed32_le(&_buffer[0], _count); | 244 | 14.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 14.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 14.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 14.2k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 14.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 14.2k | return _buffer.build(); | 251 | 14.2k | } |
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.69k | 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 | 37.0k | OwnedSlice _finish(int final_size_of_type) { | 216 | 37.0k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 37.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 37.0k | int padding_elems = num_elems_after_padding - _count; | 221 | 37.0k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 794k | for (int i = 0; i < padding_bytes; i++) { | 223 | 757k | _data.push_back(0); | 224 | 757k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 37.0k | _buffer.resize( | 228 | 37.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 37.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 37.0k | int64_t bytes = | 232 | 37.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 37.0k | num_elems_after_padding, final_size_of_type, 0); | 234 | 37.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 | 37.0k | encode_fixed32_le(&_buffer[0], _count); | 244 | 37.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 37.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 37.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 37.0k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 37.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 37.0k | return _buffer.build(); | 251 | 37.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 215 | 42.6k | OwnedSlice _finish(int final_size_of_type) { | 216 | 42.6k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 42.6k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 42.6k | int padding_elems = num_elems_after_padding - _count; | 221 | 42.6k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.82M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.77M | _data.push_back(0); | 224 | 1.77M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 42.6k | _buffer.resize( | 228 | 42.6k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 42.6k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 42.6k | int64_t bytes = | 232 | 42.6k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 42.6k | num_elems_after_padding, final_size_of_type, 0); | 234 | 42.6k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 42.6k | encode_fixed32_le(&_buffer[0], _count); | 244 | 42.6k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 42.6k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 42.6k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 42.6k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 42.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 42.6k | return _buffer.build(); | 251 | 42.6k | } |
_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.93k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.50k | _data.push_back(0); | 224 | 6.50k | } | 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.09k | OwnedSlice _finish(int final_size_of_type) { | 216 | 7.09k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 7.09k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 7.09k | int padding_elems = num_elems_after_padding - _count; | 221 | 7.09k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 371k | for (int i = 0; i < padding_bytes; i++) { | 223 | 364k | _data.push_back(0); | 224 | 364k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 7.09k | _buffer.resize( | 228 | 7.09k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 7.09k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 7.09k | int64_t bytes = | 232 | 7.09k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 7.09k | num_elems_after_padding, final_size_of_type, 0); | 234 | 7.09k | 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.09k | encode_fixed32_le(&_buffer[0], _count); | 244 | 7.09k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 7.09k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 7.09k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 7.09k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 7.09k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 7.09k | return _buffer.build(); | 251 | 7.09k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 215 | 110 | OwnedSlice _finish(int final_size_of_type) { | 216 | 110 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 110 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 110 | int padding_elems = num_elems_after_padding - _count; | 221 | 110 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 6.67k | for (int i = 0; i < padding_bytes; i++) { | 223 | 6.56k | _data.push_back(0); | 224 | 6.56k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 110 | _buffer.resize( | 228 | 110 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 110 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 110 | int64_t bytes = | 232 | 110 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 110 | num_elems_after_padding, final_size_of_type, 0); | 234 | 110 | 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 | 110 | encode_fixed32_le(&_buffer[0], _count); | 244 | 110 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 110 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 110 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 110 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 110 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 110 | return _buffer.build(); | 251 | 110 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 215 | 9.57k | OwnedSlice _finish(int final_size_of_type) { | 216 | 9.57k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 9.57k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 9.57k | int padding_elems = num_elems_after_padding - _count; | 221 | 9.57k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 115k | for (int i = 0; i < padding_bytes; i++) { | 223 | 105k | _data.push_back(0); | 224 | 105k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 9.57k | _buffer.resize( | 228 | 9.57k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 9.57k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 9.57k | int64_t bytes = | 232 | 9.57k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 9.57k | num_elems_after_padding, final_size_of_type, 0); | 234 | 9.57k | 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.57k | encode_fixed32_le(&_buffer[0], _count); | 244 | 9.57k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 9.57k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 9.57k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 9.57k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 9.57k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 9.57k | return _buffer.build(); | 251 | 9.57k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 215 | 18.8k | OwnedSlice _finish(int final_size_of_type) { | 216 | 18.8k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 18.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 18.8k | int padding_elems = num_elems_after_padding - _count; | 221 | 18.8k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 498k | for (int i = 0; i < padding_bytes; i++) { | 223 | 479k | _data.push_back(0); | 224 | 479k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 18.8k | _buffer.resize( | 228 | 18.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 18.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 18.8k | int64_t bytes = | 232 | 18.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 18.8k | num_elems_after_padding, final_size_of_type, 0); | 234 | 18.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 | 18.8k | encode_fixed32_le(&_buffer[0], _count); | 244 | 18.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 18.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 18.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 18.8k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 18.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 18.8k | return _buffer.build(); | 251 | 18.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 215 | 15.9k | OwnedSlice _finish(int final_size_of_type) { | 216 | 15.9k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 15.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 15.9k | int padding_elems = num_elems_after_padding - _count; | 221 | 15.9k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 1.09M | for (int i = 0; i < padding_bytes; i++) { | 223 | 1.07M | _data.push_back(0); | 224 | 1.07M | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 15.9k | _buffer.resize( | 228 | 15.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 15.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 15.9k | int64_t bytes = | 232 | 15.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 15.9k | num_elems_after_padding, final_size_of_type, 0); | 234 | 15.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 | 15.9k | encode_fixed32_le(&_buffer[0], _count); | 244 | 15.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 15.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 15.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 15.9k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 15.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 15.9k | return _buffer.build(); | 251 | 15.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 215 | 1.06k | OwnedSlice _finish(int final_size_of_type) { | 216 | 1.06k | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 1.06k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 1.06k | int padding_elems = num_elems_after_padding - _count; | 221 | 1.06k | int padding_bytes = padding_elems * final_size_of_type; | 222 | 162k | for (int i = 0; i < padding_bytes; i++) { | 223 | 161k | _data.push_back(0); | 224 | 161k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 1.06k | _buffer.resize( | 228 | 1.06k | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 1.06k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 1.06k | int64_t bytes = | 232 | 1.06k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 1.06k | num_elems_after_padding, final_size_of_type, 0); | 234 | 1.06k | if (bytes < 0) [[unlikely]] { | 235 | | // This means the bitshuffle function fails. | 236 | | // Ideally, this should not happen. | 237 | 0 | warn_with_bitshuffle_error(bytes); | 238 | | // It does not matter what will be returned here, | 239 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 240 | 0 | return OwnedSlice(); | 241 | 0 | } | 242 | | // update header | 243 | 1.06k | encode_fixed32_le(&_buffer[0], _count); | 244 | 1.06k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 1.06k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 1.06k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 1.06k | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 1.06k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 1.06k | return _buffer.build(); | 251 | 1.06k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 215 | 696 | OwnedSlice _finish(int final_size_of_type) { | 216 | 696 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 696 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 696 | int padding_elems = num_elems_after_padding - _count; | 221 | 696 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 14.6k | for (int i = 0; i < padding_bytes; i++) { | 223 | 13.9k | _data.push_back(0); | 224 | 13.9k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 696 | _buffer.resize( | 228 | 696 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 696 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 696 | int64_t bytes = | 232 | 696 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 696 | num_elems_after_padding, final_size_of_type, 0); | 234 | 696 | 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 | 696 | encode_fixed32_le(&_buffer[0], _count); | 244 | 696 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 696 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 696 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 696 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 696 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 696 | return _buffer.build(); | 251 | 696 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 215 | 614 | OwnedSlice _finish(int final_size_of_type) { | 216 | 614 | _data.resize(final_size_of_type * _count); | 217 | | | 218 | | // Do padding so that the input num of element is multiple of 8. | 219 | 614 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 220 | 614 | int padding_elems = num_elems_after_padding - _count; | 221 | 614 | int padding_bytes = padding_elems * final_size_of_type; | 222 | 49.6k | for (int i = 0; i < padding_bytes; i++) { | 223 | 49.0k | _data.push_back(0); | 224 | 49.0k | } | 225 | | | 226 | | // reserve enough place for compression | 227 | 614 | _buffer.resize( | 228 | 614 | BITSHUFFLE_PAGE_HEADER_SIZE + | 229 | 614 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 230 | | | 231 | 614 | int64_t bytes = | 232 | 614 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 233 | 614 | num_elems_after_padding, final_size_of_type, 0); | 234 | 614 | 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 | 614 | encode_fixed32_le(&_buffer[0], _count); | 244 | 614 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 245 | 614 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 246 | 614 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 247 | 614 | _finished = true; | 248 | | // before build(), update buffer length to the actual compressed size | 249 | 614 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 250 | 614 | return _buffer.build(); | 251 | 614 | } |
|
252 | | |
253 | | using CppType = typename TypeTraits<Type>::CppType; |
254 | | |
255 | 1.63M | CppType cell(int idx) const { |
256 | 1.63M | DCHECK_GE(idx, 0); |
257 | 1.63M | CppType ret; |
258 | 1.63M | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
259 | 1.63M | return ret; |
260 | 1.63M | } _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi Line | Count | Source | 255 | 662k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 662k | CppType ret; | 258 | 662k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 662k | return ret; | 260 | 662k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi Line | Count | Source | 255 | 116k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 116k | CppType ret; | 258 | 116k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 116k | return ret; | 260 | 116k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi Line | Count | Source | 255 | 19.7k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 19.7k | CppType ret; | 258 | 19.7k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 19.7k | return ret; | 260 | 19.7k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi Line | Count | Source | 255 | 381k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 381k | CppType ret; | 258 | 381k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 381k | return ret; | 260 | 381k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi Line | Count | Source | 255 | 130k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 130k | CppType ret; | 258 | 130k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 130k | return ret; | 260 | 130k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi Line | Count | Source | 255 | 26.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 26.9k | CppType ret; | 258 | 26.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 26.9k | return ret; | 260 | 26.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi Line | Count | Source | 255 | 21.3k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 21.3k | CppType ret; | 258 | 21.3k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 21.3k | return ret; | 260 | 21.3k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi Line | Count | Source | 255 | 27.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 27.9k | CppType ret; | 258 | 27.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 27.9k | return ret; | 260 | 27.9k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi Line | Count | Source | 255 | 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 | 72.1k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 72.1k | CppType ret; | 258 | 72.1k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 72.1k | return ret; | 260 | 72.1k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi Line | Count | Source | 255 | 82.5k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 82.5k | CppType ret; | 258 | 82.5k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 82.5k | return ret; | 260 | 82.5k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi Line | Count | Source | 255 | 672 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 672 | CppType ret; | 258 | 672 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 672 | return ret; | 260 | 672 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi 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_9FieldTypeE16EE4cellEi Line | Count | Source | 255 | 204 | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 204 | CppType ret; | 258 | 204 | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 204 | return ret; | 260 | 204 | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi Line | Count | Source | 255 | 9.32k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 9.32k | CppType ret; | 258 | 9.32k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 9.32k | return ret; | 260 | 9.32k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi Line | Count | Source | 255 | 35.9k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 35.9k | CppType ret; | 258 | 35.9k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 35.9k | return ret; | 260 | 35.9k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi Line | Count | Source | 255 | 31.0k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 31.0k | CppType ret; | 258 | 31.0k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 31.0k | return ret; | 260 | 31.0k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi Line | Count | Source | 255 | 2.02k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 2.02k | CppType ret; | 258 | 2.02k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 2.02k | return ret; | 260 | 2.02k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi Line | Count | Source | 255 | 1.29k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.29k | CppType ret; | 258 | 1.29k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.29k | return ret; | 260 | 1.29k | } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi Line | Count | Source | 255 | 1.16k | CppType cell(int idx) const { | 256 | | DCHECK_GE(idx, 0); | 257 | 1.16k | CppType ret; | 258 | 1.16k | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); | 259 | 1.16k | return ret; | 260 | 1.16k | } |
|
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.22M | int& size_of_element) { |
277 | 2.22M | 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.22M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
283 | 2.22M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
284 | 2.22M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
285 | 2.22M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
286 | 2.22M | 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.22M | switch (size_of_element) { |
295 | 152k | case 1: |
296 | 173k | case 2: |
297 | 174k | case 3: |
298 | 1.39M | case 4: |
299 | 2.14M | case 8: |
300 | 2.14M | case 12: |
301 | 2.22M | case 16: |
302 | 2.22M | case 32: |
303 | 2.22M | break; |
304 | 0 | default: |
305 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
306 | 2.22M | } |
307 | 2.22M | return Status::OK(); |
308 | 2.22M | } |
309 | | |
310 | | template <FieldType Type> |
311 | | class BitShufflePageDecoder : public PageDecoder { |
312 | | public: |
313 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
314 | 1.47M | : _data(data), |
315 | 1.47M | _options(options), |
316 | 1.47M | _parsed(false), |
317 | 1.47M | _num_elements(0), |
318 | 1.47M | _num_element_after_padding(0), |
319 | 1.47M | _size_of_element(0), |
320 | 1.47M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 706k | : _data(data), | 315 | 706k | _options(options), | 316 | 706k | _parsed(false), | 317 | 706k | _num_elements(0), | 318 | 706k | _num_element_after_padding(0), | 319 | 706k | _size_of_element(0), | 320 | 706k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 96.2k | : _data(data), | 315 | 96.2k | _options(options), | 316 | 96.2k | _parsed(false), | 317 | 96.2k | _num_elements(0), | 318 | 96.2k | _num_element_after_padding(0), | 319 | 96.2k | _size_of_element(0), | 320 | 96.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 13.1k | : _data(data), | 315 | 13.1k | _options(options), | 316 | 13.1k | _parsed(false), | 317 | 13.1k | _num_elements(0), | 318 | 13.1k | _num_element_after_padding(0), | 319 | 13.1k | _size_of_element(0), | 320 | 13.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 264k | : _data(data), | 315 | 264k | _options(options), | 316 | 264k | _parsed(false), | 317 | 264k | _num_elements(0), | 318 | 264k | _num_element_after_padding(0), | 319 | 264k | _size_of_element(0), | 320 | 264k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 88.4k | : _data(data), | 315 | 88.4k | _options(options), | 316 | 88.4k | _parsed(false), | 317 | 88.4k | _num_elements(0), | 318 | 88.4k | _num_element_after_padding(0), | 319 | 88.4k | _size_of_element(0), | 320 | 88.4k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.1k | : _data(data), | 315 | 19.1k | _options(options), | 316 | 19.1k | _parsed(false), | 317 | 19.1k | _num_elements(0), | 318 | 19.1k | _num_element_after_padding(0), | 319 | 19.1k | _size_of_element(0), | 320 | 19.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 19.2k | : _data(data), | 315 | 19.2k | _options(options), | 316 | 19.2k | _parsed(false), | 317 | 19.2k | _num_elements(0), | 318 | 19.2k | _num_element_after_padding(0), | 319 | 19.2k | _size_of_element(0), | 320 | 19.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 29.7k | : _data(data), | 315 | 29.7k | _options(options), | 316 | 29.7k | _parsed(false), | 317 | 29.7k | _num_elements(0), | 318 | 29.7k | _num_element_after_padding(0), | 319 | 29.7k | _size_of_element(0), | 320 | 29.7k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.48k | : _data(data), | 315 | 1.48k | _options(options), | 316 | 1.48k | _parsed(false), | 317 | 1.48k | _num_elements(0), | 318 | 1.48k | _num_element_after_padding(0), | 319 | 1.48k | _size_of_element(0), | 320 | 1.48k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 59.5k | : _data(data), | 315 | 59.5k | _options(options), | 316 | 59.5k | _parsed(false), | 317 | 59.5k | _num_elements(0), | 318 | 59.5k | _num_element_after_padding(0), | 319 | 59.5k | _size_of_element(0), | 320 | 59.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 67.0k | : _data(data), | 315 | 67.0k | _options(options), | 316 | 67.0k | _parsed(false), | 317 | 67.0k | _num_elements(0), | 318 | 67.0k | _num_element_after_padding(0), | 319 | 67.0k | _size_of_element(0), | 320 | 67.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 2.16k | : _data(data), | 315 | 2.16k | _options(options), | 316 | 2.16k | _parsed(false), | 317 | 2.16k | _num_elements(0), | 318 | 2.16k | _num_element_after_padding(0), | 319 | 2.16k | _size_of_element(0), | 320 | 2.16k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 14.9k | : _data(data), | 315 | 14.9k | _options(options), | 316 | 14.9k | _parsed(false), | 317 | 14.9k | _num_elements(0), | 318 | 14.9k | _num_element_after_padding(0), | 319 | 14.9k | _size_of_element(0), | 320 | 14.9k | _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.2k | : _data(data), | 315 | 15.2k | _options(options), | 316 | 15.2k | _parsed(false), | 317 | 15.2k | _num_elements(0), | 318 | 15.2k | _num_element_after_padding(0), | 319 | 15.2k | _size_of_element(0), | 320 | 15.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 39.9k | : _data(data), | 315 | 39.9k | _options(options), | 316 | 39.9k | _parsed(false), | 317 | 39.9k | _num_elements(0), | 318 | 39.9k | _num_element_after_padding(0), | 319 | 39.9k | _size_of_element(0), | 320 | 39.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 29.3k | : _data(data), | 315 | 29.3k | _options(options), | 316 | 29.3k | _parsed(false), | 317 | 29.3k | _num_elements(0), | 318 | 29.3k | _num_element_after_padding(0), | 319 | 29.3k | _size_of_element(0), | 320 | 29.3k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.76k | : _data(data), | 315 | 1.76k | _options(options), | 316 | 1.76k | _parsed(false), | 317 | 1.76k | _num_elements(0), | 318 | 1.76k | _num_element_after_padding(0), | 319 | 1.76k | _size_of_element(0), | 320 | 1.76k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.19k | : _data(data), | 315 | 1.19k | _options(options), | 316 | 1.19k | _parsed(false), | 317 | 1.19k | _num_elements(0), | 318 | 1.19k | _num_element_after_padding(0), | 319 | 1.19k | _size_of_element(0), | 320 | 1.19k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 314 | 1.15k | : _data(data), | 315 | 1.15k | _options(options), | 316 | 1.15k | _parsed(false), | 317 | 1.15k | _num_elements(0), | 318 | 1.15k | _num_element_after_padding(0), | 319 | 1.15k | _size_of_element(0), | 320 | 1.15k | _cur_index(0) {} |
|
321 | | |
322 | 1.47M | Status init() override { |
323 | 1.47M | CHECK(!_parsed); |
324 | 1.47M | size_t unused; |
325 | 1.47M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
326 | 1.47M | _num_element_after_padding, _size_of_element)); |
327 | | |
328 | 1.47M | if (_data.size != |
329 | 1.47M | _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.47M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
339 | 1.47M | _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.47M | 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.47M | _parsed = true; |
349 | 1.47M | return Status::OK(); |
350 | 1.47M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 322 | 705k | Status init() override { | 323 | 705k | CHECK(!_parsed); | 324 | 705k | size_t unused; | 325 | 705k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 705k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 705k | if (_data.size != | 329 | 705k | _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 | 705k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 705k | _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 | 705k | 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 | 705k | _parsed = true; | 349 | 705k | return Status::OK(); | 350 | 705k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 322 | 96.1k | Status init() override { | 323 | 96.1k | CHECK(!_parsed); | 324 | 96.1k | size_t unused; | 325 | 96.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 96.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 96.1k | if (_data.size != | 329 | 96.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 | 96.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 96.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 | 96.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 | 96.1k | _parsed = true; | 349 | 96.1k | return Status::OK(); | 350 | 96.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 322 | 13.1k | Status init() override { | 323 | 13.1k | CHECK(!_parsed); | 324 | 13.1k | size_t unused; | 325 | 13.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 13.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 13.1k | if (_data.size != | 329 | 13.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 | 13.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 13.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 | 13.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 | 13.1k | _parsed = true; | 349 | 13.1k | return Status::OK(); | 350 | 13.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 322 | 264k | Status init() override { | 323 | 264k | CHECK(!_parsed); | 324 | 264k | size_t unused; | 325 | 264k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 264k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 264k | if (_data.size != | 329 | 264k | _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 | 264k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 264k | _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 | 264k | 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 | 264k | _parsed = true; | 349 | 264k | return Status::OK(); | 350 | 264k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 322 | 88.4k | Status init() override { | 323 | 88.4k | CHECK(!_parsed); | 324 | 88.4k | size_t unused; | 325 | 88.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 88.4k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 88.4k | if (_data.size != | 329 | 88.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 88.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 88.4k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 88.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 88.4k | _parsed = true; | 349 | 88.4k | return Status::OK(); | 350 | 88.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 322 | 19.1k | Status init() override { | 323 | 19.1k | CHECK(!_parsed); | 324 | 19.1k | size_t unused; | 325 | 19.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.1k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.1k | if (_data.size != | 329 | 19.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 | 19.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.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 | 19.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 | 19.1k | _parsed = true; | 349 | 19.1k | return Status::OK(); | 350 | 19.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 322 | 19.2k | Status init() override { | 323 | 19.2k | CHECK(!_parsed); | 324 | 19.2k | size_t unused; | 325 | 19.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 19.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 19.2k | if (_data.size != | 329 | 19.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 19.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 19.2k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 19.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 19.2k | _parsed = true; | 349 | 19.2k | return Status::OK(); | 350 | 19.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 322 | 29.7k | Status init() override { | 323 | 29.7k | CHECK(!_parsed); | 324 | 29.7k | size_t unused; | 325 | 29.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 29.7k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 29.7k | if (_data.size != | 329 | 29.7k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 29.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 29.7k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 29.7k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 29.7k | _parsed = true; | 349 | 29.7k | return Status::OK(); | 350 | 29.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 322 | 1.48k | Status init() override { | 323 | 1.48k | CHECK(!_parsed); | 324 | 1.48k | size_t unused; | 325 | 1.48k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.48k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.48k | if (_data.size != | 329 | 1.48k | _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.48k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.48k | _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.48k | 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.48k | _parsed = true; | 349 | 1.48k | return Status::OK(); | 350 | 1.48k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 322 | 59.4k | Status init() override { | 323 | 59.4k | CHECK(!_parsed); | 324 | 59.4k | size_t unused; | 325 | 59.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 59.4k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 59.4k | if (_data.size != | 329 | 59.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 59.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 59.4k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 59.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 59.4k | _parsed = true; | 349 | 59.4k | return Status::OK(); | 350 | 59.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 322 | 66.9k | Status init() override { | 323 | 66.9k | CHECK(!_parsed); | 324 | 66.9k | size_t unused; | 325 | 66.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 66.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 66.9k | if (_data.size != | 329 | 66.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 | 66.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 66.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 | 66.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 | 66.9k | _parsed = true; | 349 | 66.9k | return Status::OK(); | 350 | 66.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 322 | 2.16k | Status init() override { | 323 | 2.16k | CHECK(!_parsed); | 324 | 2.16k | size_t unused; | 325 | 2.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 2.16k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 2.16k | if (_data.size != | 329 | 2.16k | _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.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 2.16k | _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.16k | 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.16k | _parsed = true; | 349 | 2.16k | return Status::OK(); | 350 | 2.16k | } |
_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.30k | Status init() override { | 323 | 1.30k | CHECK(!_parsed); | 324 | 1.30k | size_t unused; | 325 | 1.30k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.30k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.30k | if (_data.size != | 329 | 1.30k | _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.30k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.30k | _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.30k | 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.30k | _parsed = true; | 349 | 1.30k | return Status::OK(); | 350 | 1.30k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 322 | 15.2k | Status init() override { | 323 | 15.2k | CHECK(!_parsed); | 324 | 15.2k | size_t unused; | 325 | 15.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 15.2k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 15.2k | if (_data.size != | 329 | 15.2k | _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.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 15.2k | _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.2k | 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.2k | _parsed = true; | 349 | 15.2k | return Status::OK(); | 350 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 322 | 39.9k | Status init() override { | 323 | 39.9k | CHECK(!_parsed); | 324 | 39.9k | size_t unused; | 325 | 39.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 39.9k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 39.9k | if (_data.size != | 329 | 39.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 | 39.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 39.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 | 39.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 | 39.9k | _parsed = true; | 349 | 39.9k | return Status::OK(); | 350 | 39.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 322 | 29.3k | Status init() override { | 323 | 29.3k | CHECK(!_parsed); | 324 | 29.3k | size_t unused; | 325 | 29.3k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 29.3k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 29.3k | if (_data.size != | 329 | 29.3k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 29.3k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 29.3k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 29.3k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 29.3k | _parsed = true; | 349 | 29.3k | return Status::OK(); | 350 | 29.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 322 | 1.76k | Status init() override { | 323 | 1.76k | CHECK(!_parsed); | 324 | 1.76k | size_t unused; | 325 | 1.76k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.76k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.76k | if (_data.size != | 329 | 1.76k | _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.76k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.76k | _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.76k | 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.76k | _parsed = true; | 349 | 1.76k | return Status::OK(); | 350 | 1.76k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 322 | 1.19k | Status init() override { | 323 | 1.19k | CHECK(!_parsed); | 324 | 1.19k | size_t unused; | 325 | 1.19k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.19k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.19k | if (_data.size != | 329 | 1.19k | _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.19k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.19k | _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.19k | 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.19k | _parsed = true; | 349 | 1.19k | return Status::OK(); | 350 | 1.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 322 | 1.15k | Status init() override { | 323 | 1.15k | CHECK(!_parsed); | 324 | 1.15k | size_t unused; | 325 | 1.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 326 | 1.15k | _num_element_after_padding, _size_of_element)); | 327 | | | 328 | 1.15k | if (_data.size != | 329 | 1.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 330 | 0 | std::stringstream ss; | 331 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 332 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 333 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 334 | 0 | return Status::InternalError(ss.str()); | 335 | 0 | } | 336 | | | 337 | | // Currently, only the UINT32 block encoder supports expanding size: | 338 | 1.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 339 | 1.15k | _size_of_element != SIZE_OF_TYPE)) { | 340 | 0 | return Status::InternalError( | 341 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 342 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 343 | 0 | } | 344 | 1.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 345 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 346 | 0 | _size_of_element, SIZE_OF_TYPE); | 347 | 0 | } | 348 | 1.15k | _parsed = true; | 349 | 1.15k | return Status::OK(); | 350 | 1.15k | } |
|
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.99M | Status seek_to_position_in_page(size_t pos) override { |
359 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
360 | 2.99M | if (_num_elements == 0) [[unlikely]] { |
361 | 6.80k | if (pos != 0) { |
362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
364 | 0 | } |
365 | 6.80k | } |
366 | | |
367 | 2.99M | DCHECK_LE(pos, _num_elements); |
368 | 2.99M | _cur_index = pos; |
369 | 2.99M | return Status::OK(); |
370 | 2.99M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 2.11M | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 2.11M | if (_num_elements == 0) [[unlikely]] { | 361 | 3.25k | 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 | 3.25k | } | 366 | | | 367 | 2.11M | DCHECK_LE(pos, _num_elements); | 368 | 2.11M | _cur_index = pos; | 369 | 2.11M | return Status::OK(); | 370 | 2.11M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 123k | Status seek_to_position_in_page(size_t pos) override { | 359 | 123k | DCHECK(_parsed) << "Must call init()"; | 360 | 123k | if (_num_elements == 0) [[unlikely]] { | 361 | 440 | 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 | 440 | } | 366 | | | 367 | 123k | DCHECK_LE(pos, _num_elements); | 368 | 123k | _cur_index = pos; | 369 | 123k | return Status::OK(); | 370 | 123k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.7k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 17.7k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 17.7k | DCHECK_LE(pos, _num_elements); | 368 | 17.7k | _cur_index = pos; | 369 | 17.7k | return Status::OK(); | 370 | 17.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 232k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 232k | if (_num_elements == 0) [[unlikely]] { | 361 | 877 | 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 | 877 | } | 366 | | | 367 | 232k | DCHECK_LE(pos, _num_elements); | 368 | 232k | _cur_index = pos; | 369 | 232k | return Status::OK(); | 370 | 232k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 11.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 | 11.0k | DCHECK_LE(pos, _num_elements); | 368 | 11.0k | _cur_index = pos; | 369 | 11.0k | return Status::OK(); | 370 | 11.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 11.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 6 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 6 | } | 366 | | | 367 | 11.9k | DCHECK_LE(pos, _num_elements); | 368 | 11.9k | _cur_index = pos; | 369 | 11.9k | return Status::OK(); | 370 | 11.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 17.2k | Status seek_to_position_in_page(size_t pos) override { | 359 | 17.2k | DCHECK(_parsed) << "Must call init()"; | 360 | 17.2k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 17.2k | DCHECK_LE(pos, _num_elements); | 368 | 17.2k | _cur_index = pos; | 369 | 17.2k | return Status::OK(); | 370 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 13.0k | Status seek_to_position_in_page(size_t pos) override { | 359 | 13.0k | DCHECK(_parsed) << "Must call init()"; | 360 | 13.0k | 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 | 13.0k | DCHECK_LE(pos, _num_elements); | 368 | 13.0k | _cur_index = pos; | 369 | 13.0k | return Status::OK(); | 370 | 13.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 11.5k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 11.5k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 11.5k | DCHECK_LE(pos, _num_elements); | 368 | 11.5k | _cur_index = pos; | 369 | 11.5k | return Status::OK(); | 370 | 11.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 339k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 339k | if (_num_elements == 0) [[unlikely]] { | 361 | 777 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 777 | } | 366 | | | 367 | 339k | DCHECK_LE(pos, _num_elements); | 368 | 339k | _cur_index = pos; | 369 | 339k | return Status::OK(); | 370 | 339k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 52.6k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 52.6k | if (_num_elements == 0) [[unlikely]] { | 361 | 15 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 15 | } | 366 | | | 367 | 52.6k | DCHECK_LE(pos, _num_elements); | 368 | 52.6k | _cur_index = pos; | 369 | 52.6k | return Status::OK(); | 370 | 52.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 7.19k | Status seek_to_position_in_page(size_t pos) override { | 359 | 7.19k | DCHECK(_parsed) << "Must call init()"; | 360 | 7.19k | if (_num_elements == 0) [[unlikely]] { | 361 | 0 | if (pos != 0) { | 362 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 363 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 364 | 0 | } | 365 | 0 | } | 366 | | | 367 | 7.19k | DCHECK_LE(pos, _num_elements); | 368 | 7.19k | _cur_index = pos; | 369 | 7.19k | return Status::OK(); | 370 | 7.19k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 6.74k | Status seek_to_position_in_page(size_t pos) override { | 359 | 6.74k | DCHECK(_parsed) << "Must call init()"; | 360 | 6.74k | 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.74k | DCHECK_LE(pos, _num_elements); | 368 | 6.74k | _cur_index = pos; | 369 | 6.74k | return Status::OK(); | 370 | 6.74k | } |
_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 | 802 | Status seek_to_position_in_page(size_t pos) override { | 359 | 802 | DCHECK(_parsed) << "Must call init()"; | 360 | 802 | if (_num_elements == 0) [[unlikely]] { | 361 | 33 | 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 | 33 | } | 366 | | | 367 | 802 | DCHECK_LE(pos, _num_elements); | 368 | 802 | _cur_index = pos; | 369 | 802 | return Status::OK(); | 370 | 802 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 15.4k | Status seek_to_position_in_page(size_t pos) override { | 359 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 360 | 15.4k | if (_num_elements == 0) [[unlikely]] { | 361 | 782 | 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 | 782 | } | 366 | | | 367 | 15.4k | DCHECK_LE(pos, _num_elements); | 368 | 15.4k | _cur_index = pos; | 369 | 15.4k | return Status::OK(); | 370 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 12.9k | Status seek_to_position_in_page(size_t pos) override { | 359 | 12.9k | DCHECK(_parsed) << "Must call init()"; | 360 | 12.9k | if (_num_elements == 0) [[unlikely]] { | 361 | 255 | 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 | 255 | } | 366 | | | 367 | 12.9k | DCHECK_LE(pos, _num_elements); | 368 | 12.9k | _cur_index = pos; | 369 | 12.9k | return Status::OK(); | 370 | 12.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 1.98k | Status seek_to_position_in_page(size_t pos) override { | 359 | 1.98k | DCHECK(_parsed) << "Must call init()"; | 360 | 1.98k | 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.98k | DCHECK_LE(pos, _num_elements); | 368 | 1.98k | _cur_index = pos; | 369 | 1.98k | return Status::OK(); | 370 | 1.98k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 68 | Status seek_to_position_in_page(size_t pos) override { | 359 | 68 | DCHECK(_parsed) << "Must call init()"; | 360 | 68 | 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 | 68 | DCHECK_LE(pos, _num_elements); | 368 | 68 | _cur_index = pos; | 369 | 68 | return Status::OK(); | 370 | 68 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 358 | 90 | Status seek_to_position_in_page(size_t pos) override { | 359 | 90 | DCHECK(_parsed) << "Must call init()"; | 360 | 90 | 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 | 90 | DCHECK_LE(pos, _num_elements); | 368 | 90 | _cur_index = pos; | 369 | 90 | return Status::OK(); | 370 | 90 | } |
|
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.94M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
412 | 2.94M | DCHECK(_parsed); |
413 | 2.94M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
414 | 0 | *n = 0; |
415 | 0 | return Status::OK(); |
416 | 0 | } |
417 | | |
418 | 2.94M | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); |
419 | | |
420 | 2.94M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
421 | 2.94M | *n = max_fetch; |
422 | 2.94M | if constexpr (forward_index) { |
423 | 2.17M | _cur_index += max_fetch; |
424 | 2.17M | } |
425 | | |
426 | 2.94M | return Status::OK(); |
427 | 2.94M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 399k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 399k | DCHECK(_parsed); | 413 | 399k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 399k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 399k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 399k | *n = max_fetch; | 422 | 399k | if constexpr (forward_index) { | 423 | 399k | _cur_index += max_fetch; | 424 | 399k | } | 425 | | | 426 | 399k | return Status::OK(); | 427 | 399k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 556k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 556k | DCHECK(_parsed); | 413 | 557k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 556k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 556k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 556k | *n = max_fetch; | 422 | 556k | if constexpr (forward_index) { | 423 | 556k | _cur_index += max_fetch; | 424 | 556k | } | 425 | | | 426 | 556k | return Status::OK(); | 427 | 556k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 12.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 12.9k | DCHECK(_parsed); | 413 | 12.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 12.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 12.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 12.9k | *n = max_fetch; | 422 | 12.9k | if constexpr (forward_index) { | 423 | 12.9k | _cur_index += max_fetch; | 424 | 12.9k | } | 425 | | | 426 | 12.9k | return Status::OK(); | 427 | 12.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 114k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 114k | DCHECK(_parsed); | 413 | 114k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 114k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 114k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 114k | *n = max_fetch; | 422 | 114k | if constexpr (forward_index) { | 423 | 114k | _cur_index += max_fetch; | 424 | 114k | } | 425 | | | 426 | 114k | return Status::OK(); | 427 | 114k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 435k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 435k | DCHECK(_parsed); | 413 | 435k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 435k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 435k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 435k | *n = max_fetch; | 422 | 435k | if constexpr (forward_index) { | 423 | 435k | _cur_index += max_fetch; | 424 | 435k | } | 425 | | | 426 | 435k | return Status::OK(); | 427 | 435k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 774k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 774k | DCHECK(_parsed); | 413 | 775k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 774k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 774k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 774k | *n = max_fetch; | 422 | | if constexpr (forward_index) { | 423 | | _cur_index += max_fetch; | 424 | | } | 425 | | | 426 | 774k | return Status::OK(); | 427 | 774k | } |
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 | 15.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 15.6k | DCHECK(_parsed); | 413 | 15.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 15.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 15.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 15.6k | *n = max_fetch; | 422 | 15.6k | if constexpr (forward_index) { | 423 | 15.6k | _cur_index += max_fetch; | 424 | 15.6k | } | 425 | | | 426 | 15.6k | return Status::OK(); | 427 | 15.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 | 13.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 13.9k | DCHECK(_parsed); | 413 | 13.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 13.9k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 13.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 13.9k | *n = max_fetch; | 422 | 13.9k | if constexpr (forward_index) { | 423 | 13.9k | _cur_index += max_fetch; | 424 | 13.9k | } | 425 | | | 426 | 13.9k | return Status::OK(); | 427 | 13.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 22.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 22.6k | DCHECK(_parsed); | 413 | 22.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 22.6k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 22.6k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 22.6k | *n = max_fetch; | 422 | 22.6k | if constexpr (forward_index) { | 423 | 22.6k | _cur_index += max_fetch; | 424 | 22.6k | } | 425 | | | 426 | 22.6k | return Status::OK(); | 427 | 22.6k | } |
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.70k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.70k | DCHECK(_parsed); | 413 | 3.70k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.70k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.70k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.70k | *n = max_fetch; | 422 | 3.70k | if constexpr (forward_index) { | 423 | 3.70k | _cur_index += max_fetch; | 424 | 3.70k | } | 425 | | | 426 | 3.70k | return Status::OK(); | 427 | 3.70k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 441k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 441k | DCHECK(_parsed); | 413 | 441k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 441k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 441k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 441k | *n = max_fetch; | 422 | 441k | if constexpr (forward_index) { | 423 | 441k | _cur_index += max_fetch; | 424 | 441k | } | 425 | | | 426 | 441k | return Status::OK(); | 427 | 441k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 67.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 67.4k | DCHECK(_parsed); | 413 | 67.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 67.4k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 67.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 67.4k | *n = max_fetch; | 422 | 67.4k | if constexpr (forward_index) { | 423 | 67.4k | _cur_index += max_fetch; | 424 | 67.4k | } | 425 | | | 426 | 67.4k | return Status::OK(); | 427 | 67.4k | } |
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.04k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 1.04k | DCHECK(_parsed); | 413 | 1.04k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 1.04k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 1.04k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 1.04k | *n = max_fetch; | 422 | 1.04k | if constexpr (forward_index) { | 423 | 1.04k | _cur_index += max_fetch; | 424 | 1.04k | } | 425 | | | 426 | 1.04k | return Status::OK(); | 427 | 1.04k | } |
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.02k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 7.02k | DCHECK(_parsed); | 413 | 7.02k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 7.02k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 7.02k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 7.02k | *n = max_fetch; | 422 | 7.02k | if constexpr (forward_index) { | 423 | 7.02k | _cur_index += max_fetch; | 424 | 7.02k | } | 425 | | | 426 | 7.02k | return Status::OK(); | 427 | 7.02k | } |
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.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 8.25k | DCHECK(_parsed); | 413 | 8.25k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 8.25k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 8.25k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 8.25k | *n = max_fetch; | 422 | 8.25k | if constexpr (forward_index) { | 423 | 8.25k | _cur_index += max_fetch; | 424 | 8.25k | } | 425 | | | 426 | 8.25k | return Status::OK(); | 427 | 8.25k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 44.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 44.0k | DCHECK(_parsed); | 413 | 44.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 44.0k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 44.0k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 44.0k | *n = max_fetch; | 422 | 44.0k | if constexpr (forward_index) { | 423 | 44.0k | _cur_index += max_fetch; | 424 | 44.0k | } | 425 | | | 426 | 44.0k | return Status::OK(); | 427 | 44.0k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 20.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 20.7k | DCHECK(_parsed); | 413 | 20.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 20.7k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 20.7k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 20.7k | *n = max_fetch; | 422 | 20.7k | if constexpr (forward_index) { | 423 | 20.7k | _cur_index += max_fetch; | 424 | 20.7k | } | 425 | | | 426 | 20.7k | return Status::OK(); | 427 | 20.7k | } |
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.20k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.20k | DCHECK(_parsed); | 413 | 3.20k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.20k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.20k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.20k | *n = max_fetch; | 422 | 3.20k | if constexpr (forward_index) { | 423 | 3.20k | _cur_index += max_fetch; | 424 | 3.20k | } | 425 | | | 426 | 3.20k | return Status::OK(); | 427 | 3.20k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 749 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 749 | DCHECK(_parsed); | 413 | 749 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 749 | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 749 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 749 | *n = max_fetch; | 422 | 749 | if constexpr (forward_index) { | 423 | 749 | _cur_index += max_fetch; | 424 | 749 | } | 425 | | | 426 | 749 | return Status::OK(); | 427 | 749 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 411 | 3.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 412 | 3.25k | DCHECK(_parsed); | 413 | 3.25k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 414 | 0 | *n = 0; | 415 | 0 | return Status::OK(); | 416 | 0 | } | 417 | | | 418 | 3.25k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index)); | 419 | | | 420 | 3.25k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 421 | 3.25k | *n = max_fetch; | 422 | 3.25k | if constexpr (forward_index) { | 423 | 3.25k | _cur_index += max_fetch; | 424 | 3.25k | } | 425 | | | 426 | 3.25k | return Status::OK(); | 427 | 3.25k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
428 | | |
429 | 2.17M | 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 | 399k | 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 | 557k | 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 | 12.9k | 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 | 114k | 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 | 435k | 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 | 15.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 | 13.9k | 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 | 22.6k | 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.70k | 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 | 441k | 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 | 67.4k | 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.04k | 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.02k | 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.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 429 | 44.0k | 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 | 20.7k | 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.20k | 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 | 749 | 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 | 3.25k | 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 | 378k | MutableColumnPtr& dst) override { |
433 | 378k | DCHECK(_parsed); |
434 | 378k | if (*n == 0) [[unlikely]] { |
435 | 0 | *n = 0; |
436 | 0 | return Status::OK(); |
437 | 0 | } |
438 | | |
439 | 378k | auto total = *n; |
440 | 378k | auto read_count = 0; |
441 | 378k | _buffer.resize(total); |
442 | 132M | for (size_t i = 0; i < total; ++i) { |
443 | 131M | ordinal_t ord = rowids[i] - page_first_ordinal; |
444 | 131M | if (UNLIKELY(ord >= _num_elements)) { |
445 | 10.6k | break; |
446 | 10.6k | } |
447 | | |
448 | 131M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
449 | 131M | } |
450 | | |
451 | 379k | if (LIKELY(read_count > 0)) { |
452 | 379k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
453 | 379k | } |
454 | | |
455 | 378k | *n = read_count; |
456 | 378k | return Status::OK(); |
457 | 378k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 77.0k | MutableColumnPtr& dst) override { | 433 | 77.0k | DCHECK(_parsed); | 434 | 77.0k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 77.0k | auto total = *n; | 440 | 77.0k | auto read_count = 0; | 441 | 77.0k | _buffer.resize(total); | 442 | 33.9M | for (size_t i = 0; i < total; ++i) { | 443 | 33.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 33.8M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 505 | break; | 446 | 505 | } | 447 | | | 448 | 33.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 33.8M | } | 450 | | | 451 | 77.0k | if (LIKELY(read_count > 0)) { | 452 | 77.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 77.0k | } | 454 | | | 455 | 77.0k | *n = read_count; | 456 | 77.0k | return Status::OK(); | 457 | 77.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 28.2k | MutableColumnPtr& dst) override { | 433 | 28.2k | DCHECK(_parsed); | 434 | 28.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 28.2k | auto total = *n; | 440 | 28.2k | auto read_count = 0; | 441 | 28.2k | _buffer.resize(total); | 442 | 3.53M | for (size_t i = 0; i < total; ++i) { | 443 | 3.51M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 3.51M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 13 | break; | 446 | 13 | } | 447 | | | 448 | 3.51M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 3.51M | } | 450 | | | 451 | 28.2k | if (LIKELY(read_count > 0)) { | 452 | 28.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 28.2k | } | 454 | | | 455 | 28.2k | *n = read_count; | 456 | 28.2k | return Status::OK(); | 457 | 28.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 6.34k | MutableColumnPtr& dst) override { | 433 | 6.34k | DCHECK(_parsed); | 434 | 6.34k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 6.34k | auto total = *n; | 440 | 6.34k | auto read_count = 0; | 441 | 6.34k | _buffer.resize(total); | 442 | 565k | for (size_t i = 0; i < total; ++i) { | 443 | 558k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 558k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 14 | break; | 446 | 14 | } | 447 | | | 448 | 558k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 558k | } | 450 | | | 451 | 6.34k | if (LIKELY(read_count > 0)) { | 452 | 6.34k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 6.34k | } | 454 | | | 455 | 6.34k | *n = read_count; | 456 | 6.34k | return Status::OK(); | 457 | 6.34k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 78.6k | MutableColumnPtr& dst) override { | 433 | 78.6k | DCHECK(_parsed); | 434 | 78.6k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 78.6k | auto total = *n; | 440 | 78.6k | auto read_count = 0; | 441 | 78.6k | _buffer.resize(total); | 442 | 32.5M | for (size_t i = 0; i < total; ++i) { | 443 | 32.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 32.4M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.91k | break; | 446 | 1.91k | } | 447 | | | 448 | 32.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 32.4M | } | 450 | | | 451 | 78.6k | if (LIKELY(read_count > 0)) { | 452 | 78.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 78.6k | } | 454 | | | 455 | 78.6k | *n = read_count; | 456 | 78.6k | return Status::OK(); | 457 | 78.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 27.9k | MutableColumnPtr& dst) override { | 433 | 27.9k | DCHECK(_parsed); | 434 | 27.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 27.9k | auto total = *n; | 440 | 27.9k | auto read_count = 0; | 441 | 27.9k | _buffer.resize(total); | 442 | 6.23M | for (size_t i = 0; i < total; ++i) { | 443 | 6.20M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 6.20M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 1.10k | break; | 446 | 1.10k | } | 447 | | | 448 | 6.20M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 6.20M | } | 450 | | | 451 | 27.9k | if (LIKELY(read_count > 0)) { | 452 | 27.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 27.9k | } | 454 | | | 455 | 27.9k | *n = read_count; | 456 | 27.9k | return Status::OK(); | 457 | 27.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 | 9.36k | MutableColumnPtr& dst) override { | 433 | 9.36k | DCHECK(_parsed); | 434 | 9.36k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 9.36k | auto total = *n; | 440 | 9.36k | auto read_count = 0; | 441 | 9.36k | _buffer.resize(total); | 442 | 1.76M | for (size_t i = 0; i < total; ++i) { | 443 | 1.75M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.75M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 248 | break; | 446 | 248 | } | 447 | | | 448 | 1.75M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.75M | } | 450 | | | 451 | 9.36k | if (LIKELY(read_count > 0)) { | 452 | 9.36k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 9.36k | } | 454 | | | 455 | 9.36k | *n = read_count; | 456 | 9.36k | return Status::OK(); | 457 | 9.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 10.7k | MutableColumnPtr& dst) override { | 433 | 10.7k | DCHECK(_parsed); | 434 | 10.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 10.7k | auto total = *n; | 440 | 10.7k | auto read_count = 0; | 441 | 10.7k | _buffer.resize(total); | 442 | 1.16M | for (size_t i = 0; i < total; ++i) { | 443 | 1.15M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.15M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 31 | break; | 446 | 31 | } | 447 | | | 448 | 1.15M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.15M | } | 450 | | | 451 | 10.7k | if (LIKELY(read_count > 0)) { | 452 | 10.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 10.7k | } | 454 | | | 455 | 10.7k | *n = read_count; | 456 | 10.7k | return Status::OK(); | 457 | 10.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 14.5k | MutableColumnPtr& dst) override { | 433 | 14.5k | DCHECK(_parsed); | 434 | 14.5k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 14.5k | auto total = *n; | 440 | 14.5k | auto read_count = 0; | 441 | 14.5k | _buffer.resize(total); | 442 | 1.59M | for (size_t i = 0; i < total; ++i) { | 443 | 1.58M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 1.58M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 286 | break; | 446 | 286 | } | 447 | | | 448 | 1.58M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 1.58M | } | 450 | | | 451 | 14.5k | if (LIKELY(read_count > 0)) { | 452 | 14.5k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 14.5k | } | 454 | | | 455 | 14.5k | *n = read_count; | 456 | 14.5k | return Status::OK(); | 457 | 14.5k | } |
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.01k | MutableColumnPtr& dst) override { | 433 | 2.01k | DCHECK(_parsed); | 434 | 2.01k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.01k | auto total = *n; | 440 | 2.01k | auto read_count = 0; | 441 | 2.01k | _buffer.resize(total); | 442 | 455k | for (size_t i = 0; i < total; ++i) { | 443 | 453k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 453k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 12 | break; | 446 | 12 | } | 447 | | | 448 | 452k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 452k | } | 450 | | | 451 | 2.01k | if (LIKELY(read_count > 0)) { | 452 | 2.01k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.01k | } | 454 | | | 455 | 2.01k | *n = read_count; | 456 | 2.01k | return Status::OK(); | 457 | 2.01k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 30.7k | MutableColumnPtr& dst) override { | 433 | 30.7k | DCHECK(_parsed); | 434 | 30.7k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 30.7k | auto total = *n; | 440 | 30.7k | auto read_count = 0; | 441 | 30.7k | _buffer.resize(total); | 442 | 7.26M | for (size_t i = 0; i < total; ++i) { | 443 | 7.23M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.23M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 664 | break; | 446 | 664 | } | 447 | | | 448 | 7.23M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.23M | } | 450 | | | 451 | 30.7k | if (LIKELY(read_count > 0)) { | 452 | 30.7k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 30.7k | } | 454 | | | 455 | 30.7k | *n = read_count; | 456 | 30.7k | return Status::OK(); | 457 | 30.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 31.2k | MutableColumnPtr& dst) override { | 433 | 31.2k | DCHECK(_parsed); | 434 | 31.2k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 31.2k | auto total = *n; | 440 | 31.2k | auto read_count = 0; | 441 | 31.2k | _buffer.resize(total); | 442 | 7.39M | for (size_t i = 0; i < total; ++i) { | 443 | 7.36M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 7.36M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 92 | break; | 446 | 92 | } | 447 | | | 448 | 7.36M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 7.36M | } | 450 | | | 451 | 31.2k | if (LIKELY(read_count > 0)) { | 452 | 31.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 31.2k | } | 454 | | | 455 | 31.2k | *n = read_count; | 456 | 31.2k | return Status::OK(); | 457 | 31.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 2.15k | MutableColumnPtr& dst) override { | 433 | 2.15k | DCHECK(_parsed); | 434 | 2.15k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 2.15k | auto total = *n; | 440 | 2.15k | auto read_count = 0; | 441 | 2.15k | _buffer.resize(total); | 442 | 439k | for (size_t i = 0; i < total; ++i) { | 443 | 437k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 437k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 79 | break; | 446 | 79 | } | 447 | | | 448 | 437k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 437k | } | 450 | | | 451 | 2.15k | if (LIKELY(read_count > 0)) { | 452 | 2.15k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 2.15k | } | 454 | | | 455 | 2.15k | *n = read_count; | 456 | 2.15k | return Status::OK(); | 457 | 2.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 11.9k | MutableColumnPtr& dst) override { | 433 | 11.9k | DCHECK(_parsed); | 434 | 11.9k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 11.9k | auto total = *n; | 440 | 11.9k | auto read_count = 0; | 441 | 11.9k | _buffer.resize(total); | 442 | 25.3k | for (size_t i = 0; i < total; ++i) { | 443 | 13.4k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 13.4k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 13.4k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 13.4k | } | 450 | | | 451 | 11.9k | if (LIKELY(read_count > 0)) { | 452 | 11.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 11.9k | } | 454 | | | 455 | 11.9k | *n = read_count; | 456 | 11.9k | return Status::OK(); | 457 | 11.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 90 | MutableColumnPtr& dst) override { | 433 | 90 | DCHECK(_parsed); | 434 | 90 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 90 | auto total = *n; | 440 | 90 | auto read_count = 0; | 441 | 90 | _buffer.resize(total); | 442 | 188 | for (size_t i = 0; i < total; ++i) { | 443 | 98 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 98 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 98 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 98 | } | 450 | | | 451 | 90 | if (LIKELY(read_count > 0)) { | 452 | 90 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 90 | } | 454 | | | 455 | 90 | *n = read_count; | 456 | 90 | return Status::OK(); | 457 | 90 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 4.64k | MutableColumnPtr& dst) override { | 433 | 4.64k | DCHECK(_parsed); | 434 | 4.64k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 4.64k | auto total = *n; | 440 | 4.64k | auto read_count = 0; | 441 | 4.64k | _buffer.resize(total); | 442 | 19.3k | for (size_t i = 0; i < total; ++i) { | 443 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 14.6k | } | 450 | | | 451 | 4.64k | if (LIKELY(read_count > 0)) { | 452 | 4.64k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 4.64k | } | 454 | | | 455 | 4.64k | *n = read_count; | 456 | 4.64k | return Status::OK(); | 457 | 4.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 25.8k | MutableColumnPtr& dst) override { | 433 | 25.8k | DCHECK(_parsed); | 434 | 25.8k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 25.8k | auto total = *n; | 440 | 25.8k | auto read_count = 0; | 441 | 25.8k | _buffer.resize(total); | 442 | 24.4M | for (size_t i = 0; i < total; ++i) { | 443 | 24.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 24.3M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 5.23k | break; | 446 | 5.23k | } | 447 | | | 448 | 24.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 24.3M | } | 450 | | | 451 | 25.8k | if (LIKELY(read_count > 0)) { | 452 | 25.8k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 25.8k | } | 454 | | | 455 | 25.8k | *n = read_count; | 456 | 25.8k | return Status::OK(); | 457 | 25.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 15.4k | MutableColumnPtr& dst) override { | 433 | 15.4k | DCHECK(_parsed); | 434 | 15.4k | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 15.4k | auto total = *n; | 440 | 15.4k | auto read_count = 0; | 441 | 15.4k | _buffer.resize(total); | 442 | 10.7M | for (size_t i = 0; i < total; ++i) { | 443 | 10.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 10.7M | if (UNLIKELY(ord >= _num_elements)) { | 445 | 424 | break; | 446 | 424 | } | 447 | | | 448 | 10.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 10.7M | } | 450 | | | 451 | 15.4k | if (LIKELY(read_count > 0)) { | 452 | 15.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 15.4k | } | 454 | | | 455 | 15.4k | *n = read_count; | 456 | 15.4k | return Status::OK(); | 457 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 966 | MutableColumnPtr& dst) override { | 433 | 966 | DCHECK(_parsed); | 434 | 966 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 966 | auto total = *n; | 440 | 966 | auto read_count = 0; | 441 | 966 | _buffer.resize(total); | 442 | 2.78k | 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 | 966 | if (LIKELY(read_count > 0)) { | 452 | 966 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 966 | } | 454 | | | 455 | 966 | *n = read_count; | 456 | 966 | return Status::OK(); | 457 | 966 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 472 | MutableColumnPtr& dst) override { | 433 | 472 | DCHECK(_parsed); | 434 | 472 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 472 | auto total = *n; | 440 | 472 | auto read_count = 0; | 441 | 472 | _buffer.resize(total); | 442 | 1.18k | for (size_t i = 0; i < total; ++i) { | 443 | 717 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 717 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 717 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 717 | } | 450 | | | 451 | 473 | if (LIKELY(read_count > 0)) { | 452 | 473 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 473 | } | 454 | | | 455 | 472 | *n = read_count; | 456 | 472 | return Status::OK(); | 457 | 472 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 432 | 414 | MutableColumnPtr& dst) override { | 433 | 414 | DCHECK(_parsed); | 434 | 414 | if (*n == 0) [[unlikely]] { | 435 | 0 | *n = 0; | 436 | 0 | return Status::OK(); | 437 | 0 | } | 438 | | | 439 | 414 | auto total = *n; | 440 | 414 | auto read_count = 0; | 441 | 414 | _buffer.resize(total); | 442 | 1.34k | for (size_t i = 0; i < total; ++i) { | 443 | 929 | ordinal_t ord = rowids[i] - page_first_ordinal; | 444 | 929 | if (UNLIKELY(ord >= _num_elements)) { | 445 | 0 | break; | 446 | 0 | } | 447 | | | 448 | 929 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 449 | 929 | } | 450 | | | 451 | 414 | if (LIKELY(read_count > 0)) { | 452 | 414 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 453 | 414 | } | 454 | | | 455 | 414 | *n = read_count; | 456 | 414 | return Status::OK(); | 457 | 414 | } |
|
458 | | |
459 | 774k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
460 | 774k | return next_batch<false>(n, dst); |
461 | 774k | } 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 | 774k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 460 | 774k | return next_batch<false>(n, dst); | 461 | 774k | } |
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.71M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 465 | 2.39M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 465 | 14.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 465 | 14.6k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 465 | 176k | 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 | 6.40k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 465 | 15.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 465 | 10.6k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 465 | 7.29k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 465 | 28.8k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 465 | 23.9k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 465 | 5.43k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 465 | 1.02k | 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.43k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 465 | 1.36k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 465 | 7.14k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 465 | 308 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 465 | 42 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 465 | 102 | size_t current_index() const override { return _cur_index; } |
|
466 | | |
467 | 136M | char* get_data(size_t index) const { |
468 | 136M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
469 | 136M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 467 | 36.2M | char* get_data(size_t index) const { | 468 | 36.2M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 36.2M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 467 | 4.06M | char* get_data(size_t index) const { | 468 | 4.06M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.06M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 467 | 571k | char* get_data(size_t index) const { | 468 | 571k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 571k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 467 | 32.5M | char* get_data(size_t index) const { | 468 | 32.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 32.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 467 | 7.41M | char* get_data(size_t index) const { | 468 | 7.41M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.41M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 467 | 1.76M | char* get_data(size_t index) const { | 468 | 1.76M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.76M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 467 | 1.16M | char* get_data(size_t index) const { | 468 | 1.16M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.16M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 467 | 1.60M | char* get_data(size_t index) const { | 468 | 1.60M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.60M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 467 | 455k | char* get_data(size_t index) const { | 468 | 455k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 455k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 467 | 7.67M | char* get_data(size_t index) const { | 468 | 7.67M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.67M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 467 | 7.43M | char* get_data(size_t index) const { | 468 | 7.43M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 7.43M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 467 | 438k | char* get_data(size_t index) const { | 468 | 438k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 438k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 467 | 20.4k | char* get_data(size_t index) const { | 468 | 20.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 20.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 467 | 1.32k | char* get_data(size_t index) const { | 468 | 1.32k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.32k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 467 | 22.9k | char* get_data(size_t index) const { | 468 | 22.9k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 22.9k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 467 | 24.4M | char* get_data(size_t index) const { | 468 | 24.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 24.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 467 | 10.7M | char* get_data(size_t index) const { | 468 | 10.7M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 10.7M | } |
_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 | 1.46k | char* get_data(size_t index) const { | 468 | 1.46k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 1.46k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 467 | 4.18k | char* get_data(size_t index) const { | 468 | 4.18k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 469 | 4.18k | } |
|
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 |