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/storage_layout.h" |
42 | | #include "storage/types.h" |
43 | | #include "util/alignment.h" |
44 | | #include "util/coding.h" |
45 | | #include "util/faststring.h" |
46 | | #include "util/slice.h" |
47 | | |
48 | | namespace doris { |
49 | | namespace segment_v2 { |
50 | | |
51 | | static constexpr size_t 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 | 739k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 96 | 349k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 96 | 58.3k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 96 | 9.23k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 96 | 98.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 96 | 11.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 96 | 64.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 96 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 96 | 7.35k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 96 | 8.26k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 96 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 96 | 680 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 96 | 37.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 96 | 44.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 96 | 340 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 96 | 437 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 96 | 7.63k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 96 | 339 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 96 | 9.75k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 96 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 96 | 16.9k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 96 | 1.22k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 96 | 673 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 96 | 670 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 96 | 583 | Status init() override { return reset(); } |
|
97 | | |
98 | 148M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 98 | 147M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 98 | 66.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 98 | 9.27k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 98 | 276k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 98 | 11.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 98 | 64.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 98 | 7.07k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 98 | 11.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 98 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 98 | 767 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 98 | 45.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 98 | 44.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 98 | 335 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 98 | 567 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 98 | 7.68k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 98 | 311 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 98 | 5.27k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 98 | 29.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 98 | 17.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 98 | 1.47k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 98 | 628 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 98 | 651 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 98 | 26.3k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
99 | | |
100 | 1.37M | Status add(const uint8_t* vals, size_t* count) override { |
101 | 1.37M | return add_internal<false>(vals, count); |
102 | 1.37M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 100 | 747k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 747k | return add_internal<false>(vals, count); | 102 | 747k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 100 | 66.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 66.3k | return add_internal<false>(vals, count); | 102 | 66.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 100 | 9.27k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 9.27k | return add_internal<false>(vals, count); | 102 | 9.27k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 100 | 276k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 276k | return add_internal<false>(vals, count); | 102 | 276k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 100 | 11.4k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.4k | return add_internal<false>(vals, count); | 102 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 100 | 64.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 64.1k | return add_internal<false>(vals, count); | 102 | 64.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 100 | 7.07k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.07k | return add_internal<false>(vals, count); | 102 | 7.07k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 100 | 11.8k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 11.8k | return add_internal<false>(vals, count); | 102 | 11.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 100 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 194 | return add_internal<false>(vals, count); | 102 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 100 | 769 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 769 | return add_internal<false>(vals, count); | 102 | 769 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 100 | 45.5k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 45.5k | return add_internal<false>(vals, count); | 102 | 45.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 100 | 44.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 44.1k | return add_internal<false>(vals, count); | 102 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 100 | 335 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 335 | return add_internal<false>(vals, count); | 102 | 335 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 100 | 567 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 567 | return add_internal<false>(vals, count); | 102 | 567 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 100 | 7.68k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 7.68k | return add_internal<false>(vals, count); | 102 | 7.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 100 | 312 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 312 | return add_internal<false>(vals, count); | 102 | 312 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 100 | 5.27k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 5.27k | return add_internal<false>(vals, count); | 102 | 5.27k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 100 | 29.3k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 29.3k | return add_internal<false>(vals, count); | 102 | 29.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 100 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 17.9k | return add_internal<false>(vals, count); | 102 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 100 | 1.47k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 1.47k | return add_internal<false>(vals, count); | 102 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 100 | 628 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 628 | return add_internal<false>(vals, count); | 102 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 100 | 651 | Status add(const uint8_t* vals, size_t* count) override { | 101 | 651 | return add_internal<false>(vals, count); | 102 | 651 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 100 | 26.1k | Status add(const uint8_t* vals, size_t* count) override { | 101 | 26.1k | return add_internal<false>(vals, count); | 102 | 26.1k | } |
|
103 | | |
104 | 149M | Status single_add(const uint8_t* vals, size_t* count) { |
105 | 149M | return add_internal<true>(vals, count); |
106 | 149M | } |
107 | | |
108 | | template <bool single> |
109 | 148M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
110 | 148M | DCHECK(!_finished); |
111 | 148M | 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 | 148M | uint32_t to_add = cast_set<UInt32>( |
127 | 148M | 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 | 148M | int to_add_size = to_add * SIZE_OF_TYPE; |
130 | 148M | 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 | 148M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
134 | 150M | _count += to_add; |
135 | 150M | _remain_element_capacity -= to_add; |
136 | 150M | _raw_data_size += to_add_size; |
137 | | // return added number through count |
138 | 150M | *num_written = to_add; |
139 | 150M | if constexpr (single) { |
140 | | if constexpr (SIZE_OF_TYPE == 1) { |
141 | | _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 | 149M | } else if constexpr (SIZE_OF_TYPE == 4) { |
148 | 149M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
149 | 149M | *reinterpret_cast<const uint32_t*>(vals); |
150 | 149M | 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 | 149M | } |
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 | 150M | return Status::OK(); |
160 | 148M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 747k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 747k | DCHECK(!_finished); | 111 | 747k | 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 | 747k | uint32_t to_add = cast_set<UInt32>( | 127 | 747k | 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 | 747k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 747k | 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 | 747k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 747k | _count += to_add; | 135 | 747k | _remain_element_capacity -= to_add; | 136 | 747k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 747k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 747k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 747k | return Status::OK(); | 160 | 747k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 109 | 146M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 146M | DCHECK(!_finished); | 111 | 146M | 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 | 146M | uint32_t to_add = cast_set<UInt32>( | 127 | 146M | 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 | 146M | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 146M | 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 | 146M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 149M | _count += to_add; | 135 | 149M | _remain_element_capacity -= to_add; | 136 | 149M | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 149M | *num_written = to_add; | 139 | 149M | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 149M | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | 149M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | 149M | *reinterpret_cast<const uint32_t*>(vals); | 150 | 149M | 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 | 149M | } | 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 | 149M | return Status::OK(); | 160 | 146M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 66.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 66.3k | DCHECK(!_finished); | 111 | 66.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 66.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 66.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 66.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 66.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 66.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 66.3k | _count += to_add; | 135 | 66.3k | _remain_element_capacity -= to_add; | 136 | 66.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 66.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 66.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 66.3k | return Status::OK(); | 160 | 66.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 9.27k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 9.27k | DCHECK(!_finished); | 111 | 9.27k | 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 | 9.27k | uint32_t to_add = cast_set<UInt32>( | 127 | 9.27k | 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 | 9.27k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 9.27k | 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 | 9.27k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 9.27k | _count += to_add; | 135 | 9.27k | _remain_element_capacity -= to_add; | 136 | 9.27k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 9.27k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 9.27k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 9.27k | return Status::OK(); | 160 | 9.27k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 276k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 276k | DCHECK(!_finished); | 111 | 276k | 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 | 276k | uint32_t to_add = cast_set<UInt32>( | 127 | 276k | 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 | 276k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 276k | 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 | 276k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 276k | _count += to_add; | 135 | 276k | _remain_element_capacity -= to_add; | 136 | 276k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 276k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 276k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 276k | return Status::OK(); | 160 | 276k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.4k | DCHECK(!_finished); | 111 | 11.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 | 11.4k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.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 | 11.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.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 | 11.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.4k | _count += to_add; | 135 | 11.4k | _remain_element_capacity -= to_add; | 136 | 11.4k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.4k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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.4k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.4k | return Status::OK(); | 160 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 64.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 64.1k | DCHECK(!_finished); | 111 | 64.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 64.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 64.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 64.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 64.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 64.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 64.1k | _count += to_add; | 135 | 64.1k | _remain_element_capacity -= to_add; | 136 | 64.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 64.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 64.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 64.1k | return Status::OK(); | 160 | 64.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.07k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.07k | DCHECK(!_finished); | 111 | 7.07k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.07k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.07k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.07k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.07k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.07k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.07k | _count += to_add; | 135 | 7.07k | _remain_element_capacity -= to_add; | 136 | 7.07k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.07k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.07k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.07k | return Status::OK(); | 160 | 7.07k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 11.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 11.8k | DCHECK(!_finished); | 111 | 11.8k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 11.8k | uint32_t to_add = cast_set<UInt32>( | 127 | 11.8k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 11.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 11.8k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 11.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 11.8k | _count += to_add; | 135 | 11.8k | _remain_element_capacity -= to_add; | 136 | 11.8k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 11.8k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 11.8k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 11.8k | return Status::OK(); | 160 | 11.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 194 | DCHECK(!_finished); | 111 | 194 | 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 | 194 | uint32_t to_add = cast_set<UInt32>( | 127 | 194 | 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 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 194 | 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 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 194 | _count += to_add; | 135 | 194 | _remain_element_capacity -= to_add; | 136 | 194 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 194 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 194 | return Status::OK(); | 160 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 769 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 769 | DCHECK(!_finished); | 111 | 769 | 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 | 769 | uint32_t to_add = cast_set<UInt32>( | 127 | 769 | 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 | 769 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 769 | 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 | 769 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 769 | _count += to_add; | 135 | 769 | _remain_element_capacity -= to_add; | 136 | 769 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 769 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 769 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 769 | return Status::OK(); | 160 | 769 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 45.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 45.5k | DCHECK(!_finished); | 111 | 45.5k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 45.5k | uint32_t to_add = cast_set<UInt32>( | 127 | 45.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 45.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 45.5k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 45.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 45.5k | _count += to_add; | 135 | 45.5k | _remain_element_capacity -= to_add; | 136 | 45.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 45.5k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 45.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 45.5k | return Status::OK(); | 160 | 45.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 44.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 44.1k | DCHECK(!_finished); | 111 | 44.1k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 44.1k | uint32_t to_add = cast_set<UInt32>( | 127 | 44.1k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 44.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 44.1k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 44.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 44.1k | _count += to_add; | 135 | 44.1k | _remain_element_capacity -= to_add; | 136 | 44.1k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 44.1k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 44.1k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 44.1k | return Status::OK(); | 160 | 44.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 335 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 335 | DCHECK(!_finished); | 111 | 335 | 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 | 335 | uint32_t to_add = cast_set<UInt32>( | 127 | 335 | 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 | 335 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 335 | 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 | 335 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 335 | _count += to_add; | 135 | 335 | _remain_element_capacity -= to_add; | 136 | 335 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 335 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 335 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 335 | return Status::OK(); | 160 | 335 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 567 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 567 | DCHECK(!_finished); | 111 | 567 | 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 | 567 | uint32_t to_add = cast_set<UInt32>( | 127 | 567 | 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 | 567 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 567 | 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 | 567 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 567 | _count += to_add; | 135 | 567 | _remain_element_capacity -= to_add; | 136 | 567 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 567 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 567 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 567 | return Status::OK(); | 160 | 567 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 7.68k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 7.68k | DCHECK(!_finished); | 111 | 7.68k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 7.68k | uint32_t to_add = cast_set<UInt32>( | 127 | 7.68k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 7.68k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 7.68k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 7.68k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 7.68k | _count += to_add; | 135 | 7.68k | _remain_element_capacity -= to_add; | 136 | 7.68k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 7.68k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 7.68k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 7.68k | return Status::OK(); | 160 | 7.68k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 312 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 312 | DCHECK(!_finished); | 111 | 312 | 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 | 312 | uint32_t to_add = cast_set<UInt32>( | 127 | 312 | 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 | 312 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 312 | 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 | 312 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 312 | _count += to_add; | 135 | 312 | _remain_element_capacity -= to_add; | 136 | 312 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 312 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 312 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 312 | return Status::OK(); | 160 | 312 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 5.27k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 5.27k | DCHECK(!_finished); | 111 | 5.27k | 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.27k | uint32_t to_add = cast_set<UInt32>( | 127 | 5.27k | 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.27k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 5.27k | 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.27k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 5.27k | _count += to_add; | 135 | 5.27k | _remain_element_capacity -= to_add; | 136 | 5.27k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 5.27k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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.27k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 5.27k | return Status::OK(); | 160 | 5.27k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 29.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 29.3k | DCHECK(!_finished); | 111 | 29.3k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 29.3k | uint32_t to_add = cast_set<UInt32>( | 127 | 29.3k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 29.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 29.3k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 29.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 29.3k | _count += to_add; | 135 | 29.3k | _remain_element_capacity -= to_add; | 136 | 29.3k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 29.3k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 29.3k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 29.3k | return Status::OK(); | 160 | 29.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 17.9k | DCHECK(!_finished); | 111 | 17.9k | if (_remain_element_capacity == 0) { | 112 | 0 | *num_written = 0; | 113 | 0 | return Status::OK(); | 114 | 0 | } | 115 | | | 116 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 117 | | // the row count of a single men tbl could be very large. | 118 | | // a real log: | 119 | | /* | 120 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 121 | | */ | 122 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 123 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 124 | | // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario). | 125 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 126 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 127 | 17.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 128 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 129 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 17.9k | size_t orig_size = _data.size(); | 131 | | // This may need a large memory, should return error if could not allocated | 132 | | // successfully, to avoid BE OOM. | 133 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 17.9k | _count += to_add; | 135 | 17.9k | _remain_element_capacity -= to_add; | 136 | 17.9k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 17.9k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _data[orig_size] = *vals; | 142 | | return Status::OK(); | 143 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 144 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 145 | | *reinterpret_cast<const uint16_t*>(vals); | 146 | | return Status::OK(); | 147 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 148 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 149 | | *reinterpret_cast<const uint32_t*>(vals); | 150 | | return Status::OK(); | 151 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 152 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 153 | | *reinterpret_cast<const uint64_t*>(vals); | 154 | | return Status::OK(); | 155 | | } | 156 | | } | 157 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 158 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 17.9k | return Status::OK(); | 160 | 17.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 1.47k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 1.47k | DCHECK(!_finished); | 111 | 1.47k | 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.47k | uint32_t to_add = cast_set<UInt32>( | 127 | 1.47k | 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.47k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 1.47k | 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.47k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 1.47k | _count += to_add; | 135 | 1.47k | _remain_element_capacity -= to_add; | 136 | 1.47k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 1.47k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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.47k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 1.47k | return Status::OK(); | 160 | 1.47k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 628 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 628 | DCHECK(!_finished); | 111 | 628 | 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 | 628 | uint32_t to_add = cast_set<UInt32>( | 127 | 628 | 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 | 628 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 628 | 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 | 628 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 628 | _count += to_add; | 135 | 628 | _remain_element_capacity -= to_add; | 136 | 628 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 628 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 628 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 628 | return Status::OK(); | 160 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 651 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 651 | DCHECK(!_finished); | 111 | 651 | 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 | 651 | uint32_t to_add = cast_set<UInt32>( | 127 | 651 | 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 | 651 | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 651 | 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 | 651 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 651 | _count += to_add; | 135 | 651 | _remain_element_capacity -= to_add; | 136 | 651 | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 651 | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 651 | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 651 | return Status::OK(); | 160 | 651 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 109 | 26.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 110 | 26.2k | DCHECK(!_finished); | 111 | 26.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 | 26.2k | uint32_t to_add = cast_set<UInt32>( | 127 | 26.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 | 26.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 130 | 26.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 | 26.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 134 | 26.5k | _count += to_add; | 135 | 26.5k | _remain_element_capacity -= to_add; | 136 | 26.5k | _raw_data_size += to_add_size; | 137 | | // return added number through count | 138 | 26.5k | *num_written = to_add; | 139 | | if constexpr (single) { | 140 | | if constexpr (SIZE_OF_TYPE == 1) { | 141 | | _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 | 26.5k | memcpy(&_data[orig_size], vals, to_add_size); | 159 | 26.5k | return Status::OK(); | 160 | 26.2k | } |
|
161 | | |
162 | 741k | Status finish(OwnedSlice* slice) override { |
163 | 741k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
164 | 741k | return Status::OK(); |
165 | 741k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 342k | Status finish(OwnedSlice* slice) override { | 163 | 342k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 342k | return Status::OK(); | 165 | 342k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 56.8k | Status finish(OwnedSlice* slice) override { | 163 | 56.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 56.8k | return Status::OK(); | 165 | 56.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.38k | Status finish(OwnedSlice* slice) override { | 163 | 8.38k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8.38k | return Status::OK(); | 165 | 8.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 102k | Status finish(OwnedSlice* slice) override { | 163 | 102k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 102k | return Status::OK(); | 165 | 102k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 11.4k | Status finish(OwnedSlice* slice) override { | 163 | 11.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 11.4k | return Status::OK(); | 165 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 63.8k | Status finish(OwnedSlice* slice) override { | 163 | 63.8k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 63.8k | return Status::OK(); | 165 | 63.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6.56k | Status finish(OwnedSlice* slice) override { | 163 | 6.56k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6.56k | return Status::OK(); | 165 | 6.56k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 8.96k | Status finish(OwnedSlice* slice) override { | 163 | 8.96k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 8.96k | return Status::OK(); | 165 | 8.96k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 6 | Status finish(OwnedSlice* slice) override { | 163 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 6 | return Status::OK(); | 165 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 711 | Status finish(OwnedSlice* slice) override { | 163 | 711 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 711 | return Status::OK(); | 165 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 37.9k | Status finish(OwnedSlice* slice) override { | 163 | 37.9k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 37.9k | return Status::OK(); | 165 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 43.2k | Status finish(OwnedSlice* slice) override { | 163 | 43.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 43.2k | return Status::OK(); | 165 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 277 | Status finish(OwnedSlice* slice) override { | 163 | 277 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 277 | return Status::OK(); | 165 | 277 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 604 | Status finish(OwnedSlice* slice) override { | 163 | 604 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 604 | return Status::OK(); | 165 | 604 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 7.72k | Status finish(OwnedSlice* slice) override { | 163 | 7.72k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 7.73k | return Status::OK(); | 165 | 7.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 261 | Status finish(OwnedSlice* slice) override { | 163 | 261 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 261 | return Status::OK(); | 165 | 261 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 9.75k | Status finish(OwnedSlice* slice) override { | 163 | 9.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 9.75k | return Status::OK(); | 165 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 19.4k | Status finish(OwnedSlice* slice) override { | 163 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 19.4k | return Status::OK(); | 165 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 17.1k | Status finish(OwnedSlice* slice) override { | 163 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 17.1k | return Status::OK(); | 165 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 1.15k | Status finish(OwnedSlice* slice) override { | 163 | 1.15k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 1.15k | return Status::OK(); | 165 | 1.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 582 | Status finish(OwnedSlice* slice) override { | 163 | 582 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 582 | return Status::OK(); | 165 | 582 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 589 | Status finish(OwnedSlice* slice) override { | 163 | 589 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 589 | return Status::OK(); | 165 | 589 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 162 | 691 | Status finish(OwnedSlice* slice) override { | 163 | 691 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 164 | 691 | return Status::OK(); | 165 | 691 | } |
|
166 | | |
167 | 1.76M | Status reset() override { |
168 | 1.76M | RETURN_IF_CATCH_EXCEPTION({ |
169 | 1.76M | size_t block_size = _options.data_page_size; |
170 | 1.76M | _count = 0; |
171 | 1.76M | _raw_data_size = 0; |
172 | 1.76M | _data.clear(); |
173 | 1.76M | _data.reserve(block_size); |
174 | 1.76M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
175 | 1.76M | << "buffer must be naturally-aligned"; |
176 | 1.76M | _buffer.clear(); |
177 | 1.76M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
178 | 1.76M | _finished = false; |
179 | 1.76M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
180 | 1.76M | }); |
181 | 1.76M | return Status::OK(); |
182 | 1.76M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 167 | 971k | Status reset() override { | 168 | 971k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 971k | size_t block_size = _options.data_page_size; | 170 | 971k | _count = 0; | 171 | 971k | _raw_data_size = 0; | 172 | 971k | _data.clear(); | 173 | 971k | _data.reserve(block_size); | 174 | 971k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 971k | << "buffer must be naturally-aligned"; | 176 | 971k | _buffer.clear(); | 177 | 971k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 971k | _finished = false; | 179 | 971k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 971k | }); | 181 | 973k | return Status::OK(); | 182 | 971k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 167 | 115k | Status reset() override { | 168 | 115k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 115k | size_t block_size = _options.data_page_size; | 170 | 115k | _count = 0; | 171 | 115k | _raw_data_size = 0; | 172 | 115k | _data.clear(); | 173 | 115k | _data.reserve(block_size); | 174 | 115k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 115k | << "buffer must be naturally-aligned"; | 176 | 115k | _buffer.clear(); | 177 | 115k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 115k | _finished = false; | 179 | 115k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 115k | }); | 181 | 115k | return Status::OK(); | 182 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 167 | 17.6k | Status reset() override { | 168 | 17.6k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 17.6k | size_t block_size = _options.data_page_size; | 170 | 17.6k | _count = 0; | 171 | 17.6k | _raw_data_size = 0; | 172 | 17.6k | _data.clear(); | 173 | 17.6k | _data.reserve(block_size); | 174 | 17.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 17.6k | << "buffer must be naturally-aligned"; | 176 | 17.6k | _buffer.clear(); | 177 | 17.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 17.6k | _finished = false; | 179 | 17.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 17.6k | }); | 181 | 17.6k | return Status::OK(); | 182 | 17.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 167 | 201k | Status reset() override { | 168 | 201k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 201k | size_t block_size = _options.data_page_size; | 170 | 201k | _count = 0; | 171 | 201k | _raw_data_size = 0; | 172 | 201k | _data.clear(); | 173 | 201k | _data.reserve(block_size); | 174 | 201k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 201k | << "buffer must be naturally-aligned"; | 176 | 201k | _buffer.clear(); | 177 | 201k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 201k | _finished = false; | 179 | 201k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 201k | }); | 181 | 201k | return Status::OK(); | 182 | 201k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 167 | 23.3k | Status reset() override { | 168 | 23.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 23.3k | size_t block_size = _options.data_page_size; | 170 | 23.3k | _count = 0; | 171 | 23.3k | _raw_data_size = 0; | 172 | 23.3k | _data.clear(); | 173 | 23.3k | _data.reserve(block_size); | 174 | 23.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 23.3k | << "buffer must be naturally-aligned"; | 176 | 23.3k | _buffer.clear(); | 177 | 23.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 23.3k | _finished = false; | 179 | 23.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 23.3k | }); | 181 | 23.3k | return Status::OK(); | 182 | 23.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 167 | 127k | Status reset() override { | 168 | 127k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 127k | size_t block_size = _options.data_page_size; | 170 | 127k | _count = 0; | 171 | 127k | _raw_data_size = 0; | 172 | 127k | _data.clear(); | 173 | 127k | _data.reserve(block_size); | 174 | 127k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 127k | << "buffer must be naturally-aligned"; | 176 | 127k | _buffer.clear(); | 177 | 127k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 127k | _finished = false; | 179 | 127k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 127k | }); | 181 | 128k | return Status::OK(); | 182 | 127k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 167 | 1 | Status reset() override { | 168 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1 | size_t block_size = _options.data_page_size; | 170 | 1 | _count = 0; | 171 | 1 | _raw_data_size = 0; | 172 | 1 | _data.clear(); | 173 | 1 | _data.reserve(block_size); | 174 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1 | << "buffer must be naturally-aligned"; | 176 | 1 | _buffer.clear(); | 177 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1 | _finished = false; | 179 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1 | }); | 181 | 1 | return Status::OK(); | 182 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 167 | 13.9k | Status reset() override { | 168 | 13.9k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 13.9k | size_t block_size = _options.data_page_size; | 170 | 13.9k | _count = 0; | 171 | 13.9k | _raw_data_size = 0; | 172 | 13.9k | _data.clear(); | 173 | 13.9k | _data.reserve(block_size); | 174 | 13.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 13.9k | << "buffer must be naturally-aligned"; | 176 | 13.9k | _buffer.clear(); | 177 | 13.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 13.9k | _finished = false; | 179 | 13.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 13.9k | }); | 181 | 13.9k | return Status::OK(); | 182 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 167 | 17.2k | Status reset() override { | 168 | 17.2k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 17.2k | size_t block_size = _options.data_page_size; | 170 | 17.2k | _count = 0; | 171 | 17.2k | _raw_data_size = 0; | 172 | 17.2k | _data.clear(); | 173 | 17.2k | _data.reserve(block_size); | 174 | 17.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 17.2k | << "buffer must be naturally-aligned"; | 176 | 17.2k | _buffer.clear(); | 177 | 17.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 17.2k | _finished = false; | 179 | 17.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 17.2k | }); | 181 | 17.2k | return Status::OK(); | 182 | 17.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 167 | 8 | Status reset() override { | 168 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 8 | size_t block_size = _options.data_page_size; | 170 | 8 | _count = 0; | 171 | 8 | _raw_data_size = 0; | 172 | 8 | _data.clear(); | 173 | 8 | _data.reserve(block_size); | 174 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 8 | << "buffer must be naturally-aligned"; | 176 | 8 | _buffer.clear(); | 177 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 8 | _finished = false; | 179 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 8 | }); | 181 | 8 | return Status::OK(); | 182 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 167 | 1.38k | Status reset() override { | 168 | 1.38k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.38k | size_t block_size = _options.data_page_size; | 170 | 1.38k | _count = 0; | 171 | 1.38k | _raw_data_size = 0; | 172 | 1.38k | _data.clear(); | 173 | 1.38k | _data.reserve(block_size); | 174 | 1.38k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.38k | << "buffer must be naturally-aligned"; | 176 | 1.38k | _buffer.clear(); | 177 | 1.38k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.38k | _finished = false; | 179 | 1.38k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.38k | }); | 181 | 1.38k | return Status::OK(); | 182 | 1.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 167 | 75.0k | Status reset() override { | 168 | 75.0k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 75.0k | size_t block_size = _options.data_page_size; | 170 | 75.0k | _count = 0; | 171 | 75.0k | _raw_data_size = 0; | 172 | 75.0k | _data.clear(); | 173 | 75.0k | _data.reserve(block_size); | 174 | 75.0k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 75.0k | << "buffer must be naturally-aligned"; | 176 | 75.0k | _buffer.clear(); | 177 | 75.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 75.0k | _finished = false; | 179 | 75.0k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 75.0k | }); | 181 | 75.1k | return Status::OK(); | 182 | 75.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 167 | 87.4k | Status reset() override { | 168 | 87.4k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 87.4k | size_t block_size = _options.data_page_size; | 170 | 87.4k | _count = 0; | 171 | 87.4k | _raw_data_size = 0; | 172 | 87.4k | _data.clear(); | 173 | 87.4k | _data.reserve(block_size); | 174 | 87.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 87.4k | << "buffer must be naturally-aligned"; | 176 | 87.4k | _buffer.clear(); | 177 | 87.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 87.4k | _finished = false; | 179 | 87.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 87.4k | }); | 181 | 87.5k | return Status::OK(); | 182 | 87.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 167 | 617 | Status reset() override { | 168 | 617 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 617 | size_t block_size = _options.data_page_size; | 170 | 617 | _count = 0; | 171 | 617 | _raw_data_size = 0; | 172 | 617 | _data.clear(); | 173 | 617 | _data.reserve(block_size); | 174 | 617 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 617 | << "buffer must be naturally-aligned"; | 176 | 617 | _buffer.clear(); | 177 | 617 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 617 | _finished = false; | 179 | 617 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 617 | }); | 181 | 618 | return Status::OK(); | 182 | 617 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 167 | 1.04k | Status reset() override { | 168 | 1.04k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.04k | size_t block_size = _options.data_page_size; | 170 | 1.04k | _count = 0; | 171 | 1.04k | _raw_data_size = 0; | 172 | 1.04k | _data.clear(); | 173 | 1.04k | _data.reserve(block_size); | 174 | 1.04k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.04k | << "buffer must be naturally-aligned"; | 176 | 1.04k | _buffer.clear(); | 177 | 1.04k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.04k | _finished = false; | 179 | 1.04k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.04k | }); | 181 | 1.04k | return Status::OK(); | 182 | 1.04k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 167 | 15.3k | Status reset() override { | 168 | 15.3k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 15.3k | size_t block_size = _options.data_page_size; | 170 | 15.3k | _count = 0; | 171 | 15.3k | _raw_data_size = 0; | 172 | 15.3k | _data.clear(); | 173 | 15.3k | _data.reserve(block_size); | 174 | 15.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 15.3k | << "buffer must be naturally-aligned"; | 176 | 15.3k | _buffer.clear(); | 177 | 15.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 15.3k | _finished = false; | 179 | 15.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 15.3k | }); | 181 | 15.4k | return Status::OK(); | 182 | 15.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 167 | 599 | Status reset() override { | 168 | 599 | RETURN_IF_CATCH_EXCEPTION({ | 169 | 599 | size_t block_size = _options.data_page_size; | 170 | 599 | _count = 0; | 171 | 599 | _raw_data_size = 0; | 172 | 599 | _data.clear(); | 173 | 599 | _data.reserve(block_size); | 174 | 599 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 599 | << "buffer must be naturally-aligned"; | 176 | 599 | _buffer.clear(); | 177 | 599 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 599 | _finished = false; | 179 | 599 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 599 | }); | 181 | 599 | return Status::OK(); | 182 | 599 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 167 | 19.4k | Status reset() override { | 168 | 19.4k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 19.4k | size_t block_size = _options.data_page_size; | 170 | 19.4k | _count = 0; | 171 | 19.4k | _raw_data_size = 0; | 172 | 19.4k | _data.clear(); | 173 | 19.4k | _data.reserve(block_size); | 174 | 19.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 19.4k | << "buffer must be naturally-aligned"; | 176 | 19.4k | _buffer.clear(); | 177 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 19.4k | _finished = false; | 179 | 19.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 19.4k | }); | 181 | 19.5k | return Status::OK(); | 182 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 167 | 31.5k | Status reset() override { | 168 | 31.5k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 31.5k | size_t block_size = _options.data_page_size; | 170 | 31.5k | _count = 0; | 171 | 31.5k | _raw_data_size = 0; | 172 | 31.5k | _data.clear(); | 173 | 31.5k | _data.reserve(block_size); | 174 | 31.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 31.5k | << "buffer must be naturally-aligned"; | 176 | 31.5k | _buffer.clear(); | 177 | 31.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 31.5k | _finished = false; | 179 | 31.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 31.5k | }); | 181 | 31.5k | return Status::OK(); | 182 | 31.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 167 | 34.1k | Status reset() override { | 168 | 34.1k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 34.1k | size_t block_size = _options.data_page_size; | 170 | 34.1k | _count = 0; | 171 | 34.1k | _raw_data_size = 0; | 172 | 34.1k | _data.clear(); | 173 | 34.1k | _data.reserve(block_size); | 174 | 34.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 34.1k | << "buffer must be naturally-aligned"; | 176 | 34.1k | _buffer.clear(); | 177 | 34.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 34.1k | _finished = false; | 179 | 34.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 34.1k | }); | 181 | 34.1k | return Status::OK(); | 182 | 34.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 167 | 2.37k | Status reset() override { | 168 | 2.37k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 2.37k | size_t block_size = _options.data_page_size; | 170 | 2.37k | _count = 0; | 171 | 2.37k | _raw_data_size = 0; | 172 | 2.37k | _data.clear(); | 173 | 2.37k | _data.reserve(block_size); | 174 | 2.37k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 2.37k | << "buffer must be naturally-aligned"; | 176 | 2.37k | _buffer.clear(); | 177 | 2.37k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 2.37k | _finished = false; | 179 | 2.37k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 2.37k | }); | 181 | 2.38k | return Status::OK(); | 182 | 2.37k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 167 | 1.25k | Status reset() override { | 168 | 1.25k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.25k | size_t block_size = _options.data_page_size; | 170 | 1.25k | _count = 0; | 171 | 1.25k | _raw_data_size = 0; | 172 | 1.25k | _data.clear(); | 173 | 1.25k | _data.reserve(block_size); | 174 | 1.25k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.25k | << "buffer must be naturally-aligned"; | 176 | 1.25k | _buffer.clear(); | 177 | 1.25k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.25k | _finished = false; | 179 | 1.25k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.25k | }); | 181 | 1.25k | return Status::OK(); | 182 | 1.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 167 | 1.25k | Status reset() override { | 168 | 1.25k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.25k | size_t block_size = _options.data_page_size; | 170 | 1.25k | _count = 0; | 171 | 1.25k | _raw_data_size = 0; | 172 | 1.25k | _data.clear(); | 173 | 1.25k | _data.reserve(block_size); | 174 | 1.25k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.25k | << "buffer must be naturally-aligned"; | 176 | 1.25k | _buffer.clear(); | 177 | 1.25k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.25k | _finished = false; | 179 | 1.25k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.25k | }); | 181 | 1.26k | return Status::OK(); | 182 | 1.25k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 167 | 1.27k | Status reset() override { | 168 | 1.27k | RETURN_IF_CATCH_EXCEPTION({ | 169 | 1.27k | size_t block_size = _options.data_page_size; | 170 | 1.27k | _count = 0; | 171 | 1.27k | _raw_data_size = 0; | 172 | 1.27k | _data.clear(); | 173 | 1.27k | _data.reserve(block_size); | 174 | 1.27k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 175 | 1.27k | << "buffer must be naturally-aligned"; | 176 | 1.27k | _buffer.clear(); | 177 | 1.27k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 178 | 1.27k | _finished = false; | 179 | 1.27k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 180 | 1.27k | }); | 181 | 1.27k | return Status::OK(); | 182 | 1.27k | } |
|
183 | | |
184 | 667 | size_t count() const override { return _count; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 184 | 8 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Line | Count | Source | 184 | 628 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Line | Count | Source | 184 | 10 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Line | Count | Source | 184 | 6 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Line | Count | Source | 184 | 5 | size_t count() const override { return _count; } |
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 Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5countEv |
185 | | |
186 | 39.7k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 186 | 21.1k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 186 | 3.45k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 186 | 1.02k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 186 | 3.70k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 186 | 1.40k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 186 | 910 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 186 | 674 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 186 | 670 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 186 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 186 | 1.66k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 186 | 2.33k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 186 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 186 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 186 | 126 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 186 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 186 | 264 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 186 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 186 | 1.22k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 186 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 186 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 186 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv Line | Count | Source | 186 | 12 | uint64_t size() const override { return _buffer.size(); } |
|
187 | | |
188 | 468k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 188 | 70.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 188 | 56.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8.38k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 188 | 102k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 188 | 11.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 188 | 63.8k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6.55k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 188 | 8.33k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 188 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 188 | 700 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 188 | 37.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 188 | 43.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 188 | 277 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 188 | 599 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 188 | 7.73k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 188 | 256 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 188 | 9.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 188 | 19.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 188 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 188 | 1.15k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 188 | 582 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 188 | 589 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 188 | 691 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
189 | | |
190 | | private: |
191 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
192 | 737k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 347k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 58.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.23k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 98.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 11.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 63.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.35k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 8.25k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 680 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 37.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 44.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 340 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 437 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 7.58k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 339 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 9.74k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 12.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 1.21k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 672 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 668 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 192 | 584 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
193 | | |
194 | 741k | OwnedSlice _finish(int final_size_of_type) { |
195 | 741k | _data.resize(final_size_of_type * _count); |
196 | | |
197 | | // Do padding so that the input num of element is multiple of 8. |
198 | 741k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
199 | 741k | int padding_elems = num_elems_after_padding - _count; |
200 | 741k | int padding_bytes = padding_elems * final_size_of_type; |
201 | 21.1M | for (int i = 0; i < padding_bytes; i++) { |
202 | 20.4M | _data.push_back(0); |
203 | 20.4M | } |
204 | | |
205 | | // reserve enough place for compression |
206 | 741k | _buffer.resize( |
207 | 741k | BITSHUFFLE_PAGE_HEADER_SIZE + |
208 | 741k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
209 | | |
210 | 741k | int64_t bytes = |
211 | 741k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
212 | 741k | num_elems_after_padding, final_size_of_type, 0); |
213 | 741k | if (bytes < 0) [[unlikely]] { |
214 | | // This means the bitshuffle function fails. |
215 | | // Ideally, this should not happen. |
216 | 0 | warn_with_bitshuffle_error(bytes); |
217 | | // It does not matter what will be returned here, |
218 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
219 | 0 | return OwnedSlice(); |
220 | 0 | } |
221 | | // update header |
222 | 741k | encode_fixed32_le(&_buffer[0], _count); |
223 | 741k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
224 | 741k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
225 | 741k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
226 | 741k | _finished = true; |
227 | | // before build(), update buffer length to the actual compressed size |
228 | 741k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
229 | 741k | return _buffer.build(); |
230 | 741k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 194 | 342k | OwnedSlice _finish(int final_size_of_type) { | 195 | 342k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 342k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 342k | int padding_elems = num_elems_after_padding - _count; | 200 | 342k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 6.61M | for (int i = 0; i < padding_bytes; i++) { | 202 | 6.27M | _data.push_back(0); | 203 | 6.27M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 342k | _buffer.resize( | 207 | 342k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 342k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 342k | int64_t bytes = | 211 | 342k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 342k | num_elems_after_padding, final_size_of_type, 0); | 213 | 342k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 342k | encode_fixed32_le(&_buffer[0], _count); | 223 | 342k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 342k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 342k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 342k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 342k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 342k | return _buffer.build(); | 230 | 342k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 194 | 56.8k | OwnedSlice _finish(int final_size_of_type) { | 195 | 56.8k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 56.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 56.8k | int padding_elems = num_elems_after_padding - _count; | 200 | 56.8k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 377k | for (int i = 0; i < padding_bytes; i++) { | 202 | 320k | _data.push_back(0); | 203 | 320k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 56.8k | _buffer.resize( | 207 | 56.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 56.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 56.8k | int64_t bytes = | 211 | 56.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 56.8k | num_elems_after_padding, final_size_of_type, 0); | 213 | 56.8k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 56.8k | encode_fixed32_le(&_buffer[0], _count); | 223 | 56.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 56.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 56.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 56.8k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 56.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 56.8k | return _buffer.build(); | 230 | 56.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 194 | 8.38k | OwnedSlice _finish(int final_size_of_type) { | 195 | 8.38k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8.38k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8.38k | int padding_elems = num_elems_after_padding - _count; | 200 | 8.38k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 92.0k | for (int i = 0; i < padding_bytes; i++) { | 202 | 83.6k | _data.push_back(0); | 203 | 83.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8.38k | _buffer.resize( | 207 | 8.38k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8.38k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8.38k | int64_t bytes = | 211 | 8.38k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8.38k | num_elems_after_padding, final_size_of_type, 0); | 213 | 8.38k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 8.38k | encode_fixed32_le(&_buffer[0], _count); | 223 | 8.38k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8.38k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8.38k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8.38k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8.38k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8.38k | return _buffer.build(); | 230 | 8.38k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 194 | 102k | OwnedSlice _finish(int final_size_of_type) { | 195 | 102k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 102k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 102k | int padding_elems = num_elems_after_padding - _count; | 200 | 102k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 4.57M | for (int i = 0; i < padding_bytes; i++) { | 202 | 4.46M | _data.push_back(0); | 203 | 4.46M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 102k | _buffer.resize( | 207 | 102k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 102k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 102k | int64_t bytes = | 211 | 102k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 102k | num_elems_after_padding, final_size_of_type, 0); | 213 | 102k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 102k | encode_fixed32_le(&_buffer[0], _count); | 223 | 102k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 102k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 102k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 102k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 102k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 102k | return _buffer.build(); | 230 | 102k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 194 | 11.4k | OwnedSlice _finish(int final_size_of_type) { | 195 | 11.4k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 11.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 11.4k | int padding_elems = num_elems_after_padding - _count; | 200 | 11.4k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 830k | for (int i = 0; i < padding_bytes; i++) { | 202 | 819k | _data.push_back(0); | 203 | 819k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 11.4k | _buffer.resize( | 207 | 11.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 11.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 11.4k | int64_t bytes = | 211 | 11.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 11.4k | num_elems_after_padding, final_size_of_type, 0); | 213 | 11.4k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 11.4k | encode_fixed32_le(&_buffer[0], _count); | 223 | 11.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 11.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 11.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 11.4k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 11.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 11.4k | return _buffer.build(); | 230 | 11.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 194 | 63.8k | OwnedSlice _finish(int final_size_of_type) { | 195 | 63.8k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 63.8k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 63.8k | int padding_elems = num_elems_after_padding - _count; | 200 | 63.8k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 3.08M | for (int i = 0; i < padding_bytes; i++) { | 202 | 3.01M | _data.push_back(0); | 203 | 3.01M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 63.8k | _buffer.resize( | 207 | 63.8k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 63.8k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 63.8k | int64_t bytes = | 211 | 63.8k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 63.8k | num_elems_after_padding, final_size_of_type, 0); | 213 | 63.8k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 63.8k | encode_fixed32_le(&_buffer[0], _count); | 223 | 63.8k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 63.8k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 63.8k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 63.8k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 63.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 63.8k | return _buffer.build(); | 230 | 63.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 194 | 6.56k | OwnedSlice _finish(int final_size_of_type) { | 195 | 6.56k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6.56k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6.56k | int padding_elems = num_elems_after_padding - _count; | 200 | 6.56k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 146k | for (int i = 0; i < padding_bytes; i++) { | 202 | 139k | _data.push_back(0); | 203 | 139k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6.56k | _buffer.resize( | 207 | 6.56k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6.56k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6.56k | int64_t bytes = | 211 | 6.56k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6.56k | num_elems_after_padding, final_size_of_type, 0); | 213 | 6.56k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6.56k | encode_fixed32_le(&_buffer[0], _count); | 223 | 6.56k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6.56k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6.56k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6.56k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6.56k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6.56k | return _buffer.build(); | 230 | 6.56k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 194 | 8.96k | OwnedSlice _finish(int final_size_of_type) { | 195 | 8.96k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 8.96k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 8.96k | int padding_elems = num_elems_after_padding - _count; | 200 | 8.96k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 330k | for (int i = 0; i < padding_bytes; i++) { | 202 | 321k | _data.push_back(0); | 203 | 321k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 8.96k | _buffer.resize( | 207 | 8.96k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 8.96k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 8.96k | int64_t bytes = | 211 | 8.96k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 8.96k | num_elems_after_padding, final_size_of_type, 0); | 213 | 8.96k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 8.96k | encode_fixed32_le(&_buffer[0], _count); | 223 | 8.96k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 8.96k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 8.96k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 8.96k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 8.96k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 8.96k | return _buffer.build(); | 230 | 8.96k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 194 | 6 | OwnedSlice _finish(int final_size_of_type) { | 195 | 6 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 6 | int padding_elems = num_elems_after_padding - _count; | 200 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 18 | for (int i = 0; i < padding_bytes; i++) { | 202 | 12 | _data.push_back(0); | 203 | 12 | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 6 | _buffer.resize( | 207 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 6 | int64_t bytes = | 211 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 6 | num_elems_after_padding, final_size_of_type, 0); | 213 | 6 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 6 | encode_fixed32_le(&_buffer[0], _count); | 223 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 6 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 6 | return _buffer.build(); | 230 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 194 | 711 | OwnedSlice _finish(int final_size_of_type) { | 195 | 711 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 711 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 711 | int padding_elems = num_elems_after_padding - _count; | 200 | 711 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 12.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.6k | _data.push_back(0); | 203 | 11.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 711 | _buffer.resize( | 207 | 711 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 711 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 711 | int64_t bytes = | 211 | 711 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 711 | num_elems_after_padding, final_size_of_type, 0); | 213 | 711 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 711 | encode_fixed32_le(&_buffer[0], _count); | 223 | 711 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 711 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 711 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 711 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 711 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 711 | return _buffer.build(); | 230 | 711 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 194 | 37.9k | OwnedSlice _finish(int final_size_of_type) { | 195 | 37.9k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 37.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 37.9k | int padding_elems = num_elems_after_padding - _count; | 200 | 37.9k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 799k | for (int i = 0; i < padding_bytes; i++) { | 202 | 761k | _data.push_back(0); | 203 | 761k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 37.9k | _buffer.resize( | 207 | 37.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 37.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 37.9k | int64_t bytes = | 211 | 37.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 37.9k | num_elems_after_padding, final_size_of_type, 0); | 213 | 37.9k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 37.9k | encode_fixed32_le(&_buffer[0], _count); | 223 | 37.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 37.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 37.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 37.9k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 37.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 37.9k | return _buffer.build(); | 230 | 37.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 194 | 43.2k | OwnedSlice _finish(int final_size_of_type) { | 195 | 43.2k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 43.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 43.2k | int padding_elems = num_elems_after_padding - _count; | 200 | 43.2k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.79M | _data.push_back(0); | 203 | 1.79M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 43.2k | _buffer.resize( | 207 | 43.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 43.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 43.2k | int64_t bytes = | 211 | 43.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 43.2k | num_elems_after_padding, final_size_of_type, 0); | 213 | 43.2k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 43.2k | encode_fixed32_le(&_buffer[0], _count); | 223 | 43.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 43.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 43.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 43.2k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 43.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 43.2k | return _buffer.build(); | 230 | 43.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 194 | 277 | OwnedSlice _finish(int final_size_of_type) { | 195 | 277 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 277 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 277 | int padding_elems = num_elems_after_padding - _count; | 200 | 277 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.5k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.3k | _data.push_back(0); | 203 | 11.3k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 277 | _buffer.resize( | 207 | 277 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 277 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 277 | int64_t bytes = | 211 | 277 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 277 | num_elems_after_padding, final_size_of_type, 0); | 213 | 277 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 277 | encode_fixed32_le(&_buffer[0], _count); | 223 | 277 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 277 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 277 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 277 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 277 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 277 | return _buffer.build(); | 230 | 277 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 194 | 604 | OwnedSlice _finish(int final_size_of_type) { | 195 | 604 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 604 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 604 | int padding_elems = num_elems_after_padding - _count; | 200 | 604 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 13.4k | for (int i = 0; i < padding_bytes; i++) { | 202 | 12.8k | _data.push_back(0); | 203 | 12.8k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 604 | _buffer.resize( | 207 | 604 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 604 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 604 | int64_t bytes = | 211 | 604 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 604 | num_elems_after_padding, final_size_of_type, 0); | 213 | 604 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 604 | encode_fixed32_le(&_buffer[0], _count); | 223 | 604 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 604 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 604 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 604 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 604 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 604 | return _buffer.build(); | 230 | 604 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 194 | 7.72k | OwnedSlice _finish(int final_size_of_type) { | 195 | 7.72k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 7.72k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 7.72k | int padding_elems = num_elems_after_padding - _count; | 200 | 7.72k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 402k | for (int i = 0; i < padding_bytes; i++) { | 202 | 395k | _data.push_back(0); | 203 | 395k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 7.72k | _buffer.resize( | 207 | 7.72k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 7.72k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 7.72k | int64_t bytes = | 211 | 7.72k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 7.72k | num_elems_after_padding, final_size_of_type, 0); | 213 | 7.72k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 7.72k | encode_fixed32_le(&_buffer[0], _count); | 223 | 7.72k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 7.72k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 7.72k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 7.72k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 7.72k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 7.72k | return _buffer.build(); | 230 | 7.72k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 194 | 261 | OwnedSlice _finish(int final_size_of_type) { | 195 | 261 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 261 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 261 | int padding_elems = num_elems_after_padding - _count; | 200 | 261 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 16.2k | for (int i = 0; i < padding_bytes; i++) { | 202 | 16.0k | _data.push_back(0); | 203 | 16.0k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 261 | _buffer.resize( | 207 | 261 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 261 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 261 | int64_t bytes = | 211 | 261 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 261 | num_elems_after_padding, final_size_of_type, 0); | 213 | 261 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 261 | encode_fixed32_le(&_buffer[0], _count); | 223 | 261 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 261 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 261 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 261 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 261 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 261 | return _buffer.build(); | 230 | 261 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 194 | 9.75k | OwnedSlice _finish(int final_size_of_type) { | 195 | 9.75k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 9.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 9.75k | int padding_elems = num_elems_after_padding - _count; | 200 | 9.75k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 118k | for (int i = 0; i < padding_bytes; i++) { | 202 | 108k | _data.push_back(0); | 203 | 108k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 9.75k | _buffer.resize( | 207 | 9.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 9.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 9.75k | int64_t bytes = | 211 | 9.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 9.75k | num_elems_after_padding, final_size_of_type, 0); | 213 | 9.75k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 9.75k | encode_fixed32_le(&_buffer[0], _count); | 223 | 9.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 9.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 9.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 9.75k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 9.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 9.75k | return _buffer.build(); | 230 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 194 | 19.4k | OwnedSlice _finish(int final_size_of_type) { | 195 | 19.4k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 19.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 19.4k | int padding_elems = num_elems_after_padding - _count; | 200 | 19.4k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 488k | for (int i = 0; i < padding_bytes; i++) { | 202 | 469k | _data.push_back(0); | 203 | 469k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 19.4k | _buffer.resize( | 207 | 19.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 19.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 19.4k | int64_t bytes = | 211 | 19.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 19.4k | num_elems_after_padding, final_size_of_type, 0); | 213 | 19.4k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 19.4k | encode_fixed32_le(&_buffer[0], _count); | 223 | 19.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 19.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 19.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 19.4k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 19.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 19.4k | return _buffer.build(); | 230 | 19.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 194 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 195 | 17.1k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 200 | 17.1k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 202 | 1.12M | _data.push_back(0); | 203 | 1.12M | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 17.1k | _buffer.resize( | 207 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 17.1k | int64_t bytes = | 211 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 213 | 17.1k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 223 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 17.1k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 17.1k | return _buffer.build(); | 230 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 194 | 1.15k | OwnedSlice _finish(int final_size_of_type) { | 195 | 1.15k | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 1.15k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 1.15k | int padding_elems = num_elems_after_padding - _count; | 200 | 1.15k | int padding_bytes = padding_elems * final_size_of_type; | 201 | 175k | for (int i = 0; i < padding_bytes; i++) { | 202 | 174k | _data.push_back(0); | 203 | 174k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 1.15k | _buffer.resize( | 207 | 1.15k | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 1.15k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 1.15k | int64_t bytes = | 211 | 1.15k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 1.15k | num_elems_after_padding, final_size_of_type, 0); | 213 | 1.15k | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 1.15k | encode_fixed32_le(&_buffer[0], _count); | 223 | 1.15k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 1.15k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 1.15k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 1.15k | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 1.15k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 1.15k | return _buffer.build(); | 230 | 1.15k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 194 | 582 | OwnedSlice _finish(int final_size_of_type) { | 195 | 582 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 582 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 582 | int padding_elems = num_elems_after_padding - _count; | 200 | 582 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 11.8k | for (int i = 0; i < padding_bytes; i++) { | 202 | 11.2k | _data.push_back(0); | 203 | 11.2k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 582 | _buffer.resize( | 207 | 582 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 582 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 582 | int64_t bytes = | 211 | 582 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 582 | num_elems_after_padding, final_size_of_type, 0); | 213 | 582 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 582 | encode_fixed32_le(&_buffer[0], _count); | 223 | 582 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 582 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 582 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 582 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 582 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 582 | return _buffer.build(); | 230 | 582 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 194 | 589 | OwnedSlice _finish(int final_size_of_type) { | 195 | 589 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 589 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 589 | int padding_elems = num_elems_after_padding - _count; | 200 | 589 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 46.9k | for (int i = 0; i < padding_bytes; i++) { | 202 | 46.3k | _data.push_back(0); | 203 | 46.3k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 589 | _buffer.resize( | 207 | 589 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 589 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 589 | int64_t bytes = | 211 | 589 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 589 | num_elems_after_padding, final_size_of_type, 0); | 213 | 589 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 589 | encode_fixed32_le(&_buffer[0], _count); | 223 | 589 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 589 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 589 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 589 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 589 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 589 | return _buffer.build(); | 230 | 589 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 194 | 691 | OwnedSlice _finish(int final_size_of_type) { | 195 | 691 | _data.resize(final_size_of_type * _count); | 196 | | | 197 | | // Do padding so that the input num of element is multiple of 8. | 198 | 691 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 199 | 691 | int padding_elems = num_elems_after_padding - _count; | 200 | 691 | int padding_bytes = padding_elems * final_size_of_type; | 201 | 50.3k | for (int i = 0; i < padding_bytes; i++) { | 202 | 49.6k | _data.push_back(0); | 203 | 49.6k | } | 204 | | | 205 | | // reserve enough place for compression | 206 | 691 | _buffer.resize( | 207 | 691 | BITSHUFFLE_PAGE_HEADER_SIZE + | 208 | 691 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 209 | | | 210 | 691 | int64_t bytes = | 211 | 691 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 212 | 691 | num_elems_after_padding, final_size_of_type, 0); | 213 | 691 | if (bytes < 0) [[unlikely]] { | 214 | | // This means the bitshuffle function fails. | 215 | | // Ideally, this should not happen. | 216 | 0 | warn_with_bitshuffle_error(bytes); | 217 | | // It does not matter what will be returned here, | 218 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 219 | 0 | return OwnedSlice(); | 220 | 0 | } | 221 | | // update header | 222 | 691 | encode_fixed32_le(&_buffer[0], _count); | 223 | 691 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 224 | 691 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 225 | 691 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 226 | 691 | _finished = true; | 227 | | // before build(), update buffer length to the actual compressed size | 228 | 691 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 229 | 691 | return _buffer.build(); | 230 | 691 | } |
|
231 | | |
232 | | using CppType = typename TypeTraits<Type>::CppType; |
233 | | |
234 | | CppType cell(int idx) const { |
235 | | DCHECK_GE(idx, 0); |
236 | | CppType ret; |
237 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
238 | | return ret; |
239 | | } |
240 | | |
241 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
242 | | PageBuilderOptions _options; |
243 | | uint32_t _count; |
244 | | uint32_t _remain_element_capacity; |
245 | | bool _finished; |
246 | | faststring _data; |
247 | | faststring _buffer; |
248 | | uint64_t _raw_data_size = 0; |
249 | | }; |
250 | | |
251 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
252 | | size_t& compressed_size, size_t& num_element_after_padding, |
253 | 2.18M | int& size_of_element) { |
254 | 2.18M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
255 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
256 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
257 | 0 | } |
258 | | |
259 | 2.18M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
260 | 2.18M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
261 | 2.18M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
262 | 2.18M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
263 | 2.18M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
264 | 0 | return Status::InternalError( |
265 | 0 | "num of element information corrupted," |
266 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
267 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
268 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
269 | 0 | size_of_element, data.size); |
270 | 0 | } |
271 | 2.18M | switch (size_of_element) { |
272 | 191k | case 1: |
273 | 209k | case 2: |
274 | 214k | case 3: |
275 | 1.40M | case 4: |
276 | 2.07M | case 8: |
277 | 2.07M | case 12: |
278 | 2.17M | case 16: |
279 | 2.18M | case 32: |
280 | 2.18M | break; |
281 | 0 | default: |
282 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
283 | 2.18M | } |
284 | 2.18M | return Status::OK(); |
285 | 2.18M | } |
286 | | |
287 | | template <FieldType Type> |
288 | | class BitShufflePageDecoder : public PageDecoder { |
289 | | public: |
290 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
291 | 1.08M | : _data(data), |
292 | 1.08M | _options(options), |
293 | 1.08M | _parsed(false), |
294 | 1.08M | _num_elements(0), |
295 | 1.08M | _num_element_after_padding(0), |
296 | 1.08M | _size_of_element(0), |
297 | 1.08M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 510k | : _data(data), | 292 | 510k | _options(options), | 293 | 510k | _parsed(false), | 294 | 510k | _num_elements(0), | 295 | 510k | _num_element_after_padding(0), | 296 | 510k | _size_of_element(0), | 297 | 510k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 95.5k | : _data(data), | 292 | 95.5k | _options(options), | 293 | 95.5k | _parsed(false), | 294 | 95.5k | _num_elements(0), | 295 | 95.5k | _num_element_after_padding(0), | 296 | 95.5k | _size_of_element(0), | 297 | 95.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 9.40k | : _data(data), | 292 | 9.40k | _options(options), | 293 | 9.40k | _parsed(false), | 294 | 9.40k | _num_elements(0), | 295 | 9.40k | _num_element_after_padding(0), | 296 | 9.40k | _size_of_element(0), | 297 | 9.40k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 100k | : _data(data), | 292 | 100k | _options(options), | 293 | 100k | _parsed(false), | 294 | 100k | _num_elements(0), | 295 | 100k | _num_element_after_padding(0), | 296 | 100k | _size_of_element(0), | 297 | 100k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 12.6k | : _data(data), | 292 | 12.6k | _options(options), | 293 | 12.6k | _parsed(false), | 294 | 12.6k | _num_elements(0), | 295 | 12.6k | _num_element_after_padding(0), | 296 | 12.6k | _size_of_element(0), | 297 | 12.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 94.2k | : _data(data), | 292 | 94.2k | _options(options), | 293 | 94.2k | _parsed(false), | 294 | 94.2k | _num_elements(0), | 295 | 94.2k | _num_element_after_padding(0), | 296 | 94.2k | _size_of_element(0), | 297 | 94.2k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 7.04k | : _data(data), | 292 | 7.04k | _options(options), | 293 | 7.04k | _parsed(false), | 294 | 7.04k | _num_elements(0), | 295 | 7.04k | _num_element_after_padding(0), | 296 | 7.04k | _size_of_element(0), | 297 | 7.04k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 11.2k | : _data(data), | 292 | 11.2k | _options(options), | 293 | 11.2k | _parsed(false), | 294 | 11.2k | _num_elements(0), | 295 | 11.2k | _num_element_after_padding(0), | 296 | 11.2k | _size_of_element(0), | 297 | 11.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 6 | : _data(data), | 292 | 6 | _options(options), | 293 | 6 | _parsed(false), | 294 | 6 | _num_elements(0), | 295 | 6 | _num_element_after_padding(0), | 296 | 6 | _size_of_element(0), | 297 | 6 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 2.23k | : _data(data), | 292 | 2.23k | _options(options), | 293 | 2.23k | _parsed(false), | 294 | 2.23k | _num_elements(0), | 295 | 2.23k | _num_element_after_padding(0), | 296 | 2.23k | _size_of_element(0), | 297 | 2.23k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 59.2k | : _data(data), | 292 | 59.2k | _options(options), | 293 | 59.2k | _parsed(false), | 294 | 59.2k | _num_elements(0), | 295 | 59.2k | _num_element_after_padding(0), | 296 | 59.2k | _size_of_element(0), | 297 | 59.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 67.9k | : _data(data), | 292 | 67.9k | _options(options), | 293 | 67.9k | _parsed(false), | 294 | 67.9k | _num_elements(0), | 295 | 67.9k | _num_element_after_padding(0), | 296 | 67.9k | _size_of_element(0), | 297 | 67.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 3.14k | : _data(data), | 292 | 3.14k | _options(options), | 293 | 3.14k | _parsed(false), | 294 | 3.14k | _num_elements(0), | 295 | 3.14k | _num_element_after_padding(0), | 296 | 3.14k | _size_of_element(0), | 297 | 3.14k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 2.57k | : _data(data), | 292 | 2.57k | _options(options), | 293 | 2.57k | _parsed(false), | 294 | 2.57k | _num_elements(0), | 295 | 2.57k | _num_element_after_padding(0), | 296 | 2.57k | _size_of_element(0), | 297 | 2.57k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 15.9k | : _data(data), | 292 | 15.9k | _options(options), | 293 | 15.9k | _parsed(false), | 294 | 15.9k | _num_elements(0), | 295 | 15.9k | _num_element_after_padding(0), | 296 | 15.9k | _size_of_element(0), | 297 | 15.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.37k | : _data(data), | 292 | 1.37k | _options(options), | 293 | 1.37k | _parsed(false), | 294 | 1.37k | _num_elements(0), | 295 | 1.37k | _num_element_after_padding(0), | 296 | 1.37k | _size_of_element(0), | 297 | 1.37k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 15.4k | : _data(data), | 292 | 15.4k | _options(options), | 293 | 15.4k | _parsed(false), | 294 | 15.4k | _num_elements(0), | 295 | 15.4k | _num_element_after_padding(0), | 296 | 15.4k | _size_of_element(0), | 297 | 15.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 41.0k | : _data(data), | 292 | 41.0k | _options(options), | 293 | 41.0k | _parsed(false), | 294 | 41.0k | _num_elements(0), | 295 | 41.0k | _num_element_after_padding(0), | 296 | 41.0k | _size_of_element(0), | 297 | 41.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 31.2k | : _data(data), | 292 | 31.2k | _options(options), | 293 | 31.2k | _parsed(false), | 294 | 31.2k | _num_elements(0), | 295 | 31.2k | _num_element_after_padding(0), | 296 | 31.2k | _size_of_element(0), | 297 | 31.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 1.77k | : _data(data), | 292 | 1.77k | _options(options), | 293 | 1.77k | _parsed(false), | 294 | 1.77k | _num_elements(0), | 295 | 1.77k | _num_element_after_padding(0), | 296 | 1.77k | _size_of_element(0), | 297 | 1.77k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 890 | : _data(data), | 292 | 890 | _options(options), | 293 | 890 | _parsed(false), | 294 | 890 | _num_elements(0), | 295 | 890 | _num_element_after_padding(0), | 296 | 890 | _size_of_element(0), | 297 | 890 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 941 | : _data(data), | 292 | 941 | _options(options), | 293 | 941 | _parsed(false), | 294 | 941 | _num_elements(0), | 295 | 941 | _num_element_after_padding(0), | 296 | 941 | _size_of_element(0), | 297 | 941 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 291 | 5.08k | : _data(data), | 292 | 5.08k | _options(options), | 293 | 5.08k | _parsed(false), | 294 | 5.08k | _num_elements(0), | 295 | 5.08k | _num_element_after_padding(0), | 296 | 5.08k | _size_of_element(0), | 297 | 5.08k | _cur_index(0) {} |
|
298 | | |
299 | 1.08M | Status init() override { |
300 | 1.08M | CHECK(!_parsed); |
301 | 1.08M | size_t unused; |
302 | 1.08M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
303 | 1.08M | _num_element_after_padding, _size_of_element)); |
304 | | |
305 | 1.08M | if (_data.size != |
306 | 1.08M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
307 | 13 | std::stringstream ss; |
308 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
309 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
310 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
311 | 13 | return Status::InternalError(ss.str()); |
312 | 13 | } |
313 | | |
314 | | // Currently, only the UINT32 block encoder supports expanding size: |
315 | 1.08M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
316 | 1.08M | _size_of_element != SIZE_OF_TYPE)) { |
317 | 0 | return Status::InternalError( |
318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
320 | 0 | } |
321 | 1.08M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
323 | 0 | _size_of_element, SIZE_OF_TYPE); |
324 | 0 | } |
325 | 1.08M | _parsed = true; |
326 | 1.08M | return Status::OK(); |
327 | 1.08M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 299 | 510k | Status init() override { | 300 | 510k | CHECK(!_parsed); | 301 | 510k | size_t unused; | 302 | 510k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 510k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 510k | if (_data.size != | 306 | 510k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 5 | std::stringstream ss; | 308 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 5 | return Status::InternalError(ss.str()); | 312 | 5 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 510k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 510k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 510k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 510k | _parsed = true; | 326 | 510k | return Status::OK(); | 327 | 510k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 299 | 95.4k | Status init() override { | 300 | 95.4k | CHECK(!_parsed); | 301 | 95.4k | size_t unused; | 302 | 95.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 95.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 95.4k | if (_data.size != | 306 | 95.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 95.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 95.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 95.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 95.4k | _parsed = true; | 326 | 95.4k | return Status::OK(); | 327 | 95.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 299 | 9.39k | Status init() override { | 300 | 9.39k | CHECK(!_parsed); | 301 | 9.39k | size_t unused; | 302 | 9.39k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 9.39k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 9.39k | if (_data.size != | 306 | 9.39k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 9.39k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 9.39k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 9.39k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 9.39k | _parsed = true; | 326 | 9.39k | return Status::OK(); | 327 | 9.39k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 299 | 100k | Status init() override { | 300 | 100k | CHECK(!_parsed); | 301 | 100k | size_t unused; | 302 | 100k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 100k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 100k | if (_data.size != | 306 | 100k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 100k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 100k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 100k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 100k | _parsed = true; | 326 | 100k | return Status::OK(); | 327 | 100k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 299 | 12.6k | Status init() override { | 300 | 12.6k | CHECK(!_parsed); | 301 | 12.6k | size_t unused; | 302 | 12.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 12.6k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 12.6k | if (_data.size != | 306 | 12.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 12.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 12.6k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 12.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 12.6k | _parsed = true; | 326 | 12.6k | return Status::OK(); | 327 | 12.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 299 | 94.2k | Status init() override { | 300 | 94.2k | CHECK(!_parsed); | 301 | 94.2k | size_t unused; | 302 | 94.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 94.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 94.2k | if (_data.size != | 306 | 94.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 94.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 94.2k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 94.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 94.2k | _parsed = true; | 326 | 94.2k | return Status::OK(); | 327 | 94.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 299 | 7.03k | Status init() override { | 300 | 7.03k | CHECK(!_parsed); | 301 | 7.03k | size_t unused; | 302 | 7.03k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 7.03k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 7.03k | if (_data.size != | 306 | 7.03k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 2 | std::stringstream ss; | 308 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 2 | return Status::InternalError(ss.str()); | 312 | 2 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 7.03k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 7.03k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 7.03k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 7.03k | _parsed = true; | 326 | 7.03k | return Status::OK(); | 327 | 7.03k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 299 | 11.2k | Status init() override { | 300 | 11.2k | CHECK(!_parsed); | 301 | 11.2k | size_t unused; | 302 | 11.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 11.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 11.2k | if (_data.size != | 306 | 11.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 4 | std::stringstream ss; | 308 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 4 | return Status::InternalError(ss.str()); | 312 | 4 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 11.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 11.2k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 11.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 11.2k | _parsed = true; | 326 | 11.2k | return Status::OK(); | 327 | 11.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 299 | 6 | Status init() override { | 300 | 6 | CHECK(!_parsed); | 301 | 6 | size_t unused; | 302 | 6 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 6 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 6 | if (_data.size != | 306 | 6 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 6 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 6 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 6 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 6 | _parsed = true; | 326 | 6 | return Status::OK(); | 327 | 6 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 299 | 2.23k | Status init() override { | 300 | 2.23k | CHECK(!_parsed); | 301 | 2.23k | size_t unused; | 302 | 2.23k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 2.23k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 2.23k | if (_data.size != | 306 | 2.23k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 2.23k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 2.23k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 2.23k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 2.23k | _parsed = true; | 326 | 2.23k | return Status::OK(); | 327 | 2.23k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 299 | 59.2k | Status init() override { | 300 | 59.2k | CHECK(!_parsed); | 301 | 59.2k | size_t unused; | 302 | 59.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 59.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 59.2k | if (_data.size != | 306 | 59.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 59.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 59.2k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 59.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 59.2k | _parsed = true; | 326 | 59.2k | return Status::OK(); | 327 | 59.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 299 | 67.9k | Status init() override { | 300 | 67.9k | CHECK(!_parsed); | 301 | 67.9k | size_t unused; | 302 | 67.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 67.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 67.9k | if (_data.size != | 306 | 67.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 67.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 67.9k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 67.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 67.9k | _parsed = true; | 326 | 67.9k | return Status::OK(); | 327 | 67.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 299 | 3.13k | Status init() override { | 300 | 3.13k | CHECK(!_parsed); | 301 | 3.13k | size_t unused; | 302 | 3.13k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 3.13k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 3.13k | if (_data.size != | 306 | 3.13k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 3.13k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 3.13k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 3.13k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 3.13k | _parsed = true; | 326 | 3.13k | return Status::OK(); | 327 | 3.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 299 | 2.57k | Status init() override { | 300 | 2.57k | CHECK(!_parsed); | 301 | 2.57k | size_t unused; | 302 | 2.57k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 2.57k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 2.57k | if (_data.size != | 306 | 2.57k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 2.57k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 2.57k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 2.57k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 2.57k | _parsed = true; | 326 | 2.57k | return Status::OK(); | 327 | 2.57k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 299 | 15.9k | Status init() override { | 300 | 15.9k | CHECK(!_parsed); | 301 | 15.9k | size_t unused; | 302 | 15.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 15.9k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 15.9k | if (_data.size != | 306 | 15.9k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 15.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 15.9k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 15.9k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 15.9k | _parsed = true; | 326 | 15.9k | return Status::OK(); | 327 | 15.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 299 | 1.36k | Status init() override { | 300 | 1.36k | CHECK(!_parsed); | 301 | 1.36k | size_t unused; | 302 | 1.36k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.36k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.36k | if (_data.size != | 306 | 1.36k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 1 | std::stringstream ss; | 308 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 1 | return Status::InternalError(ss.str()); | 312 | 1 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.36k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.36k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.36k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.36k | _parsed = true; | 326 | 1.36k | return Status::OK(); | 327 | 1.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 299 | 15.4k | Status init() override { | 300 | 15.4k | CHECK(!_parsed); | 301 | 15.4k | size_t unused; | 302 | 15.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 15.4k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 15.4k | if (_data.size != | 306 | 15.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 15.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 15.4k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 15.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 15.4k | _parsed = true; | 326 | 15.4k | return Status::OK(); | 327 | 15.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 299 | 41.0k | Status init() override { | 300 | 41.0k | CHECK(!_parsed); | 301 | 41.0k | size_t unused; | 302 | 41.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 41.0k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 41.0k | if (_data.size != | 306 | 41.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 41.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 41.0k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 41.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 41.0k | _parsed = true; | 326 | 41.0k | return Status::OK(); | 327 | 41.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 299 | 31.2k | Status init() override { | 300 | 31.2k | CHECK(!_parsed); | 301 | 31.2k | size_t unused; | 302 | 31.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 31.2k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 31.2k | if (_data.size != | 306 | 31.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 31.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 31.2k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 31.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 31.2k | _parsed = true; | 326 | 31.2k | return Status::OK(); | 327 | 31.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 299 | 1.77k | Status init() override { | 300 | 1.77k | CHECK(!_parsed); | 301 | 1.77k | size_t unused; | 302 | 1.77k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 1.77k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 1.77k | if (_data.size != | 306 | 1.77k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 1.77k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 1.77k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 1.77k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 1.77k | _parsed = true; | 326 | 1.77k | return Status::OK(); | 327 | 1.77k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 299 | 888 | Status init() override { | 300 | 888 | CHECK(!_parsed); | 301 | 888 | size_t unused; | 302 | 888 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 888 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 888 | if (_data.size != | 306 | 888 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 888 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 888 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 888 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 888 | _parsed = true; | 326 | 888 | return Status::OK(); | 327 | 888 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 299 | 940 | Status init() override { | 300 | 940 | CHECK(!_parsed); | 301 | 940 | size_t unused; | 302 | 940 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 940 | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 940 | if (_data.size != | 306 | 940 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 940 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 940 | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 940 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 940 | _parsed = true; | 326 | 940 | return Status::OK(); | 327 | 940 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 299 | 5.08k | Status init() override { | 300 | 5.08k | CHECK(!_parsed); | 301 | 5.08k | size_t unused; | 302 | 5.08k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 303 | 5.08k | _num_element_after_padding, _size_of_element)); | 304 | | | 305 | 5.08k | if (_data.size != | 306 | 5.08k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 307 | 0 | std::stringstream ss; | 308 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 309 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 310 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 311 | 0 | return Status::InternalError(ss.str()); | 312 | 0 | } | 313 | | | 314 | | // Currently, only the UINT32 block encoder supports expanding size: | 315 | 5.08k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 316 | 5.08k | _size_of_element != SIZE_OF_TYPE)) { | 317 | 0 | return Status::InternalError( | 318 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 319 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 320 | 0 | } | 321 | 5.08k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 322 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 323 | 0 | _size_of_element, SIZE_OF_TYPE); | 324 | 0 | } | 325 | 5.08k | _parsed = true; | 326 | 5.08k | return Status::OK(); | 327 | 5.08k | } |
|
328 | | |
329 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
330 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
331 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
332 | | // code such as check if the count == 0, then skip seek, but there are other method such |
333 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
334 | | // == 0, because next batch will return empty in this method. |
335 | 3.04M | Status seek_to_position_in_page(size_t pos) override { |
336 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
337 | 3.04M | if (_num_elements == 0) [[unlikely]] { |
338 | 3.70k | if (pos != 0) { |
339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
341 | 0 | } |
342 | 3.70k | } |
343 | | |
344 | 3.04M | DCHECK_LE(pos, _num_elements); |
345 | 3.04M | _cur_index = pos; |
346 | 3.04M | return Status::OK(); |
347 | 3.04M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.70M | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 1.70M | if (_num_elements == 0) [[unlikely]] { | 338 | 2.08k | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 2.08k | } | 343 | | | 344 | 1.70M | DCHECK_LE(pos, _num_elements); | 345 | 1.70M | _cur_index = pos; | 346 | 1.70M | return Status::OK(); | 347 | 1.70M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 71.9k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 71.9k | if (_num_elements == 0) [[unlikely]] { | 338 | 352 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 352 | } | 343 | | | 344 | 71.9k | DCHECK_LE(pos, _num_elements); | 345 | 71.9k | _cur_index = pos; | 346 | 71.9k | return Status::OK(); | 347 | 71.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.68k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.68k | DCHECK(_parsed) << "Must call init()"; | 337 | 1.68k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 1.68k | DCHECK_LE(pos, _num_elements); | 345 | 1.68k | _cur_index = pos; | 346 | 1.68k | return Status::OK(); | 347 | 1.68k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 63.5k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 63.5k | if (_num_elements == 0) [[unlikely]] { | 338 | 616 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 616 | } | 343 | | | 344 | 63.5k | DCHECK_LE(pos, _num_elements); | 345 | 63.5k | _cur_index = pos; | 346 | 63.5k | return Status::OK(); | 347 | 63.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 4.00k | Status seek_to_position_in_page(size_t pos) override { | 336 | 4.00k | DCHECK(_parsed) << "Must call init()"; | 337 | 4.00k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 4.00k | DCHECK_LE(pos, _num_elements); | 345 | 4.00k | _cur_index = pos; | 346 | 4.00k | return Status::OK(); | 347 | 4.00k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 21.3k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 21.3k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 21.3k | DCHECK_LE(pos, _num_elements); | 345 | 21.3k | _cur_index = pos; | 346 | 21.3k | return Status::OK(); | 347 | 21.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 439 | Status seek_to_position_in_page(size_t pos) override { | 336 | 439 | DCHECK(_parsed) << "Must call init()"; | 337 | 439 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 439 | DCHECK_LE(pos, _num_elements); | 345 | 439 | _cur_index = pos; | 346 | 439 | return Status::OK(); | 347 | 439 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 1.32k | Status seek_to_position_in_page(size_t pos) override { | 336 | 1.32k | DCHECK(_parsed) << "Must call init()"; | 337 | 1.32k | if (_num_elements == 0) [[unlikely]] { | 338 | 1 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1 | } | 343 | | | 344 | 1.32k | DCHECK_LE(pos, _num_elements); | 345 | 1.32k | _cur_index = pos; | 346 | 1.32k | return Status::OK(); | 347 | 1.32k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 94 | Status seek_to_position_in_page(size_t pos) override { | 336 | 94 | DCHECK(_parsed) << "Must call init()"; | 337 | 94 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 94 | DCHECK_LE(pos, _num_elements); | 345 | 94 | _cur_index = pos; | 346 | 94 | return Status::OK(); | 347 | 94 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 222k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 222k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 222k | DCHECK_LE(pos, _num_elements); | 345 | 222k | _cur_index = pos; | 346 | 222k | return Status::OK(); | 347 | 222k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 517k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 517k | if (_num_elements == 0) [[unlikely]] { | 338 | 197 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 197 | } | 343 | | | 344 | 517k | DCHECK_LE(pos, _num_elements); | 345 | 517k | _cur_index = pos; | 346 | 517k | return Status::OK(); | 347 | 517k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 65.8k | Status seek_to_position_in_page(size_t pos) override { | 336 | 65.8k | DCHECK(_parsed) << "Must call init()"; | 337 | 65.8k | if (_num_elements == 0) [[unlikely]] { | 338 | 14 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 14 | } | 343 | | | 344 | 65.8k | DCHECK_LE(pos, _num_elements); | 345 | 65.8k | _cur_index = pos; | 346 | 65.8k | return Status::OK(); | 347 | 65.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 967 | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 967 | if (_num_elements == 0) [[unlikely]] { | 338 | 8 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 8 | } | 343 | | | 344 | 967 | DCHECK_LE(pos, _num_elements); | 345 | 967 | _cur_index = pos; | 346 | 967 | return Status::OK(); | 347 | 967 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 208k | Status seek_to_position_in_page(size_t pos) override { | 336 | 208k | DCHECK(_parsed) << "Must call init()"; | 337 | 208k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 208k | DCHECK_LE(pos, _num_elements); | 345 | 208k | _cur_index = pos; | 346 | 208k | return Status::OK(); | 347 | 208k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 6.99k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 6.99k | if (_num_elements == 0) [[unlikely]] { | 338 | 357 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 357 | } | 343 | | | 344 | 6.99k | DCHECK_LE(pos, _num_elements); | 345 | 6.99k | _cur_index = pos; | 346 | 6.99k | return Status::OK(); | 347 | 6.99k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 55 | Status seek_to_position_in_page(size_t pos) override { | 336 | 55 | DCHECK(_parsed) << "Must call init()"; | 337 | 55 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 55 | DCHECK_LE(pos, _num_elements); | 345 | 55 | _cur_index = pos; | 346 | 55 | return Status::OK(); | 347 | 55 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 870 | Status seek_to_position_in_page(size_t pos) override { | 336 | 870 | DCHECK(_parsed) << "Must call init()"; | 337 | 870 | if (_num_elements == 0) [[unlikely]] { | 338 | 34 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 34 | } | 343 | | | 344 | 870 | DCHECK_LE(pos, _num_elements); | 345 | 870 | _cur_index = pos; | 346 | 870 | return Status::OK(); | 347 | 870 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 17.1k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 17.1k | if (_num_elements == 0) [[unlikely]] { | 338 | 15 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 15 | } | 343 | | | 344 | 17.1k | DCHECK_LE(pos, _num_elements); | 345 | 17.1k | _cur_index = pos; | 346 | 17.1k | return Status::OK(); | 347 | 17.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 125k | Status seek_to_position_in_page(size_t pos) override { | 336 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 337 | 125k | if (_num_elements == 0) [[unlikely]] { | 338 | 10 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 10 | } | 343 | | | 344 | 125k | DCHECK_LE(pos, _num_elements); | 345 | 125k | _cur_index = pos; | 346 | 125k | return Status::OK(); | 347 | 125k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 2.01k | Status seek_to_position_in_page(size_t pos) override { | 336 | 2.01k | DCHECK(_parsed) << "Must call init()"; | 337 | 2.01k | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 2.01k | DCHECK_LE(pos, _num_elements); | 345 | 2.01k | _cur_index = pos; | 346 | 2.01k | return Status::OK(); | 347 | 2.01k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 53 | Status seek_to_position_in_page(size_t pos) override { | 336 | 53 | DCHECK(_parsed) << "Must call init()"; | 337 | 53 | if (_num_elements == 0) [[unlikely]] { | 338 | 0 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 0 | } | 343 | | | 344 | 53 | DCHECK_LE(pos, _num_elements); | 345 | 53 | _cur_index = pos; | 346 | 53 | return Status::OK(); | 347 | 53 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 62 | Status seek_to_position_in_page(size_t pos) override { | 336 | 62 | DCHECK(_parsed) << "Must call init()"; | 337 | 62 | if (_num_elements == 0) [[unlikely]] { | 338 | 1 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 1 | } | 343 | | | 344 | 62 | DCHECK_LE(pos, _num_elements); | 345 | 62 | _cur_index = pos; | 346 | 62 | return Status::OK(); | 347 | 62 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 335 | 9.39k | Status seek_to_position_in_page(size_t pos) override { | 336 | 9.39k | DCHECK(_parsed) << "Must call init()"; | 337 | 9.39k | if (_num_elements == 0) [[unlikely]] { | 338 | 18 | if (pos != 0) { | 339 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 340 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 341 | 0 | } | 342 | 18 | } | 343 | | | 344 | 9.39k | DCHECK_LE(pos, _num_elements); | 345 | 9.39k | _cur_index = pos; | 346 | 9.39k | return Status::OK(); | 347 | 9.39k | } |
|
348 | | |
349 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
350 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
351 | | |
352 | 15 | if (_num_elements == 0) { |
353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
354 | 0 | } |
355 | | |
356 | 15 | size_t left = 0; |
357 | 15 | size_t right = _num_elements; |
358 | | |
359 | 15 | void* mid_value = nullptr; |
360 | | |
361 | | // find the first value >= target. after loop, |
362 | | // - left == index of first value >= target when found |
363 | | // - left == _num_elements when not found (all values < target) |
364 | 162 | while (left < right) { |
365 | 147 | size_t mid = left + (right - left) / 2; |
366 | 147 | mid_value = get_data(mid); |
367 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
368 | 72 | left = mid + 1; |
369 | 75 | } else { |
370 | 75 | right = mid; |
371 | 75 | } |
372 | 147 | } |
373 | 15 | if (left >= _num_elements) { |
374 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
375 | 3 | } |
376 | 12 | void* find_value = get_data(left); |
377 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
378 | 9 | *exact_match = true; |
379 | 9 | } else { |
380 | 3 | *exact_match = false; |
381 | 3 | } |
382 | | |
383 | 12 | _cur_index = left; |
384 | 12 | return Status::OK(); |
385 | 15 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 22 | left = mid + 1; | 369 | 27 | } else { | 370 | 27 | right = mid; | 371 | 27 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 26 | left = mid + 1; | 369 | 26 | } else { | 370 | 23 | right = mid; | 371 | 23 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 349 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 350 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 351 | | | 352 | 5 | if (_num_elements == 0) { | 353 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 354 | 0 | } | 355 | | | 356 | 5 | size_t left = 0; | 357 | 5 | size_t right = _num_elements; | 358 | | | 359 | 5 | void* mid_value = nullptr; | 360 | | | 361 | | // find the first value >= target. after loop, | 362 | | // - left == index of first value >= target when found | 363 | | // - left == _num_elements when not found (all values < target) | 364 | 54 | while (left < right) { | 365 | 49 | size_t mid = left + (right - left) / 2; | 366 | 49 | mid_value = get_data(mid); | 367 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 368 | 24 | left = mid + 1; | 369 | 25 | } else { | 370 | 25 | right = mid; | 371 | 25 | } | 372 | 49 | } | 373 | 5 | if (left >= _num_elements) { | 374 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 375 | 1 | } | 376 | 4 | void* find_value = get_data(left); | 377 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 378 | 3 | *exact_match = true; | 379 | 3 | } else { | 380 | 1 | *exact_match = false; | 381 | 1 | } | 382 | | | 383 | 4 | _cur_index = left; | 384 | 4 | return Status::OK(); | 385 | 5 | } |
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 Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE22seek_at_or_after_valueEPKvPb |
386 | | |
387 | | template <bool forward_index = true> |
388 | 2.29M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
389 | 2.29M | DCHECK(_parsed); |
390 | 2.29M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
391 | 0 | *n = 0; |
392 | 0 | return Status::OK(); |
393 | 0 | } |
394 | | |
395 | 2.29M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
396 | | |
397 | 2.29M | StorageLayout<Type>::storage_to_column( |
398 | 2.29M | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); |
399 | 2.29M | *n = max_fetch; |
400 | 2.29M | if constexpr (forward_index) { |
401 | 2.23M | _cur_index += max_fetch; |
402 | 2.23M | } |
403 | | |
404 | 2.29M | return Status::OK(); |
405 | 2.29M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 554k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 554k | DCHECK(_parsed); | 390 | 555k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 554k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 554k | StorageLayout<Type>::storage_to_column( | 398 | 554k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 554k | *n = max_fetch; | 400 | 554k | if constexpr (forward_index) { | 401 | 554k | _cur_index += max_fetch; | 402 | 554k | } | 403 | | | 404 | 554k | return Status::OK(); | 405 | 554k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 137k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 137k | DCHECK(_parsed); | 390 | 137k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 137k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 137k | StorageLayout<Type>::storage_to_column( | 398 | 137k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 137k | *n = max_fetch; | 400 | 137k | if constexpr (forward_index) { | 401 | 137k | _cur_index += max_fetch; | 402 | 137k | } | 403 | | | 404 | 137k | return Status::OK(); | 405 | 137k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 10.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 10.2k | DCHECK(_parsed); | 390 | 10.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 10.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 10.2k | StorageLayout<Type>::storage_to_column( | 398 | 10.2k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 10.2k | *n = max_fetch; | 400 | 10.2k | if constexpr (forward_index) { | 401 | 10.2k | _cur_index += max_fetch; | 402 | 10.2k | } | 403 | | | 404 | 10.2k | return Status::OK(); | 405 | 10.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 762k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 762k | DCHECK(_parsed); | 390 | 763k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 762k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 762k | StorageLayout<Type>::storage_to_column( | 398 | 762k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 762k | *n = max_fetch; | 400 | 762k | if constexpr (forward_index) { | 401 | 762k | _cur_index += max_fetch; | 402 | 762k | } | 403 | | | 404 | 762k | return Status::OK(); | 405 | 762k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 12.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 12.4k | DCHECK(_parsed); | 390 | 12.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 12.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 12.4k | StorageLayout<Type>::storage_to_column( | 398 | 12.4k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 12.4k | *n = max_fetch; | 400 | 12.4k | if constexpr (forward_index) { | 401 | 12.4k | _cur_index += max_fetch; | 402 | 12.4k | } | 403 | | | 404 | 12.4k | return Status::OK(); | 405 | 12.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 92.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 92.9k | DCHECK(_parsed); | 390 | 93.0k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 92.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 92.9k | StorageLayout<Type>::storage_to_column( | 398 | 92.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 92.9k | *n = max_fetch; | 400 | 92.9k | if constexpr (forward_index) { | 401 | 92.9k | _cur_index += max_fetch; | 402 | 92.9k | } | 403 | | | 404 | 92.9k | return Status::OK(); | 405 | 92.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 53.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 53.7k | DCHECK(_parsed); | 390 | 53.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 53.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 53.7k | StorageLayout<Type>::storage_to_column( | 398 | 53.7k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 53.7k | *n = max_fetch; | 400 | | if constexpr (forward_index) { | 401 | | _cur_index += max_fetch; | 402 | | } | 403 | | | 404 | 53.7k | return Status::OK(); | 405 | 53.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 7.08k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.08k | DCHECK(_parsed); | 390 | 7.08k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.08k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.08k | StorageLayout<Type>::storage_to_column( | 398 | 7.08k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.08k | *n = max_fetch; | 400 | 7.08k | if constexpr (forward_index) { | 401 | 7.08k | _cur_index += max_fetch; | 402 | 7.08k | } | 403 | | | 404 | 7.08k | return Status::OK(); | 405 | 7.08k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 20.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 20.9k | DCHECK(_parsed); | 390 | 20.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 20.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 20.9k | StorageLayout<Type>::storage_to_column( | 398 | 20.9k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 20.9k | *n = max_fetch; | 400 | 20.9k | if constexpr (forward_index) { | 401 | 20.9k | _cur_index += max_fetch; | 402 | 20.9k | } | 403 | | | 404 | 20.9k | return Status::OK(); | 405 | 20.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 93 | DCHECK(_parsed); | 390 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 93 | StorageLayout<Type>::storage_to_column( | 398 | 93 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 93 | *n = max_fetch; | 400 | 93 | if constexpr (forward_index) { | 401 | 93 | _cur_index += max_fetch; | 402 | 93 | } | 403 | | | 404 | 93 | return Status::OK(); | 405 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 3.79k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.79k | DCHECK(_parsed); | 390 | 3.79k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.79k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.79k | StorageLayout<Type>::storage_to_column( | 398 | 3.79k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.79k | *n = max_fetch; | 400 | 3.79k | if constexpr (forward_index) { | 401 | 3.79k | _cur_index += max_fetch; | 402 | 3.79k | } | 403 | | | 404 | 3.79k | return Status::OK(); | 405 | 3.79k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 376k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 376k | DCHECK(_parsed); | 390 | 376k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 376k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 376k | StorageLayout<Type>::storage_to_column( | 398 | 376k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 376k | *n = max_fetch; | 400 | 376k | if constexpr (forward_index) { | 401 | 376k | _cur_index += max_fetch; | 402 | 376k | } | 403 | | | 404 | 376k | return Status::OK(); | 405 | 376k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 67.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 67.2k | DCHECK(_parsed); | 390 | 67.2k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 67.2k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 67.2k | StorageLayout<Type>::storage_to_column( | 398 | 67.2k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 67.2k | *n = max_fetch; | 400 | 67.2k | if constexpr (forward_index) { | 401 | 67.2k | _cur_index += max_fetch; | 402 | 67.2k | } | 403 | | | 404 | 67.2k | return Status::OK(); | 405 | 67.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 2.14k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 2.14k | DCHECK(_parsed); | 390 | 2.14k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 2.14k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 2.14k | StorageLayout<Type>::storage_to_column( | 398 | 2.14k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 2.14k | *n = max_fetch; | 400 | 2.14k | if constexpr (forward_index) { | 401 | 2.14k | _cur_index += max_fetch; | 402 | 2.14k | } | 403 | | | 404 | 2.14k | return Status::OK(); | 405 | 2.14k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 1.40k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.40k | DCHECK(_parsed); | 390 | 1.40k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.40k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.40k | StorageLayout<Type>::storage_to_column( | 398 | 1.40k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.40k | *n = max_fetch; | 400 | 1.40k | if constexpr (forward_index) { | 401 | 1.40k | _cur_index += max_fetch; | 402 | 1.40k | } | 403 | | | 404 | 1.40k | return Status::OK(); | 405 | 1.40k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 8.12k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 8.12k | DCHECK(_parsed); | 390 | 8.12k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 8.12k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 8.12k | StorageLayout<Type>::storage_to_column( | 398 | 8.12k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 8.12k | *n = max_fetch; | 400 | 8.12k | if constexpr (forward_index) { | 401 | 8.12k | _cur_index += max_fetch; | 402 | 8.12k | } | 403 | | | 404 | 8.12k | return Status::OK(); | 405 | 8.12k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 1.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 1.26k | DCHECK(_parsed); | 390 | 1.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 1.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 1.26k | StorageLayout<Type>::storage_to_column( | 398 | 1.26k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 1.26k | *n = max_fetch; | 400 | 1.26k | if constexpr (forward_index) { | 401 | 1.26k | _cur_index += max_fetch; | 402 | 1.26k | } | 403 | | | 404 | 1.26k | return Status::OK(); | 405 | 1.26k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 7.91k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 7.91k | DCHECK(_parsed); | 390 | 7.91k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 7.91k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 7.91k | StorageLayout<Type>::storage_to_column( | 398 | 7.91k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 7.91k | *n = max_fetch; | 400 | 7.91k | if constexpr (forward_index) { | 401 | 7.91k | _cur_index += max_fetch; | 402 | 7.91k | } | 403 | | | 404 | 7.91k | return Status::OK(); | 405 | 7.91k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 48.7k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 48.7k | DCHECK(_parsed); | 390 | 48.7k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 48.7k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 48.7k | StorageLayout<Type>::storage_to_column( | 398 | 48.7k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 48.7k | *n = max_fetch; | 400 | 48.7k | if constexpr (forward_index) { | 401 | 48.7k | _cur_index += max_fetch; | 402 | 48.7k | } | 403 | | | 404 | 48.7k | return Status::OK(); | 405 | 48.7k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 21.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 21.4k | DCHECK(_parsed); | 390 | 21.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 21.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 21.4k | StorageLayout<Type>::storage_to_column( | 398 | 21.4k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 21.4k | *n = max_fetch; | 400 | 21.4k | if constexpr (forward_index) { | 401 | 21.4k | _cur_index += max_fetch; | 402 | 21.4k | } | 403 | | | 404 | 21.4k | return Status::OK(); | 405 | 21.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 3.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 3.21k | DCHECK(_parsed); | 390 | 3.21k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 3.21k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 3.21k | StorageLayout<Type>::storage_to_column( | 398 | 3.21k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 3.21k | *n = max_fetch; | 400 | 3.21k | if constexpr (forward_index) { | 401 | 3.21k | _cur_index += max_fetch; | 402 | 3.21k | } | 403 | | | 404 | 3.21k | return Status::OK(); | 405 | 3.21k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 627 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 627 | DCHECK(_parsed); | 390 | 627 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 627 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 627 | StorageLayout<Type>::storage_to_column( | 398 | 627 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 627 | *n = max_fetch; | 400 | 627 | if constexpr (forward_index) { | 401 | 627 | _cur_index += max_fetch; | 402 | 627 | } | 403 | | | 404 | 627 | return Status::OK(); | 405 | 627 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 659 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 659 | DCHECK(_parsed); | 390 | 659 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 659 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 659 | StorageLayout<Type>::storage_to_column( | 398 | 659 | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 659 | *n = max_fetch; | 400 | 659 | if constexpr (forward_index) { | 401 | 659 | _cur_index += max_fetch; | 402 | 659 | } | 403 | | | 404 | 659 | return Status::OK(); | 405 | 659 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 388 | 94.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 389 | 94.5k | DCHECK(_parsed); | 390 | 94.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 391 | 0 | *n = 0; | 392 | 0 | return Status::OK(); | 393 | 0 | } | 394 | | | 395 | 94.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 396 | | | 397 | 94.5k | StorageLayout<Type>::storage_to_column( | 398 | 94.5k | reinterpret_cast<const uint8_t*>(get_data(_cur_index)), max_fetch, *dst); | 399 | 94.5k | *n = max_fetch; | 400 | 94.5k | if constexpr (forward_index) { | 401 | 94.5k | _cur_index += max_fetch; | 402 | 94.5k | } | 403 | | | 404 | 94.5k | return Status::OK(); | 405 | 94.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
406 | | |
407 | 2.23M | 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 | 407 | 554k | 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 | 407 | 137k | 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 | 407 | 10.2k | 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 | 407 | 764k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 12.4k | 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 | 407 | 93.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 7.08k | 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 | 407 | 20.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 3.79k | 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 | 407 | 376k | 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 | 407 | 67.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 2.14k | 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 | 407 | 1.40k | 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 | 407 | 8.12k | 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 | 407 | 1.26k | 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 | 407 | 7.91k | 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 | 407 | 48.7k | 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 | 407 | 21.4k | 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 | 407 | 3.21k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 630 | 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 | 407 | 658 | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 407 | 94.6k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
408 | | |
409 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
410 | 406k | MutableColumnPtr& dst) override { |
411 | 406k | DCHECK(_parsed); |
412 | 406k | if (*n == 0) [[unlikely]] { |
413 | 0 | *n = 0; |
414 | 0 | return Status::OK(); |
415 | 0 | } |
416 | | |
417 | 406k | auto total = *n; |
418 | 406k | auto read_count = 0; |
419 | 406k | _buffer.resize(total); |
420 | 111M | for (size_t i = 0; i < total; ++i) { |
421 | 110M | ordinal_t ord = rowids[i] - page_first_ordinal; |
422 | 110M | if (UNLIKELY(ord >= _num_elements)) { |
423 | 12.8k | break; |
424 | 12.8k | } |
425 | | |
426 | 110M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
427 | 110M | } |
428 | | |
429 | 406k | if (LIKELY(read_count > 0)) { |
430 | 406k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), |
431 | 406k | read_count, *dst); |
432 | 406k | } |
433 | | |
434 | 406k | *n = read_count; |
435 | 406k | return Status::OK(); |
436 | 406k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 79.9k | MutableColumnPtr& dst) override { | 411 | 79.9k | DCHECK(_parsed); | 412 | 79.9k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 79.9k | auto total = *n; | 418 | 79.9k | auto read_count = 0; | 419 | 79.9k | _buffer.resize(total); | 420 | 36.4M | for (size_t i = 0; i < total; ++i) { | 421 | 36.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 36.3M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 570 | break; | 424 | 570 | } | 425 | | | 426 | 36.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 36.3M | } | 428 | | | 429 | 80.0k | if (LIKELY(read_count > 0)) { | 430 | 80.0k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 80.0k | read_count, *dst); | 432 | 80.0k | } | 433 | | | 434 | 79.9k | *n = read_count; | 435 | 79.9k | return Status::OK(); | 436 | 79.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 46.1k | MutableColumnPtr& dst) override { | 411 | 46.1k | DCHECK(_parsed); | 412 | 46.1k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 46.1k | auto total = *n; | 418 | 46.1k | auto read_count = 0; | 419 | 46.1k | _buffer.resize(total); | 420 | 916k | for (size_t i = 0; i < total; ++i) { | 421 | 870k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 870k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 45 | break; | 424 | 45 | } | 425 | | | 426 | 870k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 870k | } | 428 | | | 429 | 46.2k | if (LIKELY(read_count > 0)) { | 430 | 46.2k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 46.2k | read_count, *dst); | 432 | 46.2k | } | 433 | | | 434 | 46.1k | *n = read_count; | 435 | 46.1k | return Status::OK(); | 436 | 46.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 4.43k | MutableColumnPtr& dst) override { | 411 | 4.43k | DCHECK(_parsed); | 412 | 4.43k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.43k | auto total = *n; | 418 | 4.43k | auto read_count = 0; | 419 | 4.43k | _buffer.resize(total); | 420 | 44.7k | for (size_t i = 0; i < total; ++i) { | 421 | 40.2k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 40.2k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 40.2k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 40.2k | } | 428 | | | 429 | 4.43k | if (LIKELY(read_count > 0)) { | 430 | 4.43k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 4.43k | read_count, *dst); | 432 | 4.43k | } | 433 | | | 434 | 4.43k | *n = read_count; | 435 | 4.43k | return Status::OK(); | 436 | 4.43k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 65.6k | MutableColumnPtr& dst) override { | 411 | 65.6k | DCHECK(_parsed); | 412 | 65.6k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 65.6k | auto total = *n; | 418 | 65.6k | auto read_count = 0; | 419 | 65.6k | _buffer.resize(total); | 420 | 13.4M | for (size_t i = 0; i < total; ++i) { | 421 | 13.3M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 13.3M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1.58k | break; | 424 | 1.58k | } | 425 | | | 426 | 13.3M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 13.3M | } | 428 | | | 429 | 65.7k | if (LIKELY(read_count > 0)) { | 430 | 65.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 65.7k | read_count, *dst); | 432 | 65.7k | } | 433 | | | 434 | 65.6k | *n = read_count; | 435 | 65.6k | return Status::OK(); | 436 | 65.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 6.13k | MutableColumnPtr& dst) override { | 411 | 6.13k | DCHECK(_parsed); | 412 | 6.13k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 6.13k | auto total = *n; | 418 | 6.13k | auto read_count = 0; | 419 | 6.13k | _buffer.resize(total); | 420 | 14.9k | for (size_t i = 0; i < total; ++i) { | 421 | 8.80k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 8.80k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 8.80k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 8.80k | } | 428 | | | 429 | 6.14k | if (LIKELY(read_count > 0)) { | 430 | 6.14k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 6.14k | read_count, *dst); | 432 | 6.14k | } | 433 | | | 434 | 6.13k | *n = read_count; | 435 | 6.13k | return Status::OK(); | 436 | 6.13k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 68.6k | MutableColumnPtr& dst) override { | 411 | 68.6k | DCHECK(_parsed); | 412 | 68.6k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 68.6k | auto total = *n; | 418 | 68.6k | auto read_count = 0; | 419 | 68.6k | _buffer.resize(total); | 420 | 8.19M | for (size_t i = 0; i < total; ++i) { | 421 | 8.12M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 8.12M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2.65k | break; | 424 | 2.65k | } | 425 | | | 426 | 8.12M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 8.12M | } | 428 | | | 429 | 68.7k | if (LIKELY(read_count > 0)) { | 430 | 68.7k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 68.7k | read_count, *dst); | 432 | 68.7k | } | 433 | | | 434 | 68.6k | *n = read_count; | 435 | 68.6k | return Status::OK(); | 436 | 68.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 3.17k | MutableColumnPtr& dst) override { | 411 | 3.17k | DCHECK(_parsed); | 412 | 3.17k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 3.17k | auto total = *n; | 418 | 3.17k | auto read_count = 0; | 419 | 3.17k | _buffer.resize(total); | 420 | 15.7k | for (size_t i = 0; i < total; ++i) { | 421 | 12.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 12.5k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 12.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 12.5k | } | 428 | | | 429 | 3.17k | if (LIKELY(read_count > 0)) { | 430 | 3.17k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 3.17k | read_count, *dst); | 432 | 3.17k | } | 433 | | | 434 | 3.17k | *n = read_count; | 435 | 3.17k | return Status::OK(); | 436 | 3.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 5.27k | MutableColumnPtr& dst) override { | 411 | 5.27k | DCHECK(_parsed); | 412 | 5.27k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 5.27k | auto total = *n; | 418 | 5.27k | auto read_count = 0; | 419 | 5.27k | _buffer.resize(total); | 420 | 387k | for (size_t i = 0; i < total; ++i) { | 421 | 382k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 382k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 90 | break; | 424 | 90 | } | 425 | | | 426 | 382k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 382k | } | 428 | | | 429 | 5.28k | if (LIKELY(read_count > 0)) { | 430 | 5.28k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 5.28k | read_count, *dst); | 432 | 5.28k | } | 433 | | | 434 | 5.27k | *n = read_count; | 435 | 5.27k | return Status::OK(); | 436 | 5.27k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 93 | MutableColumnPtr& dst) override { | 411 | 93 | DCHECK(_parsed); | 412 | 93 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 93 | auto total = *n; | 418 | 93 | auto read_count = 0; | 419 | 93 | _buffer.resize(total); | 420 | 803 | for (size_t i = 0; i < total; ++i) { | 421 | 710 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 710 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 710 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 710 | } | 428 | | | 429 | 93 | if (LIKELY(read_count > 0)) { | 430 | 93 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 93 | read_count, *dst); | 432 | 93 | } | 433 | | | 434 | 93 | *n = read_count; | 435 | 93 | return Status::OK(); | 436 | 93 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.49k | MutableColumnPtr& dst) override { | 411 | 1.49k | DCHECK(_parsed); | 412 | 1.49k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.49k | auto total = *n; | 418 | 1.49k | auto read_count = 0; | 419 | 1.49k | _buffer.resize(total); | 420 | 503k | for (size_t i = 0; i < total; ++i) { | 421 | 501k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 501k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 14 | break; | 424 | 14 | } | 425 | | | 426 | 501k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 501k | } | 428 | | | 429 | 1.49k | if (LIKELY(read_count > 0)) { | 430 | 1.49k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.49k | read_count, *dst); | 432 | 1.49k | } | 433 | | | 434 | 1.49k | *n = read_count; | 435 | 1.49k | return Status::OK(); | 436 | 1.49k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 29.2k | MutableColumnPtr& dst) override { | 411 | 29.2k | DCHECK(_parsed); | 412 | 29.2k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 29.2k | auto total = *n; | 418 | 29.2k | auto read_count = 0; | 419 | 29.2k | _buffer.resize(total); | 420 | 6.75M | for (size_t i = 0; i < total; ++i) { | 421 | 6.72M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 6.72M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 790 | break; | 424 | 790 | } | 425 | | | 426 | 6.72M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 6.72M | } | 428 | | | 429 | 29.3k | if (LIKELY(read_count > 0)) { | 430 | 29.3k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 29.3k | read_count, *dst); | 432 | 29.3k | } | 433 | | | 434 | 29.2k | *n = read_count; | 435 | 29.2k | return Status::OK(); | 436 | 29.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 32.5k | MutableColumnPtr& dst) override { | 411 | 32.5k | DCHECK(_parsed); | 412 | 32.5k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 32.5k | auto total = *n; | 418 | 32.5k | auto read_count = 0; | 419 | 32.5k | _buffer.resize(total); | 420 | 10.1M | for (size_t i = 0; i < total; ++i) { | 421 | 10.1M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 10.1M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 180 | break; | 424 | 180 | } | 425 | | | 426 | 10.1M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 10.1M | } | 428 | | | 429 | 32.5k | if (LIKELY(read_count > 0)) { | 430 | 32.5k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 32.5k | read_count, *dst); | 432 | 32.5k | } | 433 | | | 434 | 32.5k | *n = read_count; | 435 | 32.5k | return Status::OK(); | 436 | 32.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.22k | MutableColumnPtr& dst) override { | 411 | 1.22k | DCHECK(_parsed); | 412 | 1.22k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.22k | auto total = *n; | 418 | 1.22k | auto read_count = 0; | 419 | 1.22k | _buffer.resize(total); | 420 | 4.26k | for (size_t i = 0; i < total; ++i) { | 421 | 3.03k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 3.03k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 3.03k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 3.03k | } | 428 | | | 429 | 1.23k | if (LIKELY(read_count > 0)) { | 430 | 1.23k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.23k | read_count, *dst); | 432 | 1.23k | } | 433 | | | 434 | 1.22k | *n = read_count; | 435 | 1.22k | return Status::OK(); | 436 | 1.22k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 1.69k | MutableColumnPtr& dst) override { | 411 | 1.69k | DCHECK(_parsed); | 412 | 1.69k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 1.69k | auto total = *n; | 418 | 1.69k | auto read_count = 0; | 419 | 1.69k | _buffer.resize(total); | 420 | 493k | for (size_t i = 0; i < total; ++i) { | 421 | 491k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 491k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 251 | break; | 424 | 251 | } | 425 | | | 426 | 491k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 491k | } | 428 | | | 429 | 1.70k | if (LIKELY(read_count > 0)) { | 430 | 1.70k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.70k | read_count, *dst); | 432 | 1.70k | } | 433 | | | 434 | 1.69k | *n = read_count; | 435 | 1.69k | return Status::OK(); | 436 | 1.69k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 12.4k | MutableColumnPtr& dst) override { | 411 | 12.4k | DCHECK(_parsed); | 412 | 12.4k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 12.4k | auto total = *n; | 418 | 12.4k | auto read_count = 0; | 419 | 12.4k | _buffer.resize(total); | 420 | 26.5k | for (size_t i = 0; i < total; ++i) { | 421 | 14.0k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.0k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 1 | break; | 424 | 1 | } | 425 | | | 426 | 14.0k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.0k | } | 428 | | | 429 | 12.4k | if (LIKELY(read_count > 0)) { | 430 | 12.4k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 12.4k | read_count, *dst); | 432 | 12.4k | } | 433 | | | 434 | 12.4k | *n = read_count; | 435 | 12.4k | return Status::OK(); | 436 | 12.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 168 | MutableColumnPtr& dst) override { | 411 | 168 | DCHECK(_parsed); | 412 | 168 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 168 | auto total = *n; | 418 | 168 | auto read_count = 0; | 419 | 168 | _buffer.resize(total); | 420 | 480 | for (size_t i = 0; i < total; ++i) { | 421 | 314 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 314 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 2 | break; | 424 | 2 | } | 425 | | | 426 | 312 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 312 | } | 428 | | | 429 | 168 | if (LIKELY(read_count > 0)) { | 430 | 168 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 168 | read_count, *dst); | 432 | 168 | } | 433 | | | 434 | 168 | *n = read_count; | 435 | 168 | return Status::OK(); | 436 | 168 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 4.60k | MutableColumnPtr& dst) override { | 411 | 4.60k | DCHECK(_parsed); | 412 | 4.60k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 4.60k | auto total = *n; | 418 | 4.60k | auto read_count = 0; | 419 | 4.60k | _buffer.resize(total); | 420 | 19.2k | for (size_t i = 0; i < total; ++i) { | 421 | 14.6k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 14.6k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 14.6k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 14.6k | } | 428 | | | 429 | 4.61k | if (LIKELY(read_count > 0)) { | 430 | 4.61k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 4.61k | read_count, *dst); | 432 | 4.61k | } | 433 | | | 434 | 4.60k | *n = read_count; | 435 | 4.60k | return Status::OK(); | 436 | 4.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 27.8k | MutableColumnPtr& dst) override { | 411 | 27.8k | DCHECK(_parsed); | 412 | 27.8k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 27.8k | auto total = *n; | 418 | 27.8k | auto read_count = 0; | 419 | 27.8k | _buffer.resize(total); | 420 | 24.6M | for (size_t i = 0; i < total; ++i) { | 421 | 24.6M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 24.6M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 5.87k | break; | 424 | 5.87k | } | 425 | | | 426 | 24.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 24.5M | } | 428 | | | 429 | 27.8k | if (LIKELY(read_count > 0)) { | 430 | 27.8k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 27.8k | read_count, *dst); | 432 | 27.8k | } | 433 | | | 434 | 27.8k | *n = read_count; | 435 | 27.8k | return Status::OK(); | 436 | 27.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 13.2k | MutableColumnPtr& dst) override { | 411 | 13.2k | DCHECK(_parsed); | 412 | 13.2k | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 13.2k | auto total = *n; | 418 | 13.2k | auto read_count = 0; | 419 | 13.2k | _buffer.resize(total); | 420 | 9.09M | for (size_t i = 0; i < total; ++i) { | 421 | 9.08M | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 9.08M | if (UNLIKELY(ord >= _num_elements)) { | 423 | 743 | break; | 424 | 743 | } | 425 | | | 426 | 9.08M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 9.08M | } | 428 | | | 429 | 13.2k | if (LIKELY(read_count > 0)) { | 430 | 13.2k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 13.2k | read_count, *dst); | 432 | 13.2k | } | 433 | | | 434 | 13.2k | *n = read_count; | 435 | 13.2k | return Status::OK(); | 436 | 13.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 999 | MutableColumnPtr& dst) override { | 411 | 999 | DCHECK(_parsed); | 412 | 999 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 999 | auto total = *n; | 418 | 999 | auto read_count = 0; | 419 | 999 | _buffer.resize(total); | 420 | 2.98k | for (size_t i = 0; i < total; ++i) { | 421 | 1.99k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.99k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 6 | break; | 424 | 6 | } | 425 | | | 426 | 1.98k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.98k | } | 428 | | | 429 | 1.00k | if (LIKELY(read_count > 0)) { | 430 | 1.00k | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 1.00k | read_count, *dst); | 432 | 1.00k | } | 433 | | | 434 | 999 | *n = read_count; | 435 | 999 | return Status::OK(); | 436 | 999 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 302 | MutableColumnPtr& dst) override { | 411 | 302 | DCHECK(_parsed); | 412 | 302 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 302 | auto total = *n; | 418 | 302 | auto read_count = 0; | 419 | 302 | _buffer.resize(total); | 420 | 999 | for (size_t i = 0; i < total; ++i) { | 421 | 697 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 697 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 0 | break; | 424 | 0 | } | 425 | | | 426 | 697 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 697 | } | 428 | | | 429 | 302 | if (LIKELY(read_count > 0)) { | 430 | 302 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 302 | read_count, *dst); | 432 | 302 | } | 433 | | | 434 | 302 | *n = read_count; | 435 | 302 | return Status::OK(); | 436 | 302 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 340 | MutableColumnPtr& dst) override { | 411 | 340 | DCHECK(_parsed); | 412 | 340 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 340 | auto total = *n; | 418 | 340 | auto read_count = 0; | 419 | 340 | _buffer.resize(total); | 420 | 1.34k | for (size_t i = 0; i < total; ++i) { | 421 | 1.01k | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 1.01k | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 1.00k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 1.00k | } | 428 | | | 429 | 340 | if (LIKELY(read_count > 0)) { | 430 | 340 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 340 | read_count, *dst); | 432 | 340 | } | 433 | | | 434 | 340 | *n = read_count; | 435 | 340 | return Status::OK(); | 436 | 340 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 410 | 547 | MutableColumnPtr& dst) override { | 411 | 547 | DCHECK(_parsed); | 412 | 547 | if (*n == 0) [[unlikely]] { | 413 | 0 | *n = 0; | 414 | 0 | return Status::OK(); | 415 | 0 | } | 416 | | | 417 | 547 | auto total = *n; | 418 | 547 | auto read_count = 0; | 419 | 547 | _buffer.resize(total); | 420 | 1.33k | for (size_t i = 0; i < total; ++i) { | 421 | 789 | ordinal_t ord = rowids[i] - page_first_ordinal; | 422 | 789 | if (UNLIKELY(ord >= _num_elements)) { | 423 | 3 | break; | 424 | 3 | } | 425 | | | 426 | 786 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 427 | 786 | } | 428 | | | 429 | 547 | if (LIKELY(read_count > 0)) { | 430 | 547 | StorageLayout<Type>::storage_to_column(reinterpret_cast<const uint8_t*>(_buffer.data()), | 431 | 547 | read_count, *dst); | 432 | 547 | } | 433 | | | 434 | 547 | *n = read_count; | 435 | 547 | return Status::OK(); | 436 | 547 | } |
|
437 | | |
438 | 53.8k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
439 | 53.8k | return next_batch<false>(n, dst); |
440 | 53.8k | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 438 | 53.8k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 439 | 53.8k | return next_batch<false>(n, dst); | 440 | 53.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
441 | | |
442 | 4 | size_t count() const override { return _num_elements; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 442 | 4 | size_t count() const override { return _num_elements; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE5countEv |
443 | | |
444 | 1.66M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 444 | 801k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 444 | 779 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 444 | 252 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 444 | 29.2k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 444 | 312 | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 444 | 304 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 444 | 887 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv Line | Count | Source | 444 | 184 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 444 | 219k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 444 | 236k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 444 | 34.5k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 444 | 316 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 444 | 207k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 444 | 1.13k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 444 | 61 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 444 | 3.59k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 444 | 1.24k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 444 | 119k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 444 | 368 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 444 | 90 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 444 | 98 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 444 | 11.5k | size_t current_index() const override { return _cur_index; } |
|
445 | | |
446 | 114M | char* get_data(size_t index) const { |
447 | 114M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
448 | 114M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 446 | 38.4M | char* get_data(size_t index) const { | 447 | 38.4M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 38.4M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 446 | 1.00M | char* get_data(size_t index) const { | 447 | 1.00M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.00M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 446 | 50.5k | char* get_data(size_t index) const { | 447 | 50.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 50.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 446 | 14.1M | char* get_data(size_t index) const { | 447 | 14.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 14.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 446 | 21.2k | char* get_data(size_t index) const { | 447 | 21.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 21.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 446 | 8.27M | char* get_data(size_t index) const { | 447 | 8.27M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 8.27M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 446 | 19.6k | char* get_data(size_t index) const { | 447 | 19.6k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 19.6k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 446 | 403k | char* get_data(size_t index) const { | 447 | 403k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 403k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 446 | 803 | char* get_data(size_t index) const { | 447 | 803 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 803 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 446 | 505k | char* get_data(size_t index) const { | 447 | 505k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 505k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 446 | 7.09M | char* get_data(size_t index) const { | 447 | 7.09M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 7.09M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 446 | 10.1M | char* get_data(size_t index) const { | 447 | 10.1M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 10.1M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 446 | 5.17k | char* get_data(size_t index) const { | 447 | 5.17k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.17k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 446 | 493k | char* get_data(size_t index) const { | 447 | 493k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 493k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 446 | 22.2k | char* get_data(size_t index) const { | 447 | 22.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.2k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 446 | 1.62k | char* get_data(size_t index) const { | 447 | 1.62k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.62k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 446 | 22.5k | char* get_data(size_t index) const { | 447 | 22.5k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 22.5k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 446 | 24.6M | char* get_data(size_t index) const { | 447 | 24.6M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 24.6M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 446 | 9.10M | char* get_data(size_t index) const { | 447 | 9.10M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 9.10M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 446 | 5.20k | char* get_data(size_t index) const { | 447 | 5.20k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 5.20k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 446 | 1.32k | char* get_data(size_t index) const { | 447 | 1.32k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.32k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 446 | 1.66k | char* get_data(size_t index) const { | 447 | 1.66k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 1.66k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 446 | 95.2k | char* get_data(size_t index) const { | 447 | 95.2k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 448 | 95.2k | } |
|
449 | | |
450 | | private: |
451 | | void _copy_next_values(size_t n, void* data) { |
452 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
453 | | } |
454 | | |
455 | | using CppType = typename TypeTraits<Type>::CppType; |
456 | | |
457 | | static constexpr size_t SIZE_OF_TYPE = TypeTraits<Type>::size; |
458 | | |
459 | | Slice _data; |
460 | | PageDecoderOptions _options; |
461 | | bool _parsed; |
462 | | size_t _num_elements; |
463 | | size_t _num_element_after_padding; |
464 | | |
465 | | int _size_of_element; |
466 | | size_t _cur_index; |
467 | | |
468 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
469 | | |
470 | | friend class BinaryDictPageDecoder; |
471 | | }; |
472 | | |
473 | | } // namespace segment_v2 |
474 | | } // namespace doris |