be/src/storage/segment/bitshuffle_page.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <glog/logging.h> |
21 | | |
22 | | #include <algorithm> |
23 | | #include <cstddef> |
24 | | #include <cstdint> |
25 | | #include <cstring> |
26 | | #include <ostream> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/cast_set.h" |
30 | | #include "common/compiler_util.h" // IWYU pragma: keep |
31 | | #include "common/status.h" |
32 | | #include "core/column/column.h" |
33 | | #include "core/data_type/data_type.h" |
34 | | #include "core/types.h" |
35 | | #include "storage/olap_common.h" |
36 | | #include "storage/segment/bitshuffle_wrapper.h" |
37 | | #include "storage/segment/common.h" |
38 | | #include "storage/segment/options.h" |
39 | | #include "storage/segment/page_builder.h" |
40 | | #include "storage/segment/page_decoder.h" |
41 | | #include "storage/types.h" |
42 | | #include "util/alignment.h" |
43 | | #include "util/coding.h" |
44 | | #include "util/faststring.h" |
45 | | #include "util/slice.h" |
46 | | |
47 | | namespace doris { |
48 | | namespace segment_v2 { |
49 | | |
50 | | enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 }; |
51 | | |
52 | | void warn_with_bitshuffle_error(int64_t val); |
53 | | |
54 | | // BitshufflePageBuilder bitshuffles and compresses the bits of fixed |
55 | | // size type blocks with lz4. |
56 | | // |
57 | | // The page format is as follows: |
58 | | // |
59 | | // 1. Header: (16 bytes total) |
60 | | // |
61 | | // <num_elements> [32-bit] |
62 | | // The number of elements encoded in the page. |
63 | | // |
64 | | // <compressed_size> [32-bit] |
65 | | // The post-compression size of the page, including this header. |
66 | | // |
67 | | // <padded_num_elements> [32-bit] |
68 | | // Padding is needed to meet the requirements of the bitshuffle |
69 | | // library such that the input/output is a multiple of 8. Some |
70 | | // ignored elements are appended to the end of the page if necessary |
71 | | // to meet this requirement. |
72 | | // |
73 | | // This header field is the post-padding element count. |
74 | | // |
75 | | // <elem_size_bytes> [32-bit] |
76 | | // The size of the elements, in bytes, as actually encoded. In the |
77 | | // case that all of the data in a page can fit into a smaller |
78 | | // integer type, then we may choose to encode that smaller type |
79 | | // to save CPU costs. |
80 | | // |
81 | | // This is currently only implemented in the UINT32 page type. |
82 | | // |
83 | | // NOTE: all on-disk ints are encoded little-endian |
84 | | // |
85 | | // 2. Element data |
86 | | // |
87 | | // The header is followed by the bitshuffle-compressed element data. |
88 | | // |
89 | | template <FieldType Type> |
90 | | class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> { |
91 | | public: |
92 | | using Self = BitshufflePageBuilder<Type>; |
93 | | friend class PageBuilderHelper<Self>; |
94 | | |
95 | 842k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 58.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 9.55k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 362k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 187k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 12.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 64.5k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv Line | Count | Source | 95 | 1 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 95 | 7.13k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 7.87k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 95 | 2 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 95 | 337 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 95 | 37.4k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 95 | 44.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 95 | 326 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 95 | 434 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.67k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 322 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.70k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 17.0k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 95 | 1.20k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 95 | 703 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 95 | 701 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 95 | 617 | Status init() override { return reset(); } |
|
96 | | |
97 | 139M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 66.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 11.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 138M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 272k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 12.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 64.4k | 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 | 97 | 6.76k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 7.80k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Line | Count | Source | 97 | 194 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Line | Count | Source | 97 | 428 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 44.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 43.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Line | Count | Source | 97 | 327 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Line | Count | Source | 97 | 555 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.67k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 296 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.22k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 24.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 18.0k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Line | Count | Source | 97 | 1.46k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Line | Count | Source | 97 | 667 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv Line | Count | Source | 97 | 690 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12is_page_fullEv Line | Count | Source | 97 | 26.6k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.35M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.35M | return add_internal<false>(vals, count); |
101 | 1.35M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 66.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 66.2k | return add_internal<false>(vals, count); | 101 | 66.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 11.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.9k | return add_internal<false>(vals, count); | 101 | 11.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 739k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 739k | return add_internal<false>(vals, count); | 101 | 739k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 272k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 272k | return add_internal<false>(vals, count); | 101 | 272k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 12.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 12.4k | return add_internal<false>(vals, count); | 101 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 64.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 64.4k | return add_internal<false>(vals, count); | 101 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 6.76k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 6.76k | return add_internal<false>(vals, count); | 101 | 6.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 7.80k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.80k | return add_internal<false>(vals, count); | 101 | 7.80k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm Line | Count | Source | 99 | 194 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 194 | return add_internal<false>(vals, count); | 101 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm Line | Count | Source | 99 | 428 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 428 | return add_internal<false>(vals, count); | 101 | 428 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 44.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.6k | return add_internal<false>(vals, count); | 101 | 44.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 43.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 43.9k | return add_internal<false>(vals, count); | 101 | 43.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE3addEPKhPm Line | Count | Source | 99 | 327 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 327 | return add_internal<false>(vals, count); | 101 | 327 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm Line | Count | Source | 99 | 555 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 555 | return add_internal<false>(vals, count); | 101 | 555 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.66k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.66k | return add_internal<false>(vals, count); | 101 | 7.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 297 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 297 | return add_internal<false>(vals, count); | 101 | 297 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.22k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.22k | return add_internal<false>(vals, count); | 101 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 24.5k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 24.5k | return add_internal<false>(vals, count); | 101 | 24.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 18.0k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 18.0k | return add_internal<false>(vals, count); | 101 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm Line | Count | Source | 99 | 1.46k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 1.46k | return add_internal<false>(vals, count); | 101 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm Line | Count | Source | 99 | 667 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 667 | return add_internal<false>(vals, count); | 101 | 667 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm Line | Count | Source | 99 | 690 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 690 | return add_internal<false>(vals, count); | 101 | 690 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE3addEPKhPm Line | Count | Source | 99 | 26.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.6k | return add_internal<false>(vals, count); | 101 | 26.6k | } |
|
102 | | |
103 | 138M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 138M | return add_internal<true>(vals, count); |
105 | 138M | } |
106 | | |
107 | | template <bool single> |
108 | 136M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 136M | DCHECK(!_finished); |
110 | 136M | if (_remain_element_capacity == 0) { |
111 | 0 | *num_written = 0; |
112 | 0 | return Status::OK(); |
113 | 0 | } |
114 | | |
115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. |
116 | | // the row count of a single men tbl could be very large. |
117 | | // a real log: |
118 | | /* |
119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 |
120 | | */ |
121 | | // This is not a very wide table, actually it just has two columns, int and array<float> |
122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. |
123 | | // 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). |
124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. |
125 | 136M | uint32_t to_add = cast_set<UInt32>( |
126 | 136M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); |
127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE |
128 | 136M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 136M | size_t orig_size = _data.size(); |
130 | | // This may need a large memory, should return error if could not allocated |
131 | | // successfully, to avoid BE OOM. |
132 | 136M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 140M | _count += to_add; |
134 | 140M | _remain_element_capacity -= to_add; |
135 | 140M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 140M | *num_written = to_add; |
138 | 140M | if constexpr (single) { |
139 | | if constexpr (SIZE_OF_TYPE == 1) { |
140 | | _data[orig_size] = *vals; |
141 | | return Status::OK(); |
142 | | } else if constexpr (SIZE_OF_TYPE == 2) { |
143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = |
144 | | *reinterpret_cast<const uint16_t*>(vals); |
145 | | return Status::OK(); |
146 | 138M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 138M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 138M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 138M | return Status::OK(); |
150 | | } else if constexpr (SIZE_OF_TYPE == 8) { |
151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = |
152 | | *reinterpret_cast<const uint64_t*>(vals); |
153 | | return Status::OK(); |
154 | | } |
155 | 138M | } |
156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false |
157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); |
158 | 140M | return Status::OK(); |
159 | 136M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 66.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 66.2k | DCHECK(!_finished); | 110 | 66.2k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 66.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 66.2k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 66.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 66.2k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 66.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 66.2k | _count += to_add; | 134 | 66.2k | _remain_element_capacity -= to_add; | 135 | 66.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 66.2k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 66.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 66.2k | return Status::OK(); | 159 | 66.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.9k | DCHECK(!_finished); | 110 | 11.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 11.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 11.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 11.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.9k | _count += to_add; | 134 | 11.9k | _remain_element_capacity -= to_add; | 135 | 11.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 11.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.9k | return Status::OK(); | 159 | 11.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 739k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 739k | DCHECK(!_finished); | 110 | 739k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 739k | uint32_t to_add = cast_set<UInt32>( | 126 | 739k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 739k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 739k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 739k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 739k | _count += to_add; | 134 | 739k | _remain_element_capacity -= to_add; | 135 | 739k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 739k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 739k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 739k | return Status::OK(); | 159 | 739k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 272k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 272k | DCHECK(!_finished); | 110 | 272k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 272k | uint32_t to_add = cast_set<UInt32>( | 126 | 272k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 272k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 272k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 272k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 272k | _count += to_add; | 134 | 272k | _remain_element_capacity -= to_add; | 135 | 272k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 272k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 272k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 272k | return Status::OK(); | 159 | 272k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 12.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 12.4k | DCHECK(!_finished); | 110 | 12.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 12.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 12.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 12.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 12.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 12.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 12.4k | _count += to_add; | 134 | 12.4k | _remain_element_capacity -= to_add; | 135 | 12.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 12.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 12.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 12.4k | return Status::OK(); | 159 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 64.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 64.4k | DCHECK(!_finished); | 110 | 64.4k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 64.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 64.4k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 64.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 64.4k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 64.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 64.4k | _count += to_add; | 134 | 64.4k | _remain_element_capacity -= to_add; | 135 | 64.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 64.4k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 64.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 64.4k | return Status::OK(); | 159 | 64.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 6.76k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 6.76k | DCHECK(!_finished); | 110 | 6.76k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 6.76k | uint32_t to_add = cast_set<UInt32>( | 126 | 6.76k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 6.76k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 6.76k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 6.76k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 6.76k | _count += to_add; | 134 | 6.76k | _remain_element_capacity -= to_add; | 135 | 6.76k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 6.76k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 6.76k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 6.76k | return Status::OK(); | 159 | 6.76k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.80k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.80k | DCHECK(!_finished); | 110 | 7.80k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.80k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.80k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.80k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.80k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.80k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.80k | _count += to_add; | 134 | 7.80k | _remain_element_capacity -= to_add; | 135 | 7.80k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.80k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.80k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.80k | return Status::OK(); | 159 | 7.80k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 194 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 194 | DCHECK(!_finished); | 110 | 194 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 194 | uint32_t to_add = cast_set<UInt32>( | 126 | 194 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 194 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 194 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 194 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 194 | _count += to_add; | 134 | 194 | _remain_element_capacity -= to_add; | 135 | 194 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 194 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 194 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 194 | return Status::OK(); | 159 | 194 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 428 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 428 | DCHECK(!_finished); | 110 | 428 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 428 | uint32_t to_add = cast_set<UInt32>( | 126 | 428 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 428 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 428 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 428 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 428 | _count += to_add; | 134 | 428 | _remain_element_capacity -= to_add; | 135 | 428 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 428 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 428 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 428 | return Status::OK(); | 159 | 428 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.6k | DCHECK(!_finished); | 110 | 44.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 44.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 44.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 44.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.6k | _count += to_add; | 134 | 44.6k | _remain_element_capacity -= to_add; | 135 | 44.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 44.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.6k | return Status::OK(); | 159 | 44.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 43.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 43.9k | DCHECK(!_finished); | 110 | 43.9k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 43.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 43.9k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 43.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 43.9k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 43.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 43.9k | _count += to_add; | 134 | 43.9k | _remain_element_capacity -= to_add; | 135 | 43.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 43.9k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 43.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 43.9k | return Status::OK(); | 159 | 43.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 327 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 327 | DCHECK(!_finished); | 110 | 327 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 327 | uint32_t to_add = cast_set<UInt32>( | 126 | 327 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 327 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 327 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 327 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 327 | _count += to_add; | 134 | 327 | _remain_element_capacity -= to_add; | 135 | 327 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 327 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 327 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 327 | return Status::OK(); | 159 | 327 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 555 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 555 | DCHECK(!_finished); | 110 | 555 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 555 | uint32_t to_add = cast_set<UInt32>( | 126 | 555 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 555 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 555 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 555 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 555 | _count += to_add; | 134 | 555 | _remain_element_capacity -= to_add; | 135 | 555 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 555 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 555 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 555 | return Status::OK(); | 159 | 555 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.66k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.66k | DCHECK(!_finished); | 110 | 7.66k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 7.66k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.66k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 7.66k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.66k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 7.66k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.66k | _count += to_add; | 134 | 7.66k | _remain_element_capacity -= to_add; | 135 | 7.66k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.66k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 7.66k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.66k | return Status::OK(); | 159 | 7.66k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 297 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 297 | DCHECK(!_finished); | 110 | 297 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 297 | uint32_t to_add = cast_set<UInt32>( | 126 | 297 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 297 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 297 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 297 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 297 | _count += to_add; | 134 | 297 | _remain_element_capacity -= to_add; | 135 | 297 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 297 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 297 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 297 | return Status::OK(); | 159 | 297 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.22k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.22k | DCHECK(!_finished); | 110 | 5.22k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 5.22k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.22k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 5.22k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.22k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 5.22k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.22k | _count += to_add; | 134 | 5.22k | _remain_element_capacity -= to_add; | 135 | 5.22k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.22k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 5.22k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.22k | return Status::OK(); | 159 | 5.22k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 24.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 24.5k | DCHECK(!_finished); | 110 | 24.5k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 24.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 24.5k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 24.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 24.5k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 24.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 24.5k | _count += to_add; | 134 | 24.5k | _remain_element_capacity -= to_add; | 135 | 24.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 24.5k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 24.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 24.5k | return Status::OK(); | 159 | 24.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 18.0k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 18.0k | DCHECK(!_finished); | 110 | 18.0k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 18.0k | uint32_t to_add = cast_set<UInt32>( | 126 | 18.0k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 18.0k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 18.0k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 18.0k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 18.0k | _count += to_add; | 134 | 18.0k | _remain_element_capacity -= to_add; | 135 | 18.0k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 18.0k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 18.0k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 18.0k | return Status::OK(); | 159 | 18.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 1.46k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 1.46k | DCHECK(!_finished); | 110 | 1.46k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 1.46k | uint32_t to_add = cast_set<UInt32>( | 126 | 1.46k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 1.46k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 1.46k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 1.46k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 1.46k | _count += to_add; | 134 | 1.46k | _remain_element_capacity -= to_add; | 135 | 1.46k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 1.46k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 1.46k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 1.46k | return Status::OK(); | 159 | 1.46k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 667 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 667 | DCHECK(!_finished); | 110 | 667 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 667 | uint32_t to_add = cast_set<UInt32>( | 126 | 667 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 667 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 667 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 667 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 667 | _count += to_add; | 134 | 667 | _remain_element_capacity -= to_add; | 135 | 667 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 667 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 667 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 667 | return Status::OK(); | 159 | 667 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 690 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 690 | DCHECK(!_finished); | 110 | 690 | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 690 | uint32_t to_add = cast_set<UInt32>( | 126 | 690 | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 690 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 690 | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 690 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 690 | _count += to_add; | 134 | 690 | _remain_element_capacity -= to_add; | 135 | 690 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 690 | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 690 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 690 | return Status::OK(); | 159 | 690 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 26.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.6k | DCHECK(!_finished); | 110 | 26.6k | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 26.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.6k | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 26.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.6k | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 26.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.6k | _count += to_add; | 134 | 26.6k | _remain_element_capacity -= to_add; | 135 | 26.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.6k | *num_written = to_add; | 138 | | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | | *reinterpret_cast<const uint32_t*>(vals); | 149 | | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 26.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.6k | return Status::OK(); | 159 | 26.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 135M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 135M | DCHECK(!_finished); | 110 | 135M | if (_remain_element_capacity == 0) { | 111 | 0 | *num_written = 0; | 112 | 0 | return Status::OK(); | 113 | 0 | } | 114 | | | 115 | | // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB. | 116 | | // the row count of a single men tbl could be very large. | 117 | | // a real log: | 118 | | /* | 119 | | I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968 | 120 | | */ | 121 | | // This is not a very wide table, actually it just has two columns, int and array<float> | 122 | | // The write process of column array has two steps: write nested column(column float here), and write offsets column. | 123 | | // 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). | 124 | | // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX. | 125 | 135M | uint32_t to_add = cast_set<UInt32>( | 126 | 135M | std::min(cast_set<size_t>(_remain_element_capacity), *num_written)); | 127 | | // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE | 128 | 135M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 135M | size_t orig_size = _data.size(); | 130 | | // This may need a large memory, should return error if could not allocated | 131 | | // successfully, to avoid BE OOM. | 132 | 135M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 138M | _count += to_add; | 134 | 138M | _remain_element_capacity -= to_add; | 135 | 138M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 138M | *num_written = to_add; | 138 | 138M | if constexpr (single) { | 139 | | if constexpr (SIZE_OF_TYPE == 1) { | 140 | | _data[orig_size] = *vals; | 141 | | return Status::OK(); | 142 | | } else if constexpr (SIZE_OF_TYPE == 2) { | 143 | | *reinterpret_cast<uint16_t*>(&_data[orig_size]) = | 144 | | *reinterpret_cast<const uint16_t*>(vals); | 145 | | return Status::OK(); | 146 | 138M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 138M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 138M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 138M | return Status::OK(); | 150 | | } else if constexpr (SIZE_OF_TYPE == 8) { | 151 | | *reinterpret_cast<uint64_t*>(&_data[orig_size]) = | 152 | | *reinterpret_cast<const uint64_t*>(vals); | 153 | | return Status::OK(); | 154 | | } | 155 | 138M | } | 156 | | // when single is true and SIZE_OF_TYPE > 8 or single is false | 157 | 0 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 138M | return Status::OK(); | 159 | 135M | } |
|
160 | | |
161 | 841k | Status finish(OwnedSlice* slice) override { |
162 | 841k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 841k | return Status::OK(); |
164 | 841k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 57.4k | Status finish(OwnedSlice* slice) override { | 162 | 57.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 57.4k | return Status::OK(); | 164 | 57.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 8.81k | Status finish(OwnedSlice* slice) override { | 162 | 8.81k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 8.81k | return Status::OK(); | 164 | 8.81k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 353k | Status finish(OwnedSlice* slice) override { | 162 | 353k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 353k | return Status::OK(); | 164 | 353k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 192k | Status finish(OwnedSlice* slice) override { | 162 | 192k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 192k | return Status::OK(); | 164 | 192k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 12.4k | Status finish(OwnedSlice* slice) override { | 162 | 12.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 12.4k | return Status::OK(); | 164 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 64.2k | Status finish(OwnedSlice* slice) override { | 162 | 64.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 64.2k | return Status::OK(); | 164 | 64.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6.43k | Status finish(OwnedSlice* slice) override { | 162 | 6.43k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6.43k | return Status::OK(); | 164 | 6.43k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.53k | Status finish(OwnedSlice* slice) override { | 162 | 7.53k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.53k | return Status::OK(); | 164 | 7.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 6 | Status finish(OwnedSlice* slice) override { | 162 | 6 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 6 | return Status::OK(); | 164 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 352 | Status finish(OwnedSlice* slice) override { | 162 | 352 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 352 | return Status::OK(); | 164 | 352 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.1k | Status finish(OwnedSlice* slice) override { | 162 | 38.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.1k | return Status::OK(); | 164 | 38.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.1k | Status finish(OwnedSlice* slice) override { | 162 | 43.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.1k | return Status::OK(); | 164 | 43.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 269 | Status finish(OwnedSlice* slice) override { | 162 | 269 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 269 | return Status::OK(); | 164 | 269 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 593 | Status finish(OwnedSlice* slice) override { | 162 | 593 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 593 | return Status::OK(); | 164 | 593 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.71k | Status finish(OwnedSlice* slice) override { | 162 | 7.71k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.71k | return Status::OK(); | 164 | 7.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 247 | Status finish(OwnedSlice* slice) override { | 162 | 247 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 247 | return Status::OK(); | 164 | 247 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.69k | Status finish(OwnedSlice* slice) override { | 162 | 9.69k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.70k | return Status::OK(); | 164 | 9.69k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 18.7k | Status finish(OwnedSlice* slice) override { | 162 | 18.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 18.7k | return Status::OK(); | 164 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.1k | Status finish(OwnedSlice* slice) override { | 162 | 17.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.1k | return Status::OK(); | 164 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 1.14k | Status finish(OwnedSlice* slice) override { | 162 | 1.14k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 1.14k | return Status::OK(); | 164 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 621 | Status finish(OwnedSlice* slice) override { | 162 | 621 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 621 | return Status::OK(); | 164 | 621 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 628 | Status finish(OwnedSlice* slice) override { | 162 | 628 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 628 | return Status::OK(); | 164 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 722 | Status finish(OwnedSlice* slice) override { | 162 | 722 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 722 | return Status::OK(); | 164 | 722 | } |
|
165 | | |
166 | 1.97M | Status reset() override { |
167 | 1.97M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.97M | size_t block_size = _options.data_page_size; |
169 | 1.97M | _count = 0; |
170 | 1.97M | _raw_data_size = 0; |
171 | 1.97M | _data.clear(); |
172 | 1.97M | _data.reserve(block_size); |
173 | 1.97M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.97M | << "buffer must be naturally-aligned"; |
175 | 1.97M | _buffer.clear(); |
176 | 1.97M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.97M | _finished = false; |
178 | 1.97M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.97M | }); |
180 | 1.98M | return Status::OK(); |
181 | 1.97M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 115k | Status reset() override { | 167 | 115k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 115k | size_t block_size = _options.data_page_size; | 169 | 115k | _count = 0; | 170 | 115k | _raw_data_size = 0; | 171 | 115k | _data.clear(); | 172 | 115k | _data.reserve(block_size); | 173 | 115k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 115k | << "buffer must be naturally-aligned"; | 175 | 115k | _buffer.clear(); | 176 | 115k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 115k | _finished = false; | 178 | 115k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 115k | }); | 180 | 115k | return Status::OK(); | 181 | 115k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 18.3k | Status reset() override { | 167 | 18.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 18.3k | size_t block_size = _options.data_page_size; | 169 | 18.3k | _count = 0; | 170 | 18.3k | _raw_data_size = 0; | 171 | 18.3k | _data.clear(); | 172 | 18.3k | _data.reserve(block_size); | 173 | 18.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 18.3k | << "buffer must be naturally-aligned"; | 175 | 18.3k | _buffer.clear(); | 176 | 18.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 18.3k | _finished = false; | 178 | 18.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 18.3k | }); | 180 | 18.3k | return Status::OK(); | 181 | 18.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 1.00M | Status reset() override { | 167 | 1.00M | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.00M | size_t block_size = _options.data_page_size; | 169 | 1.00M | _count = 0; | 170 | 1.00M | _raw_data_size = 0; | 171 | 1.00M | _data.clear(); | 172 | 1.00M | _data.reserve(block_size); | 173 | 1.00M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.00M | << "buffer must be naturally-aligned"; | 175 | 1.00M | _buffer.clear(); | 176 | 1.00M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.00M | _finished = false; | 178 | 1.00M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.00M | }); | 180 | 1.01M | return Status::OK(); | 181 | 1.00M | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 379k | Status reset() override { | 167 | 379k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 379k | size_t block_size = _options.data_page_size; | 169 | 379k | _count = 0; | 170 | 379k | _raw_data_size = 0; | 171 | 379k | _data.clear(); | 172 | 379k | _data.reserve(block_size); | 173 | 379k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 379k | << "buffer must be naturally-aligned"; | 175 | 379k | _buffer.clear(); | 176 | 379k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 379k | _finished = false; | 178 | 379k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 379k | }); | 180 | 380k | return Status::OK(); | 181 | 379k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 24.9k | Status reset() override { | 167 | 24.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 24.9k | size_t block_size = _options.data_page_size; | 169 | 24.9k | _count = 0; | 170 | 24.9k | _raw_data_size = 0; | 171 | 24.9k | _data.clear(); | 172 | 24.9k | _data.reserve(block_size); | 173 | 24.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 24.9k | << "buffer must be naturally-aligned"; | 175 | 24.9k | _buffer.clear(); | 176 | 24.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 24.9k | _finished = false; | 178 | 24.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 24.9k | }); | 180 | 24.9k | return Status::OK(); | 181 | 24.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 128k | Status reset() override { | 167 | 128k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 128k | size_t block_size = _options.data_page_size; | 169 | 128k | _count = 0; | 170 | 128k | _raw_data_size = 0; | 171 | 128k | _data.clear(); | 172 | 128k | _data.reserve(block_size); | 173 | 128k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 128k | << "buffer must be naturally-aligned"; | 175 | 128k | _buffer.clear(); | 176 | 128k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 128k | _finished = false; | 178 | 128k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 128k | }); | 180 | 129k | return Status::OK(); | 181 | 128k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv Line | Count | Source | 166 | 1 | Status reset() override { | 167 | 1 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1 | size_t block_size = _options.data_page_size; | 169 | 1 | _count = 0; | 170 | 1 | _raw_data_size = 0; | 171 | 1 | _data.clear(); | 172 | 1 | _data.reserve(block_size); | 173 | 1 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1 | << "buffer must be naturally-aligned"; | 175 | 1 | _buffer.clear(); | 176 | 1 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1 | _finished = false; | 178 | 1 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1 | }); | 180 | 1 | return Status::OK(); | 181 | 1 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 166 | 13.5k | Status reset() override { | 167 | 13.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 13.5k | size_t block_size = _options.data_page_size; | 169 | 13.5k | _count = 0; | 170 | 13.5k | _raw_data_size = 0; | 171 | 13.5k | _data.clear(); | 172 | 13.5k | _data.reserve(block_size); | 173 | 13.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 13.5k | << "buffer must be naturally-aligned"; | 175 | 13.5k | _buffer.clear(); | 176 | 13.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 13.5k | _finished = false; | 178 | 13.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 13.5k | }); | 180 | 13.5k | return Status::OK(); | 181 | 13.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 15.4k | Status reset() override { | 167 | 15.4k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.4k | size_t block_size = _options.data_page_size; | 169 | 15.4k | _count = 0; | 170 | 15.4k | _raw_data_size = 0; | 171 | 15.4k | _data.clear(); | 172 | 15.4k | _data.reserve(block_size); | 173 | 15.4k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.4k | << "buffer must be naturally-aligned"; | 175 | 15.4k | _buffer.clear(); | 176 | 15.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.4k | _finished = false; | 178 | 15.4k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.4k | }); | 180 | 15.4k | return Status::OK(); | 181 | 15.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv Line | Count | Source | 166 | 8 | Status reset() override { | 167 | 8 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 8 | size_t block_size = _options.data_page_size; | 169 | 8 | _count = 0; | 170 | 8 | _raw_data_size = 0; | 171 | 8 | _data.clear(); | 172 | 8 | _data.reserve(block_size); | 173 | 8 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 8 | << "buffer must be naturally-aligned"; | 175 | 8 | _buffer.clear(); | 176 | 8 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 8 | _finished = false; | 178 | 8 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 8 | }); | 180 | 8 | return Status::OK(); | 181 | 8 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv Line | Count | Source | 166 | 689 | Status reset() override { | 167 | 689 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 689 | size_t block_size = _options.data_page_size; | 169 | 689 | _count = 0; | 170 | 689 | _raw_data_size = 0; | 171 | 689 | _data.clear(); | 172 | 689 | _data.reserve(block_size); | 173 | 689 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 689 | << "buffer must be naturally-aligned"; | 175 | 689 | _buffer.clear(); | 176 | 689 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 689 | _finished = false; | 178 | 689 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 689 | }); | 180 | 689 | return Status::OK(); | 181 | 689 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.5k | Status reset() override { | 167 | 75.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.5k | size_t block_size = _options.data_page_size; | 169 | 75.5k | _count = 0; | 170 | 75.5k | _raw_data_size = 0; | 171 | 75.5k | _data.clear(); | 172 | 75.5k | _data.reserve(block_size); | 173 | 75.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.5k | << "buffer must be naturally-aligned"; | 175 | 75.5k | _buffer.clear(); | 176 | 75.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.5k | _finished = false; | 178 | 75.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.5k | }); | 180 | 75.6k | return Status::OK(); | 181 | 75.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.3k | Status reset() override { | 167 | 87.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.3k | size_t block_size = _options.data_page_size; | 169 | 87.3k | _count = 0; | 170 | 87.3k | _raw_data_size = 0; | 171 | 87.3k | _data.clear(); | 172 | 87.3k | _data.reserve(block_size); | 173 | 87.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.3k | << "buffer must be naturally-aligned"; | 175 | 87.3k | _buffer.clear(); | 176 | 87.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.3k | _finished = false; | 178 | 87.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.3k | }); | 180 | 87.3k | return Status::OK(); | 181 | 87.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5resetEv Line | Count | Source | 166 | 594 | Status reset() override { | 167 | 594 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 594 | size_t block_size = _options.data_page_size; | 169 | 594 | _count = 0; | 170 | 594 | _raw_data_size = 0; | 171 | 594 | _data.clear(); | 172 | 594 | _data.reserve(block_size); | 173 | 594 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 594 | << "buffer must be naturally-aligned"; | 175 | 594 | _buffer.clear(); | 176 | 594 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 594 | _finished = false; | 178 | 594 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 594 | }); | 180 | 596 | return Status::OK(); | 181 | 594 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv Line | Count | Source | 166 | 1.02k | Status reset() override { | 167 | 1.02k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.02k | size_t block_size = _options.data_page_size; | 169 | 1.02k | _count = 0; | 170 | 1.02k | _raw_data_size = 0; | 171 | 1.02k | _data.clear(); | 172 | 1.02k | _data.reserve(block_size); | 173 | 1.02k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.02k | << "buffer must be naturally-aligned"; | 175 | 1.02k | _buffer.clear(); | 176 | 1.02k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.02k | _finished = false; | 178 | 1.02k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.02k | }); | 180 | 1.02k | return Status::OK(); | 181 | 1.02k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv Line | Count | Source | 166 | 15.3k | Status reset() override { | 167 | 15.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.3k | size_t block_size = _options.data_page_size; | 169 | 15.3k | _count = 0; | 170 | 15.3k | _raw_data_size = 0; | 171 | 15.3k | _data.clear(); | 172 | 15.3k | _data.reserve(block_size); | 173 | 15.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.3k | << "buffer must be naturally-aligned"; | 175 | 15.3k | _buffer.clear(); | 176 | 15.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.3k | _finished = false; | 178 | 15.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.3k | }); | 180 | 15.4k | return Status::OK(); | 181 | 15.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 568 | Status reset() override { | 167 | 568 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 568 | size_t block_size = _options.data_page_size; | 169 | 568 | _count = 0; | 170 | 568 | _raw_data_size = 0; | 171 | 568 | _data.clear(); | 172 | 568 | _data.reserve(block_size); | 173 | 568 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 568 | << "buffer must be naturally-aligned"; | 175 | 568 | _buffer.clear(); | 176 | 568 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 568 | _finished = false; | 178 | 568 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 568 | }); | 180 | 568 | return Status::OK(); | 181 | 568 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.3k | Status reset() override { | 167 | 19.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.3k | size_t block_size = _options.data_page_size; | 169 | 19.3k | _count = 0; | 170 | 19.3k | _raw_data_size = 0; | 171 | 19.3k | _data.clear(); | 172 | 19.3k | _data.reserve(block_size); | 173 | 19.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.3k | << "buffer must be naturally-aligned"; | 175 | 19.3k | _buffer.clear(); | 176 | 19.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.3k | _finished = false; | 178 | 19.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.3k | }); | 180 | 19.4k | return Status::OK(); | 181 | 19.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 30.8k | Status reset() override { | 167 | 30.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 30.8k | size_t block_size = _options.data_page_size; | 169 | 30.8k | _count = 0; | 170 | 30.8k | _raw_data_size = 0; | 171 | 30.8k | _data.clear(); | 172 | 30.8k | _data.reserve(block_size); | 173 | 30.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 30.8k | << "buffer must be naturally-aligned"; | 175 | 30.8k | _buffer.clear(); | 176 | 30.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 30.8k | _finished = false; | 178 | 30.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 30.8k | }); | 180 | 30.8k | return Status::OK(); | 181 | 30.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 34.1k | Status reset() override { | 167 | 34.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 34.1k | size_t block_size = _options.data_page_size; | 169 | 34.1k | _count = 0; | 170 | 34.1k | _raw_data_size = 0; | 171 | 34.1k | _data.clear(); | 172 | 34.1k | _data.reserve(block_size); | 173 | 34.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 34.1k | << "buffer must be naturally-aligned"; | 175 | 34.1k | _buffer.clear(); | 176 | 34.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 34.1k | _finished = false; | 178 | 34.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 34.1k | }); | 180 | 34.1k | return Status::OK(); | 181 | 34.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv Line | Count | Source | 166 | 2.34k | Status reset() override { | 167 | 2.34k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 2.34k | size_t block_size = _options.data_page_size; | 169 | 2.34k | _count = 0; | 170 | 2.34k | _raw_data_size = 0; | 171 | 2.34k | _data.clear(); | 172 | 2.34k | _data.reserve(block_size); | 173 | 2.34k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 2.34k | << "buffer must be naturally-aligned"; | 175 | 2.34k | _buffer.clear(); | 176 | 2.34k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 2.34k | _finished = false; | 178 | 2.34k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 2.34k | }); | 180 | 2.34k | return Status::OK(); | 181 | 2.34k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv Line | Count | Source | 166 | 1.32k | Status reset() override { | 167 | 1.32k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.32k | size_t block_size = _options.data_page_size; | 169 | 1.32k | _count = 0; | 170 | 1.32k | _raw_data_size = 0; | 171 | 1.32k | _data.clear(); | 172 | 1.32k | _data.reserve(block_size); | 173 | 1.32k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.32k | << "buffer must be naturally-aligned"; | 175 | 1.32k | _buffer.clear(); | 176 | 1.32k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.32k | _finished = false; | 178 | 1.32k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.32k | }); | 180 | 1.32k | return Status::OK(); | 181 | 1.32k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv Line | Count | Source | 166 | 1.32k | Status reset() override { | 167 | 1.32k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.32k | size_t block_size = _options.data_page_size; | 169 | 1.32k | _count = 0; | 170 | 1.32k | _raw_data_size = 0; | 171 | 1.32k | _data.clear(); | 172 | 1.32k | _data.reserve(block_size); | 173 | 1.32k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.32k | << "buffer must be naturally-aligned"; | 175 | 1.32k | _buffer.clear(); | 176 | 1.32k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.32k | _finished = false; | 178 | 1.32k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.32k | }); | 180 | 1.32k | return Status::OK(); | 181 | 1.32k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5resetEv Line | Count | Source | 166 | 1.33k | Status reset() override { | 167 | 1.33k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 1.33k | size_t block_size = _options.data_page_size; | 169 | 1.33k | _count = 0; | 170 | 1.33k | _raw_data_size = 0; | 171 | 1.33k | _data.clear(); | 172 | 1.33k | _data.reserve(block_size); | 173 | 1.33k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 1.33k | << "buffer must be naturally-aligned"; | 175 | 1.33k | _buffer.clear(); | 176 | 1.33k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 1.33k | _finished = false; | 178 | 1.33k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 1.33k | }); | 180 | 1.34k | return Status::OK(); | 181 | 1.33k | } |
|
182 | | |
183 | 4 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 183 | 4 | size_t count() const override { return _count; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE5countEv |
184 | | |
185 | 37.9k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.56k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 974 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 185 | 20.4k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 185 | 3.06k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.50k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 893 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 504 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 491 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv Line | Count | Source | 185 | 1.65k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.27k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE4sizeEv Line | Count | Source | 185 | 10 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv Line | Count | Source | 185 | 119 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv Line | Count | Source | 185 | 126 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv Line | Count | Source | 185 | 104 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv Line | Count | Source | 185 | 238 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 391 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.20k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv Line | Count | Source | 185 | 106 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv Line | Count | Source | 185 | 128 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv Line | Count | Source | 185 | 112 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE4sizeEv Line | Count | Source | 185 | 12 | uint64_t size() const override { return _buffer.size(); } |
|
186 | | |
187 | 558k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 57.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 8.81k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 70.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 192k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 12.4k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 64.2k | 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 | 187 | 6.43k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.53k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Line | Count | Source | 187 | 6 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Line | Count | Source | 187 | 352 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Line | Count | Source | 187 | 269 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Line | Count | Source | 187 | 593 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.71k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 246 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.69k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 18.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Line | Count | Source | 187 | 1.14k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Line | Count | Source | 187 | 621 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv Line | Count | Source | 187 | 628 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv Line | Count | Source | 187 | 722 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
|
188 | | |
189 | | private: |
190 | | BitshufflePageBuilder(const PageBuilderOptions& options) |
191 | 839k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 58.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.55k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 360k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 187k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.5k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 64.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.13k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.87k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 2 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 337 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 37.4k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 44.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 326 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 434 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.61k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 322 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.69k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 12.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 16.9k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.19k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 703 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 701 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 613 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 841k | OwnedSlice _finish(int final_size_of_type) { |
194 | 841k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 841k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 841k | int padding_elems = num_elems_after_padding - _count; |
199 | 841k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 26.1M | for (int i = 0; i < padding_bytes; i++) { |
201 | 25.2M | _data.push_back(0); |
202 | 25.2M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 841k | _buffer.resize( |
206 | 841k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 841k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 841k | int64_t bytes = |
210 | 841k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 841k | num_elems_after_padding, final_size_of_type, 0); |
212 | 841k | if (bytes < 0) [[unlikely]] { |
213 | | // This means the bitshuffle function fails. |
214 | | // Ideally, this should not happen. |
215 | 0 | warn_with_bitshuffle_error(bytes); |
216 | | // It does not matter what will be returned here, |
217 | | // since we have logged fatal in warn_with_bitshuffle_error(). |
218 | 0 | return OwnedSlice(); |
219 | 0 | } |
220 | | // update header |
221 | 841k | encode_fixed32_le(&_buffer[0], _count); |
222 | 841k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 841k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 841k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 841k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 841k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 841k | return _buffer.build(); |
229 | 841k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 57.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 57.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 57.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 57.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 57.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 374k | for (int i = 0; i < padding_bytes; i++) { | 201 | 316k | _data.push_back(0); | 202 | 316k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 57.4k | _buffer.resize( | 206 | 57.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 57.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 57.4k | int64_t bytes = | 210 | 57.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 57.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 57.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 57.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 57.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 57.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 57.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 57.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 57.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 57.4k | return _buffer.build(); | 229 | 57.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 8.81k | OwnedSlice _finish(int final_size_of_type) { | 194 | 8.81k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 8.81k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 8.81k | int padding_elems = num_elems_after_padding - _count; | 199 | 8.81k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 90.9k | for (int i = 0; i < padding_bytes; i++) { | 201 | 82.1k | _data.push_back(0); | 202 | 82.1k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 8.81k | _buffer.resize( | 206 | 8.81k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 8.81k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 8.81k | int64_t bytes = | 210 | 8.81k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 8.81k | num_elems_after_padding, final_size_of_type, 0); | 212 | 8.81k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 8.81k | encode_fixed32_le(&_buffer[0], _count); | 222 | 8.81k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 8.81k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 8.81k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 8.81k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 8.81k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 8.81k | return _buffer.build(); | 229 | 8.81k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 353k | OwnedSlice _finish(int final_size_of_type) { | 194 | 353k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 353k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 353k | int padding_elems = num_elems_after_padding - _count; | 199 | 353k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.80M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.45M | _data.push_back(0); | 202 | 6.45M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 353k | _buffer.resize( | 206 | 353k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 353k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 353k | int64_t bytes = | 210 | 353k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 353k | num_elems_after_padding, final_size_of_type, 0); | 212 | 353k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 353k | encode_fixed32_le(&_buffer[0], _count); | 222 | 353k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 353k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 353k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 353k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 353k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 353k | return _buffer.build(); | 229 | 353k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 192k | OwnedSlice _finish(int final_size_of_type) { | 194 | 192k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 192k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 192k | int padding_elems = num_elems_after_padding - _count; | 199 | 192k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 9.36M | for (int i = 0; i < padding_bytes; i++) { | 201 | 9.17M | _data.push_back(0); | 202 | 9.17M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 192k | _buffer.resize( | 206 | 192k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 192k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 192k | int64_t bytes = | 210 | 192k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 192k | num_elems_after_padding, final_size_of_type, 0); | 212 | 192k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 192k | encode_fixed32_le(&_buffer[0], _count); | 222 | 192k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 192k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 192k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 192k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 192k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 192k | return _buffer.build(); | 229 | 192k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 12.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 12.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 12.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 12.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 12.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 817k | for (int i = 0; i < padding_bytes; i++) { | 201 | 805k | _data.push_back(0); | 202 | 805k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 12.4k | _buffer.resize( | 206 | 12.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 12.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 12.4k | int64_t bytes = | 210 | 12.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 12.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 12.4k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 12.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 12.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 12.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 12.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 12.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 12.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 12.4k | return _buffer.build(); | 229 | 12.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 64.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 64.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 64.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 64.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 64.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.10M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.03M | _data.push_back(0); | 202 | 3.03M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 64.2k | _buffer.resize( | 206 | 64.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 64.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 64.2k | int64_t bytes = | 210 | 64.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 64.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 64.2k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 64.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 64.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 64.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 64.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 64.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 64.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 64.2k | return _buffer.build(); | 229 | 64.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 6.43k | OwnedSlice _finish(int final_size_of_type) { | 194 | 6.43k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6.43k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6.43k | int padding_elems = num_elems_after_padding - _count; | 199 | 6.43k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 139k | for (int i = 0; i < padding_bytes; i++) { | 201 | 133k | _data.push_back(0); | 202 | 133k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6.43k | _buffer.resize( | 206 | 6.43k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6.43k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6.43k | int64_t bytes = | 210 | 6.43k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6.43k | num_elems_after_padding, final_size_of_type, 0); | 212 | 6.43k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6.43k | encode_fixed32_le(&_buffer[0], _count); | 222 | 6.43k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6.43k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6.43k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6.43k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6.43k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6.43k | return _buffer.build(); | 229 | 6.43k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 7.53k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.53k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.53k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.53k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.53k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 311k | for (int i = 0; i < padding_bytes; i++) { | 201 | 303k | _data.push_back(0); | 202 | 303k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.53k | _buffer.resize( | 206 | 7.53k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.53k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.53k | int64_t bytes = | 210 | 7.53k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.53k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.53k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.53k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.53k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.53k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.53k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.53k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.53k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.53k | return _buffer.build(); | 229 | 7.53k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi Line | Count | Source | 193 | 6 | OwnedSlice _finish(int final_size_of_type) { | 194 | 6 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 6 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 6 | int padding_elems = num_elems_after_padding - _count; | 199 | 6 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 18 | for (int i = 0; i < padding_bytes; i++) { | 201 | 12 | _data.push_back(0); | 202 | 12 | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 6 | _buffer.resize( | 206 | 6 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 6 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 6 | int64_t bytes = | 210 | 6 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 6 | num_elems_after_padding, final_size_of_type, 0); | 212 | 6 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 6 | encode_fixed32_le(&_buffer[0], _count); | 222 | 6 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 6 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 6 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 6 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 6 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 6 | return _buffer.build(); | 229 | 6 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi Line | Count | Source | 193 | 352 | OwnedSlice _finish(int final_size_of_type) { | 194 | 352 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 352 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 352 | int padding_elems = num_elems_after_padding - _count; | 199 | 352 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.28k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.93k | _data.push_back(0); | 202 | 4.93k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 352 | _buffer.resize( | 206 | 352 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 352 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 352 | int64_t bytes = | 210 | 352 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 352 | num_elems_after_padding, final_size_of_type, 0); | 212 | 352 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 352 | encode_fixed32_le(&_buffer[0], _count); | 222 | 352 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 352 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 352 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 352 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 352 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 352 | return _buffer.build(); | 229 | 352 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 808k | for (int i = 0; i < padding_bytes; i++) { | 201 | 770k | _data.push_back(0); | 202 | 770k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.1k | _buffer.resize( | 206 | 38.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.1k | int64_t bytes = | 210 | 38.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 38.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.1k | return _buffer.build(); | 229 | 38.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.82M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.78M | _data.push_back(0); | 202 | 1.78M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.1k | _buffer.resize( | 206 | 43.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.1k | int64_t bytes = | 210 | 43.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 43.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.1k | return _buffer.build(); | 229 | 43.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE41EE7_finishEi Line | Count | Source | 193 | 269 | OwnedSlice _finish(int final_size_of_type) { | 194 | 269 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 269 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 269 | int padding_elems = num_elems_after_padding - _count; | 199 | 269 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 11.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 11.0k | _data.push_back(0); | 202 | 11.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 269 | _buffer.resize( | 206 | 269 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 269 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 269 | int64_t bytes = | 210 | 269 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 269 | num_elems_after_padding, final_size_of_type, 0); | 212 | 269 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 269 | encode_fixed32_le(&_buffer[0], _count); | 222 | 269 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 269 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 269 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 269 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 269 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 269 | return _buffer.build(); | 229 | 269 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi Line | Count | Source | 193 | 593 | OwnedSlice _finish(int final_size_of_type) { | 194 | 593 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 593 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 593 | int padding_elems = num_elems_after_padding - _count; | 199 | 593 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.7k | _data.push_back(0); | 202 | 12.7k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 593 | _buffer.resize( | 206 | 593 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 593 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 593 | int64_t bytes = | 210 | 593 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 593 | num_elems_after_padding, final_size_of_type, 0); | 212 | 593 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 593 | encode_fixed32_le(&_buffer[0], _count); | 222 | 593 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 593 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 593 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 593 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 593 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 593 | return _buffer.build(); | 229 | 593 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.71k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.71k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.71k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.71k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.71k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 402k | for (int i = 0; i < padding_bytes; i++) { | 201 | 394k | _data.push_back(0); | 202 | 394k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.71k | _buffer.resize( | 206 | 7.71k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.71k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.71k | int64_t bytes = | 210 | 7.71k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.71k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.71k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 7.71k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.71k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.71k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.71k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.71k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.71k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.71k | return _buffer.build(); | 229 | 7.71k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 247 | OwnedSlice _finish(int final_size_of_type) { | 194 | 247 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 247 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 247 | int padding_elems = num_elems_after_padding - _count; | 199 | 247 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.5k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.2k | _data.push_back(0); | 202 | 15.2k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 247 | _buffer.resize( | 206 | 247 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 247 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 247 | int64_t bytes = | 210 | 247 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 247 | num_elems_after_padding, final_size_of_type, 0); | 212 | 247 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 247 | encode_fixed32_le(&_buffer[0], _count); | 222 | 247 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 247 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 247 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 247 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 247 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 247 | return _buffer.build(); | 229 | 247 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.69k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.69k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.69k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.69k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.69k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 117k | for (int i = 0; i < padding_bytes; i++) { | 201 | 107k | _data.push_back(0); | 202 | 107k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.69k | _buffer.resize( | 206 | 9.69k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.69k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.69k | int64_t bytes = | 210 | 9.69k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.69k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.69k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 9.69k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.69k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.69k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.69k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.69k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.69k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.69k | return _buffer.build(); | 229 | 9.69k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 18.7k | OwnedSlice _finish(int final_size_of_type) { | 194 | 18.7k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 18.7k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 18.7k | int padding_elems = num_elems_after_padding - _count; | 199 | 18.7k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 486k | for (int i = 0; i < padding_bytes; i++) { | 201 | 467k | _data.push_back(0); | 202 | 467k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 18.7k | _buffer.resize( | 206 | 18.7k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 18.7k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 18.7k | int64_t bytes = | 210 | 18.7k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 18.7k | num_elems_after_padding, final_size_of_type, 0); | 212 | 18.7k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 18.7k | encode_fixed32_le(&_buffer[0], _count); | 222 | 18.7k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 18.7k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 18.7k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 18.7k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 18.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 18.7k | return _buffer.build(); | 229 | 18.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.1k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.1k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.1k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.1k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.1k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.15M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.13M | _data.push_back(0); | 202 | 1.13M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.1k | _buffer.resize( | 206 | 17.1k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.1k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.1k | int64_t bytes = | 210 | 17.1k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.1k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.1k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 17.1k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.1k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.1k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.1k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.1k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.1k | return _buffer.build(); | 229 | 17.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi Line | Count | Source | 193 | 1.14k | OwnedSlice _finish(int final_size_of_type) { | 194 | 1.14k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 1.14k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 1.14k | int padding_elems = num_elems_after_padding - _count; | 199 | 1.14k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 173k | for (int i = 0; i < padding_bytes; i++) { | 201 | 172k | _data.push_back(0); | 202 | 172k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 1.14k | _buffer.resize( | 206 | 1.14k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 1.14k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 1.14k | int64_t bytes = | 210 | 1.14k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 1.14k | num_elems_after_padding, final_size_of_type, 0); | 212 | 1.14k | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 1.14k | encode_fixed32_le(&_buffer[0], _count); | 222 | 1.14k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 1.14k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 1.14k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 1.14k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 1.14k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 1.14k | return _buffer.build(); | 229 | 1.14k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi Line | Count | Source | 193 | 621 | OwnedSlice _finish(int final_size_of_type) { | 194 | 621 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 621 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 621 | int padding_elems = num_elems_after_padding - _count; | 199 | 621 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 12.6k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.0k | _data.push_back(0); | 202 | 12.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 621 | _buffer.resize( | 206 | 621 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 621 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 621 | int64_t bytes = | 210 | 621 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 621 | num_elems_after_padding, final_size_of_type, 0); | 212 | 621 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 621 | encode_fixed32_le(&_buffer[0], _count); | 222 | 621 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 621 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 621 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 621 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 621 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 621 | return _buffer.build(); | 229 | 621 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi Line | Count | Source | 193 | 628 | OwnedSlice _finish(int final_size_of_type) { | 194 | 628 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 628 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 628 | int padding_elems = num_elems_after_padding - _count; | 199 | 628 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 50.0k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.4k | _data.push_back(0); | 202 | 49.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 628 | _buffer.resize( | 206 | 628 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 628 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 628 | int64_t bytes = | 210 | 628 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 628 | num_elems_after_padding, final_size_of_type, 0); | 212 | 628 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 628 | encode_fixed32_le(&_buffer[0], _count); | 222 | 628 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 628 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 628 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 628 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 628 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 628 | return _buffer.build(); | 229 | 628 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE42EE7_finishEi Line | Count | Source | 193 | 722 | OwnedSlice _finish(int final_size_of_type) { | 194 | 722 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 722 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 722 | int padding_elems = num_elems_after_padding - _count; | 199 | 722 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 53.3k | for (int i = 0; i < padding_bytes; i++) { | 201 | 52.6k | _data.push_back(0); | 202 | 52.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 722 | _buffer.resize( | 206 | 722 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 722 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 722 | int64_t bytes = | 210 | 722 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 722 | num_elems_after_padding, final_size_of_type, 0); | 212 | 722 | if (bytes < 0) [[unlikely]] { | 213 | | // This means the bitshuffle function fails. | 214 | | // Ideally, this should not happen. | 215 | 0 | warn_with_bitshuffle_error(bytes); | 216 | | // It does not matter what will be returned here, | 217 | | // since we have logged fatal in warn_with_bitshuffle_error(). | 218 | 0 | return OwnedSlice(); | 219 | 0 | } | 220 | | // update header | 221 | 722 | encode_fixed32_le(&_buffer[0], _count); | 222 | 722 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 722 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 722 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 722 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 722 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 722 | return _buffer.build(); | 229 | 722 | } |
|
230 | | |
231 | | using CppType = typename TypeTraits<Type>::CppType; |
232 | | |
233 | | CppType cell(int idx) const { |
234 | | DCHECK_GE(idx, 0); |
235 | | CppType ret; |
236 | | memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE); |
237 | | return ret; |
238 | | } |
239 | | |
240 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
241 | | PageBuilderOptions _options; |
242 | | uint32_t _count; |
243 | | uint32_t _remain_element_capacity; |
244 | | bool _finished; |
245 | | faststring _data; |
246 | | faststring _buffer; |
247 | | uint64_t _raw_data_size = 0; |
248 | | }; |
249 | | |
250 | | inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements, |
251 | | size_t& compressed_size, size_t& num_element_after_padding, |
252 | 2.38M | int& size_of_element) { |
253 | 2.38M | if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) { |
254 | 0 | return Status::InternalError("file corruption: invalid data size:{}, header size:{}", |
255 | 0 | data.size, BITSHUFFLE_PAGE_HEADER_SIZE); |
256 | 0 | } |
257 | | |
258 | 2.38M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.38M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.38M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.38M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.38M | if (num_element_after_padding != ALIGN_UP(num_elements, 8)) { |
263 | 0 | return Status::InternalError( |
264 | 0 | "num of element information corrupted," |
265 | 0 | " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{}," |
266 | 0 | " compressed_size:{}, size_of_element:{}, data_size:{}", |
267 | 0 | num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size, |
268 | 0 | size_of_element, data.size); |
269 | 0 | } |
270 | 2.38M | switch (size_of_element) { |
271 | 202k | case 1: |
272 | 239k | case 2: |
273 | 242k | case 3: |
274 | 1.58M | case 4: |
275 | 2.27M | case 8: |
276 | 2.27M | case 12: |
277 | 2.38M | case 16: |
278 | 2.38M | case 32: |
279 | 2.38M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.38M | } |
283 | 2.38M | return Status::OK(); |
284 | 2.38M | } |
285 | | |
286 | | template <FieldType Type> |
287 | | class BitShufflePageDecoder : public PageDecoder { |
288 | | public: |
289 | | BitShufflePageDecoder(Slice data, const PageDecoderOptions& options) |
290 | 1.19M | : _data(data), |
291 | 1.19M | _options(options), |
292 | 1.19M | _parsed(false), |
293 | 1.19M | _num_elements(0), |
294 | 1.19M | _num_element_after_padding(0), |
295 | 1.19M | _size_of_element(0), |
296 | 1.19M | _cur_index(0) {}_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 101k | : _data(data), | 291 | 101k | _options(options), | 292 | 101k | _parsed(false), | 293 | 101k | _num_elements(0), | 294 | 101k | _num_element_after_padding(0), | 295 | 101k | _size_of_element(0), | 296 | 101k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 18.5k | : _data(data), | 291 | 18.5k | _options(options), | 292 | 18.5k | _parsed(false), | 293 | 18.5k | _num_elements(0), | 294 | 18.5k | _num_element_after_padding(0), | 295 | 18.5k | _size_of_element(0), | 296 | 18.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 582k | : _data(data), | 291 | 582k | _options(options), | 292 | 582k | _parsed(false), | 293 | 582k | _num_elements(0), | 294 | 582k | _num_element_after_padding(0), | 295 | 582k | _size_of_element(0), | 296 | 582k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 110k | : _data(data), | 291 | 110k | _options(options), | 292 | 110k | _parsed(false), | 293 | 110k | _num_elements(0), | 294 | 110k | _num_element_after_padding(0), | 295 | 110k | _size_of_element(0), | 296 | 110k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 18.2k | : _data(data), | 291 | 18.2k | _options(options), | 292 | 18.2k | _parsed(false), | 293 | 18.2k | _num_elements(0), | 294 | 18.2k | _num_element_after_padding(0), | 295 | 18.2k | _size_of_element(0), | 296 | 18.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 93.2k | : _data(data), | 291 | 93.2k | _options(options), | 292 | 93.2k | _parsed(false), | 293 | 93.2k | _num_elements(0), | 294 | 93.2k | _num_element_after_padding(0), | 295 | 93.2k | _size_of_element(0), | 296 | 93.2k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 11.2k | : _data(data), | 291 | 11.2k | _options(options), | 292 | 11.2k | _parsed(false), | 293 | 11.2k | _num_elements(0), | 294 | 11.2k | _num_element_after_padding(0), | 295 | 11.2k | _size_of_element(0), | 296 | 11.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.0k | : _data(data), | 291 | 14.0k | _options(options), | 292 | 14.0k | _parsed(false), | 293 | 14.0k | _num_elements(0), | 294 | 14.0k | _num_element_after_padding(0), | 295 | 14.0k | _size_of_element(0), | 296 | 14.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3 | : _data(data), | 291 | 3 | _options(options), | 292 | 3 | _parsed(false), | 293 | 3 | _num_elements(0), | 294 | 3 | _num_element_after_padding(0), | 295 | 3 | _size_of_element(0), | 296 | 3 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.54k | : _data(data), | 291 | 1.54k | _options(options), | 292 | 1.54k | _parsed(false), | 293 | 1.54k | _num_elements(0), | 294 | 1.54k | _num_element_after_padding(0), | 295 | 1.54k | _size_of_element(0), | 296 | 1.54k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 59.6k | : _data(data), | 291 | 59.6k | _options(options), | 292 | 59.6k | _parsed(false), | 293 | 59.6k | _num_elements(0), | 294 | 59.6k | _num_element_after_padding(0), | 295 | 59.6k | _size_of_element(0), | 296 | 59.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 66.2k | : _data(data), | 291 | 66.2k | _options(options), | 292 | 66.2k | _parsed(false), | 293 | 66.2k | _num_elements(0), | 294 | 66.2k | _num_element_after_padding(0), | 295 | 66.2k | _size_of_element(0), | 296 | 66.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.15k | : _data(data), | 291 | 3.15k | _options(options), | 292 | 3.15k | _parsed(false), | 293 | 3.15k | _num_elements(0), | 294 | 3.15k | _num_element_after_padding(0), | 295 | 3.15k | _size_of_element(0), | 296 | 3.15k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.06k | : _data(data), | 291 | 2.06k | _options(options), | 292 | 2.06k | _parsed(false), | 293 | 2.06k | _num_elements(0), | 294 | 2.06k | _num_element_after_padding(0), | 295 | 2.06k | _size_of_element(0), | 296 | 2.06k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.1k | : _data(data), | 291 | 16.1k | _options(options), | 292 | 16.1k | _parsed(false), | 293 | 16.1k | _num_elements(0), | 294 | 16.1k | _num_element_after_padding(0), | 295 | 16.1k | _size_of_element(0), | 296 | 16.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.35k | : _data(data), | 291 | 1.35k | _options(options), | 292 | 1.35k | _parsed(false), | 293 | 1.35k | _num_elements(0), | 294 | 1.35k | _num_element_after_padding(0), | 295 | 1.35k | _size_of_element(0), | 296 | 1.35k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 15.1k | : _data(data), | 291 | 15.1k | _options(options), | 292 | 15.1k | _parsed(false), | 293 | 15.1k | _num_elements(0), | 294 | 15.1k | _num_element_after_padding(0), | 295 | 15.1k | _size_of_element(0), | 296 | 15.1k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 40.4k | : _data(data), | 291 | 40.4k | _options(options), | 292 | 40.4k | _parsed(false), | 293 | 40.4k | _num_elements(0), | 294 | 40.4k | _num_element_after_padding(0), | 295 | 40.4k | _size_of_element(0), | 296 | 40.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 29.6k | : _data(data), | 291 | 29.6k | _options(options), | 292 | 29.6k | _parsed(false), | 293 | 29.6k | _num_elements(0), | 294 | 29.6k | _num_element_after_padding(0), | 295 | 29.6k | _size_of_element(0), | 296 | 29.6k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.74k | : _data(data), | 291 | 1.74k | _options(options), | 292 | 1.74k | _parsed(false), | 293 | 1.74k | _num_elements(0), | 294 | 1.74k | _num_element_after_padding(0), | 295 | 1.74k | _size_of_element(0), | 296 | 1.74k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 928 | : _data(data), | 291 | 928 | _options(options), | 292 | 928 | _parsed(false), | 293 | 928 | _num_elements(0), | 294 | 928 | _num_element_after_padding(0), | 295 | 928 | _size_of_element(0), | 296 | 928 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 970 | : _data(data), | 291 | 970 | _options(options), | 292 | 970 | _parsed(false), | 293 | 970 | _num_elements(0), | 294 | 970 | _num_element_after_padding(0), | 295 | 970 | _size_of_element(0), | 296 | 970 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 5.43k | : _data(data), | 291 | 5.43k | _options(options), | 292 | 5.43k | _parsed(false), | 293 | 5.43k | _num_elements(0), | 294 | 5.43k | _num_element_after_padding(0), | 295 | 5.43k | _size_of_element(0), | 296 | 5.43k | _cur_index(0) {} |
|
297 | | |
298 | 1.19M | Status init() override { |
299 | 1.19M | CHECK(!_parsed); |
300 | 1.19M | size_t unused; |
301 | 1.19M | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, |
302 | 1.19M | _num_element_after_padding, _size_of_element)); |
303 | | |
304 | 1.19M | if (_data.size != |
305 | 1.19M | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { |
306 | 13 | std::stringstream ss; |
307 | 13 | ss << "Size information unmatched, _data.size:" << _data.size |
308 | 13 | << ", _num_elements:" << _num_elements << ", expected size is " |
309 | 13 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; |
310 | 13 | return Status::InternalError(ss.str()); |
311 | 13 | } |
312 | | |
313 | | // Currently, only the UINT32 block encoder supports expanding size: |
314 | 1.19M | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && |
315 | 1.19M | _size_of_element != SIZE_OF_TYPE)) { |
316 | 0 | return Status::InternalError( |
317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", |
318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); |
319 | 0 | } |
320 | 1.19M | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { |
321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", |
322 | 0 | _size_of_element, SIZE_OF_TYPE); |
323 | 0 | } |
324 | 1.19M | _parsed = true; |
325 | 1.19M | return Status::OK(); |
326 | 1.19M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 298 | 101k | Status init() override { | 299 | 101k | CHECK(!_parsed); | 300 | 101k | size_t unused; | 301 | 101k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 101k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 101k | if (_data.size != | 305 | 101k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 101k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 101k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 101k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 101k | _parsed = true; | 325 | 101k | return Status::OK(); | 326 | 101k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 18.5k | Status init() override { | 299 | 18.5k | CHECK(!_parsed); | 300 | 18.5k | size_t unused; | 301 | 18.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 18.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 18.5k | if (_data.size != | 305 | 18.5k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 18.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 18.5k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 18.5k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 18.5k | _parsed = true; | 325 | 18.5k | return Status::OK(); | 326 | 18.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 581k | Status init() override { | 299 | 581k | CHECK(!_parsed); | 300 | 581k | size_t unused; | 301 | 581k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 581k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 581k | if (_data.size != | 305 | 581k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 5 | std::stringstream ss; | 307 | 5 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 5 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 5 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 5 | return Status::InternalError(ss.str()); | 311 | 5 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 581k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 581k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 581k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 581k | _parsed = true; | 325 | 581k | return Status::OK(); | 326 | 581k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 109k | Status init() override { | 299 | 109k | CHECK(!_parsed); | 300 | 109k | size_t unused; | 301 | 109k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 109k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 109k | if (_data.size != | 305 | 109k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 109k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 109k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 109k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 109k | _parsed = true; | 325 | 109k | return Status::OK(); | 326 | 109k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 18.1k | Status init() override { | 299 | 18.1k | CHECK(!_parsed); | 300 | 18.1k | size_t unused; | 301 | 18.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 18.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 18.1k | if (_data.size != | 305 | 18.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 18.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 18.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 18.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 18.1k | _parsed = true; | 325 | 18.1k | return Status::OK(); | 326 | 18.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 93.1k | Status init() override { | 299 | 93.1k | CHECK(!_parsed); | 300 | 93.1k | size_t unused; | 301 | 93.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 93.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 93.1k | if (_data.size != | 305 | 93.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 93.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 93.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 93.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 93.1k | _parsed = true; | 325 | 93.1k | return Status::OK(); | 326 | 93.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 11.2k | Status init() override { | 299 | 11.2k | CHECK(!_parsed); | 300 | 11.2k | size_t unused; | 301 | 11.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 11.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 11.2k | if (_data.size != | 305 | 11.2k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 2 | std::stringstream ss; | 307 | 2 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 2 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 2 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 2 | return Status::InternalError(ss.str()); | 311 | 2 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 11.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 11.2k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 11.2k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 11.2k | _parsed = true; | 325 | 11.2k | return Status::OK(); | 326 | 11.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 14.0k | Status init() override { | 299 | 14.0k | CHECK(!_parsed); | 300 | 14.0k | size_t unused; | 301 | 14.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.0k | if (_data.size != | 305 | 14.0k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 4 | std::stringstream ss; | 307 | 4 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 4 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 4 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 4 | return Status::InternalError(ss.str()); | 311 | 4 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 14.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.0k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 14.0k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 14.0k | _parsed = true; | 325 | 14.0k | return Status::OK(); | 326 | 14.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv Line | Count | Source | 298 | 3 | Status init() override { | 299 | 3 | CHECK(!_parsed); | 300 | 3 | size_t unused; | 301 | 3 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3 | if (_data.size != | 305 | 3 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3 | _parsed = true; | 325 | 3 | return Status::OK(); | 326 | 3 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv Line | Count | Source | 298 | 1.54k | Status init() override { | 299 | 1.54k | CHECK(!_parsed); | 300 | 1.54k | size_t unused; | 301 | 1.54k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.54k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.54k | if (_data.size != | 305 | 1.54k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.54k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.54k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.54k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.54k | _parsed = true; | 325 | 1.54k | return Status::OK(); | 326 | 1.54k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 59.6k | Status init() override { | 299 | 59.6k | CHECK(!_parsed); | 300 | 59.6k | size_t unused; | 301 | 59.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 59.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 59.6k | if (_data.size != | 305 | 59.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 59.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 59.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 59.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 59.6k | _parsed = true; | 325 | 59.6k | return Status::OK(); | 326 | 59.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 66.1k | Status init() override { | 299 | 66.1k | CHECK(!_parsed); | 300 | 66.1k | size_t unused; | 301 | 66.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 66.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 66.1k | if (_data.size != | 305 | 66.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 66.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 66.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 66.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 66.1k | _parsed = true; | 325 | 66.1k | return Status::OK(); | 326 | 66.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.15k | Status init() override { | 299 | 3.15k | CHECK(!_parsed); | 300 | 3.15k | size_t unused; | 301 | 3.15k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.15k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.15k | if (_data.size != | 305 | 3.15k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 3.15k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.15k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 3.15k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 3.15k | _parsed = true; | 325 | 3.15k | return Status::OK(); | 326 | 3.15k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.06k | Status init() override { | 299 | 2.06k | CHECK(!_parsed); | 300 | 2.06k | size_t unused; | 301 | 2.06k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.06k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.06k | if (_data.size != | 305 | 2.06k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 2.06k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.06k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 2.06k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 2.06k | _parsed = true; | 325 | 2.06k | return Status::OK(); | 326 | 2.06k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 16.1k | Status init() override { | 299 | 16.1k | CHECK(!_parsed); | 300 | 16.1k | size_t unused; | 301 | 16.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.1k | if (_data.size != | 305 | 16.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 16.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 16.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 16.1k | _parsed = true; | 325 | 16.1k | return Status::OK(); | 326 | 16.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.35k | Status init() override { | 299 | 1.35k | CHECK(!_parsed); | 300 | 1.35k | size_t unused; | 301 | 1.35k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.35k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.35k | if (_data.size != | 305 | 1.35k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 1 | std::stringstream ss; | 307 | 1 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 1 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 1 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 1 | return Status::InternalError(ss.str()); | 311 | 1 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.35k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.35k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.35k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.35k | _parsed = true; | 325 | 1.35k | return Status::OK(); | 326 | 1.35k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.1k | Status init() override { | 299 | 15.1k | CHECK(!_parsed); | 300 | 15.1k | size_t unused; | 301 | 15.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.1k | if (_data.size != | 305 | 15.1k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 15.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.1k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 15.1k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 15.1k | _parsed = true; | 325 | 15.1k | return Status::OK(); | 326 | 15.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 40.4k | Status init() override { | 299 | 40.4k | CHECK(!_parsed); | 300 | 40.4k | size_t unused; | 301 | 40.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 40.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 40.4k | if (_data.size != | 305 | 40.4k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 40.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 40.4k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 40.4k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 40.4k | _parsed = true; | 325 | 40.4k | return Status::OK(); | 326 | 40.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 29.6k | Status init() override { | 299 | 29.6k | CHECK(!_parsed); | 300 | 29.6k | size_t unused; | 301 | 29.6k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 29.6k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 29.6k | if (_data.size != | 305 | 29.6k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 29.6k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 29.6k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 29.6k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 29.6k | _parsed = true; | 325 | 29.6k | return Status::OK(); | 326 | 29.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.74k | Status init() override { | 299 | 1.74k | CHECK(!_parsed); | 300 | 1.74k | size_t unused; | 301 | 1.74k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.74k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.74k | if (_data.size != | 305 | 1.74k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 1.74k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.74k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 1.74k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 1.74k | _parsed = true; | 325 | 1.74k | return Status::OK(); | 326 | 1.74k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv Line | Count | Source | 298 | 928 | Status init() override { | 299 | 928 | CHECK(!_parsed); | 300 | 928 | size_t unused; | 301 | 928 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 928 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 928 | if (_data.size != | 305 | 928 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 928 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 928 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 928 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 928 | _parsed = true; | 325 | 928 | return Status::OK(); | 326 | 928 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv Line | Count | Source | 298 | 967 | Status init() override { | 299 | 967 | CHECK(!_parsed); | 300 | 967 | size_t unused; | 301 | 967 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 967 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 967 | if (_data.size != | 305 | 967 | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 967 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 967 | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 967 | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 967 | _parsed = true; | 325 | 967 | return Status::OK(); | 326 | 967 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 298 | 5.42k | Status init() override { | 299 | 5.42k | CHECK(!_parsed); | 300 | 5.42k | size_t unused; | 301 | 5.42k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 5.42k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 5.42k | if (_data.size != | 305 | 5.42k | _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) { | 306 | 0 | std::stringstream ss; | 307 | 0 | ss << "Size information unmatched, _data.size:" << _data.size | 308 | 0 | << ", _num_elements:" << _num_elements << ", expected size is " | 309 | 0 | << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE; | 310 | 0 | return Status::InternalError(ss.str()); | 311 | 0 | } | 312 | | | 313 | | // Currently, only the UINT32 block encoder supports expanding size: | 314 | 5.42k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 5.42k | _size_of_element != SIZE_OF_TYPE)) { | 316 | 0 | return Status::InternalError( | 317 | 0 | "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}", | 318 | 0 | _size_of_element, SIZE_OF_TYPE, Type); | 319 | 0 | } | 320 | 5.42k | if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) { | 321 | 0 | return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}", | 322 | 0 | _size_of_element, SIZE_OF_TYPE); | 323 | 0 | } | 324 | 5.42k | _parsed = true; | 325 | 5.42k | return Status::OK(); | 326 | 5.42k | } |
|
327 | | |
328 | | // If the page only contains null, then _num_elements == 0, and the nullmap has |
329 | | // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page |
330 | | // in this call stack it will pass pos == 0 to this method. Although we can add some |
331 | | // code such as check if the count == 0, then skip seek, but there are other method such |
332 | | // as init will also call seek with pos == 0. And the seek is useless when _num_elements |
333 | | // == 0, because next batch will return empty in this method. |
334 | 4.63M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.63M | if (_num_elements == 0) [[unlikely]] { |
337 | 3.20k | if (pos != 0) { |
338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( |
339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); |
340 | 0 | } |
341 | 3.20k | } |
342 | | |
343 | 4.63M | DCHECK_LE(pos, _num_elements); |
344 | 4.63M | _cur_index = pos; |
345 | 4.63M | return Status::OK(); |
346 | 4.63M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 294k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 294k | if (_num_elements == 0) [[unlikely]] { | 337 | 446 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 446 | } | 342 | | | 343 | 294k | DCHECK_LE(pos, _num_elements); | 344 | 294k | _cur_index = pos; | 345 | 294k | return Status::OK(); | 346 | 294k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 215k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 215k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 215k | DCHECK_LE(pos, _num_elements); | 344 | 215k | _cur_index = pos; | 345 | 215k | return Status::OK(); | 346 | 215k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 2.33M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 2.33M | if (_num_elements == 0) [[unlikely]] { | 337 | 1.45k | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1.45k | } | 342 | | | 343 | 2.33M | DCHECK_LE(pos, _num_elements); | 344 | 2.33M | _cur_index = pos; | 345 | 2.33M | return Status::OK(); | 346 | 2.33M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 147k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 147k | if (_num_elements == 0) [[unlikely]] { | 337 | 669 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 669 | } | 342 | | | 343 | 147k | DCHECK_LE(pos, _num_elements); | 344 | 147k | _cur_index = pos; | 345 | 147k | return Status::OK(); | 346 | 147k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 106k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 106k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 106k | DCHECK_LE(pos, _num_elements); | 344 | 106k | _cur_index = pos; | 345 | 106k | return Status::OK(); | 346 | 106k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 16.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 16.5k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 16.5k | DCHECK_LE(pos, _num_elements); | 344 | 16.5k | _cur_index = pos; | 345 | 16.5k | return Status::OK(); | 346 | 16.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 224k | Status seek_to_position_in_page(size_t pos) override { | 335 | 224k | DCHECK(_parsed) << "Must call init()"; | 336 | 224k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 224k | DCHECK_LE(pos, _num_elements); | 344 | 224k | _cur_index = pos; | 345 | 224k | return Status::OK(); | 346 | 224k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 196k | Status seek_to_position_in_page(size_t pos) override { | 335 | 196k | DCHECK(_parsed) << "Must call init()"; | 336 | 196k | if (_num_elements == 0) [[unlikely]] { | 337 | 5 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 5 | } | 342 | | | 343 | 196k | DCHECK_LE(pos, _num_elements); | 344 | 196k | _cur_index = pos; | 345 | 196k | return Status::OK(); | 346 | 196k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 207k | Status seek_to_position_in_page(size_t pos) override { | 335 | 207k | DCHECK(_parsed) << "Must call init()"; | 336 | 207k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 207k | DCHECK_LE(pos, _num_elements); | 344 | 207k | _cur_index = pos; | 345 | 207k | return Status::OK(); | 346 | 207k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 498k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 498k | if (_num_elements == 0) [[unlikely]] { | 337 | 197 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 197 | } | 342 | | | 343 | 498k | DCHECK_LE(pos, _num_elements); | 344 | 498k | _cur_index = pos; | 345 | 498k | return Status::OK(); | 346 | 498k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 49.1k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 49.1k | if (_num_elements == 0) [[unlikely]] { | 337 | 14 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 14 | } | 342 | | | 343 | 49.1k | DCHECK_LE(pos, _num_elements); | 344 | 49.1k | _cur_index = pos; | 345 | 49.1k | return Status::OK(); | 346 | 49.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.07k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.07k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.07k | if (_num_elements == 0) [[unlikely]] { | 337 | 8 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 8 | } | 342 | | | 343 | 1.07k | DCHECK_LE(pos, _num_elements); | 344 | 1.07k | _cur_index = pos; | 345 | 1.07k | return Status::OK(); | 346 | 1.07k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 194k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 194k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 194k | DCHECK_LE(pos, _num_elements); | 344 | 194k | _cur_index = pos; | 345 | 194k | return Status::OK(); | 346 | 194k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.08k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 7.08k | if (_num_elements == 0) [[unlikely]] { | 337 | 352 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 352 | } | 342 | | | 343 | 7.08k | DCHECK_LE(pos, _num_elements); | 344 | 7.08k | _cur_index = pos; | 345 | 7.08k | return Status::OK(); | 346 | 7.08k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 28 | Status seek_to_position_in_page(size_t pos) override { | 335 | 28 | DCHECK(_parsed) << "Must call init()"; | 336 | 28 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 28 | DCHECK_LE(pos, _num_elements); | 344 | 28 | _cur_index = pos; | 345 | 28 | return Status::OK(); | 346 | 28 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 844 | Status seek_to_position_in_page(size_t pos) override { | 335 | 844 | DCHECK(_parsed) << "Must call init()"; | 336 | 844 | if (_num_elements == 0) [[unlikely]] { | 337 | 26 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 26 | } | 342 | | | 343 | 844 | DCHECK_LE(pos, _num_elements); | 344 | 844 | _cur_index = pos; | 345 | 844 | return Status::OK(); | 346 | 844 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 17.2k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 17.2k | if (_num_elements == 0) [[unlikely]] { | 337 | 15 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 15 | } | 342 | | | 343 | 17.2k | DCHECK_LE(pos, _num_elements); | 344 | 17.2k | _cur_index = pos; | 345 | 17.2k | return Status::OK(); | 346 | 17.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 109k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 109k | if (_num_elements == 0) [[unlikely]] { | 337 | 10 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 10 | } | 342 | | | 343 | 109k | DCHECK_LE(pos, _num_elements); | 344 | 109k | _cur_index = pos; | 345 | 109k | return Status::OK(); | 346 | 109k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.95k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.95k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.95k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 1.95k | DCHECK_LE(pos, _num_elements); | 344 | 1.95k | _cur_index = pos; | 345 | 1.95k | return Status::OK(); | 346 | 1.95k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 25 | Status seek_to_position_in_page(size_t pos) override { | 335 | 25 | DCHECK(_parsed) << "Must call init()"; | 336 | 25 | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 25 | DCHECK_LE(pos, _num_elements); | 344 | 25 | _cur_index = pos; | 345 | 25 | return Status::OK(); | 346 | 25 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 31 | Status seek_to_position_in_page(size_t pos) override { | 335 | 31 | DCHECK(_parsed) << "Must call init()"; | 336 | 31 | if (_num_elements == 0) [[unlikely]] { | 337 | 1 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 1 | } | 342 | | | 343 | 31 | DCHECK_LE(pos, _num_elements); | 344 | 31 | _cur_index = pos; | 345 | 31 | return Status::OK(); | 346 | 31 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 6.15k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 6.15k | if (_num_elements == 0) [[unlikely]] { | 337 | 0 | if (pos != 0) { | 338 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 339 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elements); | 340 | 0 | } | 341 | 0 | } | 342 | | | 343 | 6.15k | DCHECK_LE(pos, _num_elements); | 344 | 6.15k | _cur_index = pos; | 345 | 6.15k | return Status::OK(); | 346 | 6.15k | } |
|
347 | | |
348 | 15 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
349 | 15 | DCHECK(_parsed) << "Must call init() firstly"; |
350 | | |
351 | 15 | if (_num_elements == 0) { |
352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
353 | 0 | } |
354 | | |
355 | 15 | size_t left = 0; |
356 | 15 | size_t right = _num_elements; |
357 | | |
358 | 15 | void* mid_value = nullptr; |
359 | | |
360 | | // find the first value >= target. after loop, |
361 | | // - left == index of first value >= target when found |
362 | | // - left == _num_elements when not found (all values < target) |
363 | 162 | while (left < right) { |
364 | 147 | size_t mid = left + (right - left) / 2; |
365 | 147 | mid_value = get_data(mid); |
366 | 147 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
367 | 65 | left = mid + 1; |
368 | 82 | } else { |
369 | 82 | right = mid; |
370 | 82 | } |
371 | 147 | } |
372 | 15 | if (left >= _num_elements) { |
373 | 3 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
374 | 3 | } |
375 | 12 | void* find_value = get_data(left); |
376 | 12 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
377 | 9 | *exact_match = true; |
378 | 9 | } else { |
379 | 3 | *exact_match = false; |
380 | 3 | } |
381 | | |
382 | 12 | _cur_index = left; |
383 | 12 | return Status::OK(); |
384 | 15 | } Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_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 | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 23 | left = mid + 1; | 368 | 26 | } else { | 369 | 26 | right = mid; | 370 | 26 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 5 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb Line | Count | Source | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 23 | left = mid + 1; | 368 | 26 | } else { | 369 | 26 | right = mid; | 370 | 26 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 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 | 348 | 5 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { | 349 | 5 | DCHECK(_parsed) << "Must call init() firstly"; | 350 | | | 351 | 5 | if (_num_elements == 0) { | 352 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); | 353 | 0 | } | 354 | | | 355 | 5 | size_t left = 0; | 356 | 5 | size_t right = _num_elements; | 357 | | | 358 | 5 | void* mid_value = nullptr; | 359 | | | 360 | | // find the first value >= target. after loop, | 361 | | // - left == index of first value >= target when found | 362 | | // - left == _num_elements when not found (all values < target) | 363 | 54 | while (left < right) { | 364 | 49 | size_t mid = left + (right - left) / 2; | 365 | 49 | mid_value = get_data(mid); | 366 | 49 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { | 367 | 19 | left = mid + 1; | 368 | 30 | } else { | 369 | 30 | right = mid; | 370 | 30 | } | 371 | 49 | } | 372 | 5 | if (left >= _num_elements) { | 373 | 1 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); | 374 | 1 | } | 375 | 4 | void* find_value = get_data(left); | 376 | 4 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { | 377 | 3 | *exact_match = true; | 378 | 3 | } else { | 379 | 1 | *exact_match = false; | 380 | 1 | } | 381 | | | 382 | 4 | _cur_index = left; | 383 | 4 | return Status::OK(); | 384 | 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 |
385 | | |
386 | | template <bool forward_index = true> |
387 | 1.84M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.84M | DCHECK(_parsed); |
389 | 1.84M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.84M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.84M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.84M | *n = max_fetch; |
398 | 1.84M | if constexpr (forward_index) { |
399 | 1.79M | _cur_index += max_fetch; |
400 | 1.79M | } |
401 | | |
402 | 1.84M | return Status::OK(); |
403 | 1.84M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 162k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 162k | DCHECK(_parsed); | 389 | 162k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 162k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 162k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 162k | *n = max_fetch; | 398 | 162k | if constexpr (forward_index) { | 399 | 162k | _cur_index += max_fetch; | 400 | 162k | } | 401 | | | 402 | 162k | return Status::OK(); | 403 | 162k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 11.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 11.8k | DCHECK(_parsed); | 389 | 11.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 11.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 11.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 11.8k | *n = max_fetch; | 398 | 11.8k | if constexpr (forward_index) { | 399 | 11.8k | _cur_index += max_fetch; | 400 | 11.8k | } | 401 | | | 402 | 11.8k | return Status::OK(); | 403 | 11.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 783k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 783k | DCHECK(_parsed); | 389 | 785k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 783k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 783k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 783k | *n = max_fetch; | 398 | 783k | if constexpr (forward_index) { | 399 | 783k | _cur_index += max_fetch; | 400 | 783k | } | 401 | | | 402 | 783k | return Status::OK(); | 403 | 783k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 100k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 100k | DCHECK(_parsed); | 389 | 100k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 100k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 100k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 100k | *n = max_fetch; | 398 | 100k | if constexpr (forward_index) { | 399 | 100k | _cur_index += max_fetch; | 400 | 100k | } | 401 | | | 402 | 100k | return Status::OK(); | 403 | 100k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 13.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 13.5k | DCHECK(_parsed); | 389 | 13.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 13.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 13.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 13.5k | *n = max_fetch; | 398 | 13.5k | if constexpr (forward_index) { | 399 | 13.5k | _cur_index += max_fetch; | 400 | 13.5k | } | 401 | | | 402 | 13.5k | return Status::OK(); | 403 | 13.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 92.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 92.1k | DCHECK(_parsed); | 389 | 92.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 92.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 92.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 92.1k | *n = max_fetch; | 398 | 92.1k | if constexpr (forward_index) { | 399 | 92.1k | _cur_index += max_fetch; | 400 | 92.1k | } | 401 | | | 402 | 92.1k | return Status::OK(); | 403 | 92.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 51.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 51.5k | DCHECK(_parsed); | 389 | 51.6k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 51.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 51.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 51.5k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 51.5k | return Status::OK(); | 403 | 51.5k | } |
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 | 387 | 6.29k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 6.29k | DCHECK(_parsed); | 389 | 6.29k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 6.29k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 6.29k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 6.29k | *n = max_fetch; | 398 | 6.29k | if constexpr (forward_index) { | 399 | 6.29k | _cur_index += max_fetch; | 400 | 6.29k | } | 401 | | | 402 | 6.29k | return Status::OK(); | 403 | 6.29k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 9.30k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 9.30k | DCHECK(_parsed); | 389 | 9.30k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 9.30k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 9.30k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 9.30k | *n = max_fetch; | 398 | 9.30k | if constexpr (forward_index) { | 399 | 9.30k | _cur_index += max_fetch; | 400 | 9.30k | } | 401 | | | 402 | 9.30k | return Status::OK(); | 403 | 9.30k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 93 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 93 | DCHECK(_parsed); | 389 | 93 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 93 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 93 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 93 | *n = max_fetch; | 398 | 93 | if constexpr (forward_index) { | 399 | 93 | _cur_index += max_fetch; | 400 | 93 | } | 401 | | | 402 | 93 | return Status::OK(); | 403 | 93 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 4.02k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 4.02k | DCHECK(_parsed); | 389 | 4.02k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 4.02k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 4.02k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 4.02k | *n = max_fetch; | 398 | 4.02k | if constexpr (forward_index) { | 399 | 4.02k | _cur_index += max_fetch; | 400 | 4.02k | } | 401 | | | 402 | 4.02k | return Status::OK(); | 403 | 4.02k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 371k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 371k | DCHECK(_parsed); | 389 | 371k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 371k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 371k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 371k | *n = max_fetch; | 398 | 371k | if constexpr (forward_index) { | 399 | 371k | _cur_index += max_fetch; | 400 | 371k | } | 401 | | | 402 | 371k | return Status::OK(); | 403 | 371k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 60.9k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 60.9k | DCHECK(_parsed); | 389 | 60.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 60.9k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 60.9k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 60.9k | *n = max_fetch; | 398 | 60.9k | if constexpr (forward_index) { | 399 | 60.9k | _cur_index += max_fetch; | 400 | 60.9k | } | 401 | | | 402 | 60.9k | return Status::OK(); | 403 | 60.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 2.30k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 2.30k | DCHECK(_parsed); | 389 | 2.30k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 2.30k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 2.30k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 2.30k | *n = max_fetch; | 398 | 2.30k | if constexpr (forward_index) { | 399 | 2.30k | _cur_index += max_fetch; | 400 | 2.30k | } | 401 | | | 402 | 2.30k | return Status::OK(); | 403 | 2.30k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 990 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 990 | DCHECK(_parsed); | 389 | 990 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 990 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 990 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 990 | *n = max_fetch; | 398 | 990 | if constexpr (forward_index) { | 399 | 990 | _cur_index += max_fetch; | 400 | 990 | } | 401 | | | 402 | 990 | return Status::OK(); | 403 | 990 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.25k | DCHECK(_parsed); | 389 | 8.25k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.25k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.25k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.25k | *n = max_fetch; | 398 | 8.25k | if constexpr (forward_index) { | 399 | 8.25k | _cur_index += max_fetch; | 400 | 8.25k | } | 401 | | | 402 | 8.25k | return Status::OK(); | 403 | 8.25k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 1.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.26k | DCHECK(_parsed); | 389 | 1.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.26k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.26k | *n = max_fetch; | 398 | 1.26k | if constexpr (forward_index) { | 399 | 1.26k | _cur_index += max_fetch; | 400 | 1.26k | } | 401 | | | 402 | 1.26k | return Status::OK(); | 403 | 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 | 387 | 7.56k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.56k | DCHECK(_parsed); | 389 | 7.57k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.56k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.56k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.56k | *n = max_fetch; | 398 | 7.56k | if constexpr (forward_index) { | 399 | 7.56k | _cur_index += max_fetch; | 400 | 7.56k | } | 401 | | | 402 | 7.56k | return Status::OK(); | 403 | 7.56k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 30.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 30.4k | DCHECK(_parsed); | 389 | 30.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 30.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 30.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 30.4k | *n = max_fetch; | 398 | 30.4k | if constexpr (forward_index) { | 399 | 30.4k | _cur_index += max_fetch; | 400 | 30.4k | } | 401 | | | 402 | 30.4k | return Status::OK(); | 403 | 30.4k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 20.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.1k | DCHECK(_parsed); | 389 | 20.1k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.1k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 20.1k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.1k | *n = max_fetch; | 398 | 20.1k | if constexpr (forward_index) { | 399 | 20.1k | _cur_index += max_fetch; | 400 | 20.1k | } | 401 | | | 402 | 20.1k | return Status::OK(); | 403 | 20.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 3.20k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.20k | DCHECK(_parsed); | 389 | 3.20k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.20k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.20k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.20k | *n = max_fetch; | 398 | 3.20k | if constexpr (forward_index) { | 399 | 3.20k | _cur_index += max_fetch; | 400 | 3.20k | } | 401 | | | 402 | 3.20k | return Status::OK(); | 403 | 3.20k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 658 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 658 | DCHECK(_parsed); | 389 | 658 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 658 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 658 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 658 | *n = max_fetch; | 398 | 658 | if constexpr (forward_index) { | 399 | 658 | _cur_index += max_fetch; | 400 | 658 | } | 401 | | | 402 | 658 | return Status::OK(); | 403 | 658 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 678 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 678 | DCHECK(_parsed); | 389 | 678 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 678 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 678 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 678 | *n = max_fetch; | 398 | 678 | if constexpr (forward_index) { | 399 | 678 | _cur_index += max_fetch; | 400 | 678 | } | 401 | | | 402 | 678 | return Status::OK(); | 403 | 678 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 98.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 98.8k | DCHECK(_parsed); | 389 | 98.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 98.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 98.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 98.8k | *n = max_fetch; | 398 | 98.8k | if constexpr (forward_index) { | 399 | 98.8k | _cur_index += max_fetch; | 400 | 98.8k | } | 401 | | | 402 | 98.8k | return Status::OK(); | 403 | 98.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.78M | 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 | 405 | 162k | 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 | 405 | 11.8k | 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 | 405 | 780k | 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 | 405 | 100k | 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 | 405 | 13.5k | 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 | 405 | 92.1k | 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 | 405 | 6.29k | 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 | 405 | 9.30k | 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 | 405 | 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 | 405 | 4.01k | 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 | 405 | 370k | 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 | 405 | 60.9k | 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 | 405 | 2.30k | 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 | 405 | 990 | 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 | 405 | 8.25k | 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 | 405 | 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 | 405 | 7.57k | 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 | 405 | 30.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 20.1k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.20k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 659 | 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 | 405 | 678 | 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 | 405 | 99.0k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
|
406 | | |
407 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
408 | 452k | MutableColumnPtr& dst) override { |
409 | 452k | DCHECK(_parsed); |
410 | 452k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 452k | auto total = *n; |
416 | 452k | auto read_count = 0; |
417 | 452k | _buffer.resize(total); |
418 | 137M | for (size_t i = 0; i < total; ++i) { |
419 | 137M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 137M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 16.6k | break; |
422 | 16.6k | } |
423 | | |
424 | 137M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 137M | } |
426 | | |
427 | 453k | if (LIKELY(read_count > 0)) { |
428 | 453k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 453k | } |
430 | | |
431 | 452k | *n = read_count; |
432 | 452k | return Status::OK(); |
433 | 452k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 53.2k | MutableColumnPtr& dst) override { | 409 | 53.2k | DCHECK(_parsed); | 410 | 53.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 53.2k | auto total = *n; | 416 | 53.2k | auto read_count = 0; | 417 | 53.2k | _buffer.resize(total); | 418 | 2.24M | for (size_t i = 0; i < total; ++i) { | 419 | 2.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 122 | break; | 422 | 122 | } | 423 | | | 424 | 2.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.19M | } | 426 | | | 427 | 53.2k | if (LIKELY(read_count > 0)) { | 428 | 53.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 53.2k | } | 430 | | | 431 | 53.2k | *n = read_count; | 432 | 53.2k | return Status::OK(); | 433 | 53.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.37k | MutableColumnPtr& dst) override { | 409 | 9.37k | DCHECK(_parsed); | 410 | 9.37k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.37k | auto total = *n; | 416 | 9.37k | auto read_count = 0; | 417 | 9.37k | _buffer.resize(total); | 418 | 655k | for (size_t i = 0; i < total; ++i) { | 419 | 646k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 646k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 13 | break; | 422 | 13 | } | 423 | | | 424 | 646k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 646k | } | 426 | | | 427 | 9.37k | if (LIKELY(read_count > 0)) { | 428 | 9.37k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.37k | } | 430 | | | 431 | 9.37k | *n = read_count; | 432 | 9.37k | return Status::OK(); | 433 | 9.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 103k | MutableColumnPtr& dst) override { | 409 | 103k | DCHECK(_parsed); | 410 | 103k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 103k | auto total = *n; | 416 | 103k | auto read_count = 0; | 417 | 103k | _buffer.resize(total); | 418 | 49.8M | for (size_t i = 0; i < total; ++i) { | 419 | 49.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 49.7M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 3.75k | break; | 422 | 3.75k | } | 423 | | | 424 | 49.7M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 49.7M | } | 426 | | | 427 | 103k | if (LIKELY(read_count > 0)) { | 428 | 103k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 103k | } | 430 | | | 431 | 103k | *n = read_count; | 432 | 103k | return Status::OK(); | 433 | 103k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 73.9k | MutableColumnPtr& dst) override { | 409 | 73.9k | DCHECK(_parsed); | 410 | 73.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 73.9k | auto total = *n; | 416 | 73.9k | auto read_count = 0; | 417 | 73.9k | _buffer.resize(total); | 418 | 28.5M | for (size_t i = 0; i < total; ++i) { | 419 | 28.4M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 28.4M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 3.04k | break; | 422 | 3.04k | } | 423 | | | 424 | 28.4M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 28.4M | } | 426 | | | 427 | 73.9k | if (LIKELY(read_count > 0)) { | 428 | 73.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 73.9k | } | 430 | | | 431 | 73.9k | *n = read_count; | 432 | 73.9k | return Status::OK(); | 433 | 73.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 8.61k | MutableColumnPtr& dst) override { | 409 | 8.61k | DCHECK(_parsed); | 410 | 8.61k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 8.61k | auto total = *n; | 416 | 8.61k | auto read_count = 0; | 417 | 8.61k | _buffer.resize(total); | 418 | 1.46M | for (size_t i = 0; i < total; ++i) { | 419 | 1.45M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.45M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 528 | break; | 422 | 528 | } | 423 | | | 424 | 1.45M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.45M | } | 426 | | | 427 | 8.61k | if (LIKELY(read_count > 0)) { | 428 | 8.61k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 8.61k | } | 430 | | | 431 | 8.61k | *n = read_count; | 432 | 8.61k | return Status::OK(); | 433 | 8.61k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 65.2k | MutableColumnPtr& dst) override { | 409 | 65.2k | DCHECK(_parsed); | 410 | 65.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 65.2k | auto total = *n; | 416 | 65.2k | auto read_count = 0; | 417 | 65.2k | _buffer.resize(total); | 418 | 3.09M | for (size_t i = 0; i < total; ++i) { | 419 | 3.02M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 3.02M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 1.36k | break; | 422 | 1.36k | } | 423 | | | 424 | 3.02M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 3.02M | } | 426 | | | 427 | 65.3k | if (LIKELY(read_count > 0)) { | 428 | 65.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 65.3k | } | 430 | | | 431 | 65.2k | *n = read_count; | 432 | 65.2k | return Status::OK(); | 433 | 65.2k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 6.36k | MutableColumnPtr& dst) override { | 409 | 6.36k | DCHECK(_parsed); | 410 | 6.36k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 6.36k | auto total = *n; | 416 | 6.36k | auto read_count = 0; | 417 | 6.36k | _buffer.resize(total); | 418 | 1.22M | for (size_t i = 0; i < total; ++i) { | 419 | 1.21M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.21M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 31 | break; | 422 | 31 | } | 423 | | | 424 | 1.21M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.21M | } | 426 | | | 427 | 6.37k | if (LIKELY(read_count > 0)) { | 428 | 6.37k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 6.37k | } | 430 | | | 431 | 6.36k | *n = read_count; | 432 | 6.36k | return Status::OK(); | 433 | 6.36k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.72k | MutableColumnPtr& dst) override { | 409 | 7.72k | DCHECK(_parsed); | 410 | 7.72k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.72k | auto total = *n; | 416 | 7.72k | auto read_count = 0; | 417 | 7.72k | _buffer.resize(total); | 418 | 1.37M | for (size_t i = 0; i < total; ++i) { | 419 | 1.36M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.36M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 361 | break; | 422 | 361 | } | 423 | | | 424 | 1.36M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.36M | } | 426 | | | 427 | 7.73k | if (LIKELY(read_count > 0)) { | 428 | 7.73k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.73k | } | 430 | | | 431 | 7.72k | *n = read_count; | 432 | 7.72k | return Status::OK(); | 433 | 7.72k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.37k | MutableColumnPtr& dst) override { | 409 | 1.37k | DCHECK(_parsed); | 410 | 1.37k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.37k | auto total = *n; | 416 | 1.37k | auto read_count = 0; | 417 | 1.37k | _buffer.resize(total); | 418 | 495k | for (size_t i = 0; i < total; ++i) { | 419 | 494k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 494k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 494k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 494k | } | 426 | | | 427 | 1.37k | if (LIKELY(read_count > 0)) { | 428 | 1.37k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.37k | } | 430 | | | 431 | 1.37k | *n = read_count; | 432 | 1.37k | return Status::OK(); | 433 | 1.37k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.2k | MutableColumnPtr& dst) override { | 409 | 28.2k | DCHECK(_parsed); | 410 | 28.2k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.2k | auto total = *n; | 416 | 28.2k | auto read_count = 0; | 417 | 28.2k | _buffer.resize(total); | 418 | 6.22M | for (size_t i = 0; i < total; ++i) { | 419 | 6.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 533 | break; | 422 | 533 | } | 423 | | | 424 | 6.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.19M | } | 426 | | | 427 | 28.2k | if (LIKELY(read_count > 0)) { | 428 | 28.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.2k | } | 430 | | | 431 | 28.2k | *n = read_count; | 432 | 28.2k | return Status::OK(); | 433 | 28.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.5k | MutableColumnPtr& dst) override { | 409 | 32.5k | DCHECK(_parsed); | 410 | 32.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.5k | auto total = *n; | 416 | 32.5k | auto read_count = 0; | 417 | 32.5k | _buffer.resize(total); | 418 | 10.0M | for (size_t i = 0; i < total; ++i) { | 419 | 10.0M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 10.0M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 184 | break; | 422 | 184 | } | 423 | | | 424 | 10.0M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 10.0M | } | 426 | | | 427 | 32.6k | if (LIKELY(read_count > 0)) { | 428 | 32.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.6k | } | 430 | | | 431 | 32.5k | *n = read_count; | 432 | 32.5k | return Status::OK(); | 433 | 32.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.17k | MutableColumnPtr& dst) override { | 409 | 1.17k | DCHECK(_parsed); | 410 | 1.17k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.17k | auto total = *n; | 416 | 1.17k | auto read_count = 0; | 417 | 1.17k | _buffer.resize(total); | 418 | 4.01k | for (size_t i = 0; i < total; ++i) { | 419 | 2.83k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 2.83k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 2.83k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 2.83k | } | 426 | | | 427 | 1.17k | if (LIKELY(read_count > 0)) { | 428 | 1.17k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.17k | } | 430 | | | 431 | 1.17k | *n = read_count; | 432 | 1.17k | return Status::OK(); | 433 | 1.17k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 1.73k | MutableColumnPtr& dst) override { | 409 | 1.73k | DCHECK(_parsed); | 410 | 1.73k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.73k | auto total = *n; | 416 | 1.73k | auto read_count = 0; | 417 | 1.73k | _buffer.resize(total); | 418 | 506k | for (size_t i = 0; i < total; ++i) { | 419 | 504k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 504k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 241 | break; | 422 | 241 | } | 423 | | | 424 | 504k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 504k | } | 426 | | | 427 | 1.73k | if (LIKELY(read_count > 0)) { | 428 | 1.73k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.73k | } | 430 | | | 431 | 1.73k | *n = read_count; | 432 | 1.73k | return Status::OK(); | 433 | 1.73k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 12.6k | MutableColumnPtr& dst) override { | 409 | 12.6k | DCHECK(_parsed); | 410 | 12.6k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 12.6k | auto total = *n; | 416 | 12.6k | auto read_count = 0; | 417 | 12.6k | _buffer.resize(total); | 418 | 26.8k | for (size_t i = 0; i < total; ++i) { | 419 | 14.1k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.1k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.1k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.1k | } | 426 | | | 427 | 12.6k | if (LIKELY(read_count > 0)) { | 428 | 12.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 12.6k | } | 430 | | | 431 | 12.6k | *n = read_count; | 432 | 12.6k | return Status::OK(); | 433 | 12.6k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 129 | MutableColumnPtr& dst) override { | 409 | 129 | DCHECK(_parsed); | 410 | 129 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 129 | auto total = *n; | 416 | 129 | auto read_count = 0; | 417 | 129 | _buffer.resize(total); | 418 | 263 | for (size_t i = 0; i < total; ++i) { | 419 | 134 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 134 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 134 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 134 | } | 426 | | | 427 | 129 | if (LIKELY(read_count > 0)) { | 428 | 129 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 129 | } | 430 | | | 431 | 129 | *n = read_count; | 432 | 129 | return Status::OK(); | 433 | 129 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.60k | MutableColumnPtr& dst) override { | 409 | 4.60k | DCHECK(_parsed); | 410 | 4.60k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.60k | auto total = *n; | 416 | 4.60k | auto read_count = 0; | 417 | 4.60k | _buffer.resize(total); | 418 | 19.1k | for (size_t i = 0; i < total; ++i) { | 419 | 14.5k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 14.5k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 14.5k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 14.5k | } | 426 | | | 427 | 4.60k | if (LIKELY(read_count > 0)) { | 428 | 4.60k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.60k | } | 430 | | | 431 | 4.60k | *n = read_count; | 432 | 4.60k | return Status::OK(); | 433 | 4.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 27.3k | MutableColumnPtr& dst) override { | 409 | 27.3k | DCHECK(_parsed); | 410 | 27.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 27.3k | auto total = *n; | 416 | 27.3k | auto read_count = 0; | 417 | 27.3k | _buffer.resize(total); | 418 | 22.9M | for (size_t i = 0; i < total; ++i) { | 419 | 22.9M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 22.9M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 5.74k | break; | 422 | 5.74k | } | 423 | | | 424 | 22.9M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 22.9M | } | 426 | | | 427 | 27.4k | if (LIKELY(read_count > 0)) { | 428 | 27.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 27.4k | } | 430 | | | 431 | 27.3k | *n = read_count; | 432 | 27.3k | return Status::OK(); | 433 | 27.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.4k | MutableColumnPtr& dst) override { | 409 | 13.4k | DCHECK(_parsed); | 410 | 13.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.4k | auto total = *n; | 416 | 13.4k | auto read_count = 0; | 417 | 13.4k | _buffer.resize(total); | 418 | 9.09M | for (size_t i = 0; i < total; ++i) { | 419 | 9.07M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.07M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 695 | break; | 422 | 695 | } | 423 | | | 424 | 9.07M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.07M | } | 426 | | | 427 | 13.4k | if (LIKELY(read_count > 0)) { | 428 | 13.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.4k | } | 430 | | | 431 | 13.4k | *n = read_count; | 432 | 13.4k | return Status::OK(); | 433 | 13.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 935 | MutableColumnPtr& dst) override { | 409 | 935 | DCHECK(_parsed); | 410 | 935 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 935 | auto total = *n; | 416 | 935 | auto read_count = 0; | 417 | 935 | _buffer.resize(total); | 418 | 2.39k | for (size_t i = 0; i < total; ++i) { | 419 | 1.45k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.45k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 1.45k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.45k | } | 426 | | | 427 | 936 | if (LIKELY(read_count > 0)) { | 428 | 936 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 936 | } | 430 | | | 431 | 935 | *n = read_count; | 432 | 935 | return Status::OK(); | 433 | 935 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 289 | MutableColumnPtr& dst) override { | 409 | 289 | DCHECK(_parsed); | 410 | 289 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 289 | auto total = *n; | 416 | 289 | auto read_count = 0; | 417 | 289 | _buffer.resize(total); | 418 | 823 | for (size_t i = 0; i < total; ++i) { | 419 | 534 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 534 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 534 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 534 | } | 426 | | | 427 | 290 | if (LIKELY(read_count > 0)) { | 428 | 290 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 290 | } | 430 | | | 431 | 289 | *n = read_count; | 432 | 289 | return Status::OK(); | 433 | 289 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 326 | MutableColumnPtr& dst) override { | 409 | 326 | DCHECK(_parsed); | 410 | 326 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 326 | auto total = *n; | 416 | 326 | auto read_count = 0; | 417 | 326 | _buffer.resize(total); | 418 | 1.18k | for (size_t i = 0; i < total; ++i) { | 419 | 857 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 857 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 857 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 857 | } | 426 | | | 427 | 326 | if (LIKELY(read_count > 0)) { | 428 | 326 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 326 | } | 430 | | | 431 | 326 | *n = read_count; | 432 | 326 | return Status::OK(); | 433 | 326 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 499 | MutableColumnPtr& dst) override { | 409 | 499 | DCHECK(_parsed); | 410 | 499 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 499 | auto total = *n; | 416 | 499 | auto read_count = 0; | 417 | 499 | _buffer.resize(total); | 418 | 1.10k | for (size_t i = 0; i < total; ++i) { | 419 | 610 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 610 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 610 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 610 | } | 426 | | | 427 | 499 | if (LIKELY(read_count > 0)) { | 428 | 499 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 499 | } | 430 | | | 431 | 499 | *n = read_count; | 432 | 499 | return Status::OK(); | 433 | 499 | } |
|
434 | | |
435 | 51.6k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 51.6k | return next_batch<false>(n, dst); |
437 | 51.6k | } 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_9FieldTypeE5EE15peek_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 | 435 | 51.6k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 51.6k | return next_batch<false>(n, dst); | 437 | 51.6k | } |
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 |
438 | | |
439 | 4 | size_t count() const override { return _num_elements; }Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv Line | Count | Source | 439 | 4 | size_t count() const override { return _num_elements; } |
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 |
440 | | |
441 | 3.72M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 213k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 212k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.92M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 101k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 101k | 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 | 441 | 222k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 193k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 204k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 220k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 23.3k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE13current_indexEv Line | Count | Source | 441 | 276 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv Line | Count | Source | 441 | 193k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.09k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv Line | Count | Source | 441 | 11 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv Line | Count | Source | 441 | 3.42k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 913 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 105k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv Line | Count | Source | 441 | 309 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv Line | Count | Source | 441 | 39 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv Line | Count | Source | 441 | 45 | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE13current_indexEv Line | Count | Source | 441 | 769 | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 140M | char* get_data(size_t index) const { |
444 | 140M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 140M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 2.35M | char* get_data(size_t index) const { | 444 | 2.35M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.35M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 658k | char* get_data(size_t index) const { | 444 | 658k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 658k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 51.8M | char* get_data(size_t index) const { | 444 | 51.8M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 51.8M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 28.5M | char* get_data(size_t index) const { | 444 | 28.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 28.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.47M | char* get_data(size_t index) const { | 444 | 1.47M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.47M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 3.16M | char* get_data(size_t index) const { | 444 | 3.16M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 3.16M | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.22M | char* get_data(size_t index) const { | 444 | 1.22M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.22M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.37M | char* get_data(size_t index) const { | 444 | 1.37M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.37M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm Line | Count | Source | 443 | 93 | char* get_data(size_t index) const { | 444 | 93 | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 93 | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm Line | Count | Source | 443 | 498k | char* get_data(size_t index) const { | 444 | 498k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 498k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.56M | char* get_data(size_t index) const { | 444 | 6.56M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.56M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 10.0M | char* get_data(size_t index) const { | 444 | 10.0M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 10.0M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 5.13k | char* get_data(size_t index) const { | 444 | 5.13k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.13k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 505k | char* get_data(size_t index) const { | 444 | 505k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 505k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm Line | Count | Source | 443 | 22.4k | char* get_data(size_t index) const { | 444 | 22.4k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.4k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm Line | Count | Source | 443 | 1.44k | char* get_data(size_t index) const { | 444 | 1.44k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.44k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm Line | Count | Source | 443 | 22.1k | char* get_data(size_t index) const { | 444 | 22.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.1k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm Line | Count | Source | 443 | 22.9M | char* get_data(size_t index) const { | 444 | 22.9M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 22.9M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 9.09M | char* get_data(size_t index) const { | 444 | 9.09M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.09M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.66k | char* get_data(size_t index) const { | 444 | 4.66k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.66k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm Line | Count | Source | 443 | 1.19k | char* get_data(size_t index) const { | 444 | 1.19k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.19k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm Line | Count | Source | 443 | 1.53k | char* get_data(size_t index) const { | 444 | 1.53k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.53k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE8get_dataEm Line | Count | Source | 443 | 99.3k | char* get_data(size_t index) const { | 444 | 99.3k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 99.3k | } |
|
446 | | |
447 | | private: |
448 | | void _copy_next_values(size_t n, void* data) { |
449 | | memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE); |
450 | | } |
451 | | |
452 | | using CppType = typename TypeTraits<Type>::CppType; |
453 | | |
454 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
455 | | |
456 | | Slice _data; |
457 | | PageDecoderOptions _options; |
458 | | bool _parsed; |
459 | | size_t _num_elements; |
460 | | size_t _num_element_after_padding; |
461 | | |
462 | | int _size_of_element; |
463 | | size_t _cur_index; |
464 | | |
465 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
466 | | |
467 | | friend class BinaryDictPageDecoder; |
468 | | }; |
469 | | |
470 | | } // namespace segment_v2 |
471 | | } // namespace doris |