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 | 855k | Status init() override { return reset(); }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 95 | 63.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 95 | 11.2k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 95 | 359k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 95 | 190k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 95 | 14.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 95 | 66.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 | 8.06k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 95 | 9.68k | 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 | 336 | 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.3k | 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 | 432 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 95 | 7.69k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 95 | 323 | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 95 | 9.75k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 95 | 12.1k | Status init() override { return reset(); } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 95 | 16.9k | 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 | 619 | Status init() override { return reset(); } |
|
96 | | |
97 | 153M | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 97 | 64.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 97 | 11.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 97 | 152M | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 97 | 578k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 97 | 13.9k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv Line | Count | Source | 97 | 66.6k | 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 | 7.68k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 97 | 10.3k | 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 | 426 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Line | Count | Source | 97 | 45.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Line | Count | Source | 97 | 44.1k | 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 | 553 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Line | Count | Source | 97 | 7.69k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Line | Count | Source | 97 | 297 | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Line | Count | Source | 97 | 5.24k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Line | Count | Source | 97 | 25.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Line | Count | Source | 97 | 17.9k | 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.4k | bool is_page_full() override { return _remain_element_capacity == 0; } |
|
98 | | |
99 | 1.65M | Status add(const uint8_t* vals, size_t* count) override { |
100 | 1.65M | return add_internal<false>(vals, count); |
101 | 1.65M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 99 | 64.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 64.8k | return add_internal<false>(vals, count); | 101 | 64.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 99 | 11.2k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 11.2k | return add_internal<false>(vals, count); | 101 | 11.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 99 | 727k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 727k | return add_internal<false>(vals, count); | 101 | 727k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 99 | 578k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 578k | return add_internal<false>(vals, count); | 101 | 578k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 99 | 13.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 13.9k | return add_internal<false>(vals, count); | 101 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm Line | Count | Source | 99 | 66.6k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 66.6k | return add_internal<false>(vals, count); | 101 | 66.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 99 | 7.69k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.69k | return add_internal<false>(vals, count); | 101 | 7.69k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 99 | 10.3k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 10.3k | return add_internal<false>(vals, count); | 101 | 10.3k | } |
_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 | 426 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 426 | return add_internal<false>(vals, count); | 101 | 426 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm Line | Count | Source | 99 | 45.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 45.4k | return add_internal<false>(vals, count); | 101 | 45.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm Line | Count | Source | 99 | 44.1k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 44.1k | return add_internal<false>(vals, count); | 101 | 44.1k | } |
_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 | 553 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 553 | return add_internal<false>(vals, count); | 101 | 553 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm Line | Count | Source | 99 | 7.70k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 7.70k | return add_internal<false>(vals, count); | 101 | 7.70k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm Line | Count | Source | 99 | 298 | Status add(const uint8_t* vals, size_t* count) override { | 100 | 298 | return add_internal<false>(vals, count); | 101 | 298 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm Line | Count | Source | 99 | 5.24k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 5.24k | return add_internal<false>(vals, count); | 101 | 5.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm Line | Count | Source | 99 | 25.8k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 25.8k | return add_internal<false>(vals, count); | 101 | 25.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm Line | Count | Source | 99 | 17.9k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 17.9k | return add_internal<false>(vals, count); | 101 | 17.9k | } |
_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.4k | Status add(const uint8_t* vals, size_t* count) override { | 100 | 26.4k | return add_internal<false>(vals, count); | 101 | 26.4k | } |
|
102 | | |
103 | 153M | Status single_add(const uint8_t* vals, size_t* count) { |
104 | 153M | return add_internal<true>(vals, count); |
105 | 153M | } |
106 | | |
107 | | template <bool single> |
108 | 151M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { |
109 | 151M | DCHECK(!_finished); |
110 | 151M | 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 | 151M | uint32_t to_add = cast_set<UInt32>( |
126 | 151M | 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 | 151M | int to_add_size = to_add * SIZE_OF_TYPE; |
129 | 151M | 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 | 151M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); |
133 | 154M | _count += to_add; |
134 | 154M | _remain_element_capacity -= to_add; |
135 | 154M | _raw_data_size += to_add_size; |
136 | | // return added number through count |
137 | 154M | *num_written = to_add; |
138 | 154M | 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 | 153M | } else if constexpr (SIZE_OF_TYPE == 4) { |
147 | 153M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = |
148 | 153M | *reinterpret_cast<const uint32_t*>(vals); |
149 | 153M | 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 | 153M | } |
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 | 154M | return Status::OK(); |
159 | 151M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 64.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 64.8k | DCHECK(!_finished); | 110 | 64.8k | 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.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 64.8k | 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.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 64.8k | 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.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 64.8k | _count += to_add; | 134 | 64.8k | _remain_element_capacity -= to_add; | 135 | 64.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 64.8k | *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.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 64.8k | return Status::OK(); | 159 | 64.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 11.2k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 11.2k | DCHECK(!_finished); | 110 | 11.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 | 11.2k | uint32_t to_add = cast_set<UInt32>( | 126 | 11.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 | 11.2k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 11.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 | 11.2k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 11.2k | _count += to_add; | 134 | 11.2k | _remain_element_capacity -= to_add; | 135 | 11.2k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 11.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 | 11.2k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 11.2k | return Status::OK(); | 159 | 11.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 727k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 727k | DCHECK(!_finished); | 110 | 727k | 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 | 727k | uint32_t to_add = cast_set<UInt32>( | 126 | 727k | 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 | 727k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 727k | 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 | 727k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 727k | _count += to_add; | 134 | 727k | _remain_element_capacity -= to_add; | 135 | 727k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 727k | *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 | 727k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 727k | return Status::OK(); | 159 | 727k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 578k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 578k | DCHECK(!_finished); | 110 | 578k | 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 | 578k | uint32_t to_add = cast_set<UInt32>( | 126 | 578k | 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 | 578k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 578k | 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 | 578k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 578k | _count += to_add; | 134 | 578k | _remain_element_capacity -= to_add; | 135 | 578k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 578k | *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 | 578k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 578k | return Status::OK(); | 159 | 578k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 13.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 13.9k | DCHECK(!_finished); | 110 | 13.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 | 13.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 13.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 | 13.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 13.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 | 13.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 13.9k | _count += to_add; | 134 | 13.9k | _remain_element_capacity -= to_add; | 135 | 13.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 13.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 | 13.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 13.9k | return Status::OK(); | 159 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 66.6k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 66.6k | DCHECK(!_finished); | 110 | 66.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 | 66.6k | uint32_t to_add = cast_set<UInt32>( | 126 | 66.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 | 66.6k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 66.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 | 66.6k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 66.6k | _count += to_add; | 134 | 66.6k | _remain_element_capacity -= to_add; | 135 | 66.6k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 66.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 | 66.6k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 66.6k | return Status::OK(); | 159 | 66.6k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.69k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.69k | DCHECK(!_finished); | 110 | 7.69k | 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.69k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.69k | 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.69k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.69k | 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.69k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.69k | _count += to_add; | 134 | 7.69k | _remain_element_capacity -= to_add; | 135 | 7.69k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.69k | *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.69k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.69k | return Status::OK(); | 159 | 7.69k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 10.3k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 10.3k | DCHECK(!_finished); | 110 | 10.3k | 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 | 10.3k | uint32_t to_add = cast_set<UInt32>( | 126 | 10.3k | 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 | 10.3k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 10.3k | 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 | 10.3k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 10.3k | _count += to_add; | 134 | 10.3k | _remain_element_capacity -= to_add; | 135 | 10.3k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 10.3k | *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 | 10.3k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 10.3k | return Status::OK(); | 159 | 10.3k | } |
_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 | 426 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 426 | DCHECK(!_finished); | 110 | 426 | 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 | 426 | uint32_t to_add = cast_set<UInt32>( | 126 | 426 | 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 | 426 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 426 | 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 | 426 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 426 | _count += to_add; | 134 | 426 | _remain_element_capacity -= to_add; | 135 | 426 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 426 | *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 | 426 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 426 | return Status::OK(); | 159 | 426 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 45.4k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 45.4k | DCHECK(!_finished); | 110 | 45.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 | 45.4k | uint32_t to_add = cast_set<UInt32>( | 126 | 45.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 | 45.4k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 45.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 | 45.4k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 45.4k | _count += to_add; | 134 | 45.4k | _remain_element_capacity -= to_add; | 135 | 45.4k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 45.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 | 45.4k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 45.4k | return Status::OK(); | 159 | 45.4k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 44.1k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 44.1k | DCHECK(!_finished); | 110 | 44.1k | 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.1k | uint32_t to_add = cast_set<UInt32>( | 126 | 44.1k | 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.1k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 44.1k | 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.1k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 44.1k | _count += to_add; | 134 | 44.1k | _remain_element_capacity -= to_add; | 135 | 44.1k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 44.1k | *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.1k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 44.1k | return Status::OK(); | 159 | 44.1k | } |
_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 | 553 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 553 | DCHECK(!_finished); | 110 | 553 | 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 | 553 | uint32_t to_add = cast_set<UInt32>( | 126 | 553 | 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 | 553 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 553 | 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 | 553 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 553 | _count += to_add; | 134 | 553 | _remain_element_capacity -= to_add; | 135 | 553 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 553 | *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 | 553 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 553 | return Status::OK(); | 159 | 553 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 7.69k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 7.69k | DCHECK(!_finished); | 110 | 7.69k | 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.69k | uint32_t to_add = cast_set<UInt32>( | 126 | 7.69k | 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.69k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 7.69k | 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.69k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 7.70k | _count += to_add; | 134 | 7.70k | _remain_element_capacity -= to_add; | 135 | 7.70k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 7.70k | *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.70k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 7.70k | return Status::OK(); | 159 | 7.69k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 298 | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 298 | DCHECK(!_finished); | 110 | 298 | 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 | 298 | uint32_t to_add = cast_set<UInt32>( | 126 | 298 | 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 | 298 | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 298 | 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 | 298 | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 298 | _count += to_add; | 134 | 298 | _remain_element_capacity -= to_add; | 135 | 298 | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 298 | *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 | 298 | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 298 | return Status::OK(); | 159 | 298 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 5.24k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 5.24k | DCHECK(!_finished); | 110 | 5.24k | 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.24k | uint32_t to_add = cast_set<UInt32>( | 126 | 5.24k | 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.24k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 5.24k | 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.24k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 5.24k | _count += to_add; | 134 | 5.24k | _remain_element_capacity -= to_add; | 135 | 5.24k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 5.24k | *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.24k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 5.24k | return Status::OK(); | 159 | 5.24k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 25.8k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 25.8k | DCHECK(!_finished); | 110 | 25.8k | 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 | 25.8k | uint32_t to_add = cast_set<UInt32>( | 126 | 25.8k | 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 | 25.8k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 25.8k | 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 | 25.8k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 25.8k | _count += to_add; | 134 | 25.8k | _remain_element_capacity -= to_add; | 135 | 25.8k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 25.8k | *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 | 25.8k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 25.8k | return Status::OK(); | 159 | 25.8k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm Line | Count | Source | 108 | 17.9k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 17.9k | DCHECK(!_finished); | 110 | 17.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 | 17.9k | uint32_t to_add = cast_set<UInt32>( | 126 | 17.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 | 17.9k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 17.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 | 17.9k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 17.9k | _count += to_add; | 134 | 17.9k | _remain_element_capacity -= to_add; | 135 | 17.9k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 17.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 | 17.9k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 17.9k | return Status::OK(); | 159 | 17.9k | } |
_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.5k | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 26.5k | DCHECK(!_finished); | 110 | 26.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 | 26.5k | uint32_t to_add = cast_set<UInt32>( | 126 | 26.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 | 26.5k | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 26.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 | 26.5k | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 26.5k | _count += to_add; | 134 | 26.5k | _remain_element_capacity -= to_add; | 135 | 26.5k | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 26.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 | 26.5k | memcpy(&_data[orig_size], vals, to_add_size); | 158 | 26.5k | return Status::OK(); | 159 | 26.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm Line | Count | Source | 108 | 149M | inline Status add_internal(const uint8_t* vals, size_t* num_written) { | 109 | 149M | DCHECK(!_finished); | 110 | 149M | 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 | 149M | uint32_t to_add = cast_set<UInt32>( | 126 | 149M | 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 | 149M | int to_add_size = to_add * SIZE_OF_TYPE; | 129 | 149M | 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 | 149M | RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size)); | 133 | 153M | _count += to_add; | 134 | 153M | _remain_element_capacity -= to_add; | 135 | 153M | _raw_data_size += to_add_size; | 136 | | // return added number through count | 137 | 153M | *num_written = to_add; | 138 | 153M | 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 | 153M | } else if constexpr (SIZE_OF_TYPE == 4) { | 147 | 153M | *reinterpret_cast<uint32_t*>(&_data[orig_size]) = | 148 | 153M | *reinterpret_cast<const uint32_t*>(vals); | 149 | 153M | 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 | 153M | } | 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 | 153M | return Status::OK(); | 159 | 149M | } |
|
160 | | |
161 | 848k | Status finish(OwnedSlice* slice) override { |
162 | 848k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); |
163 | 849k | return Status::OK(); |
164 | 848k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 61.5k | Status finish(OwnedSlice* slice) override { | 162 | 61.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 61.5k | return Status::OK(); | 164 | 61.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 10.3k | Status finish(OwnedSlice* slice) override { | 162 | 10.3k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 10.3k | return Status::OK(); | 164 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 344k | Status finish(OwnedSlice* slice) override { | 162 | 344k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 344k | return Status::OK(); | 164 | 344k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 195k | Status finish(OwnedSlice* slice) override { | 162 | 195k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 195k | return Status::OK(); | 164 | 195k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 14.0k | Status finish(OwnedSlice* slice) override { | 162 | 14.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 14.0k | return Status::OK(); | 164 | 14.0k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 66.5k | Status finish(OwnedSlice* slice) override { | 162 | 66.5k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 66.5k | return Status::OK(); | 164 | 66.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.23k | Status finish(OwnedSlice* slice) override { | 162 | 7.23k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.23k | return Status::OK(); | 164 | 7.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.19k | Status finish(OwnedSlice* slice) override { | 162 | 9.19k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.19k | return Status::OK(); | 164 | 9.19k | } |
_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 | 351 | Status finish(OwnedSlice* slice) override { | 162 | 351 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 351 | return Status::OK(); | 164 | 351 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 38.2k | Status finish(OwnedSlice* slice) override { | 162 | 38.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 38.2k | return Status::OK(); | 164 | 38.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 43.4k | Status finish(OwnedSlice* slice) override { | 162 | 43.4k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 43.4k | return Status::OK(); | 164 | 43.4k | } |
_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 | 591 | Status finish(OwnedSlice* slice) override { | 162 | 591 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 591 | return Status::OK(); | 164 | 591 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 7.74k | Status finish(OwnedSlice* slice) override { | 162 | 7.74k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 7.74k | return Status::OK(); | 164 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 248 | Status finish(OwnedSlice* slice) override { | 162 | 248 | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 248 | return Status::OK(); | 164 | 248 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 9.75k | Status finish(OwnedSlice* slice) override { | 162 | 9.75k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 9.75k | return Status::OK(); | 164 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 19.2k | Status finish(OwnedSlice* slice) override { | 162 | 19.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 19.2k | return Status::OK(); | 164 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Line | Count | Source | 161 | 17.0k | Status finish(OwnedSlice* slice) override { | 162 | 17.0k | RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); }); | 163 | 17.0k | return Status::OK(); | 164 | 17.0k | } |
_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.99M | Status reset() override { |
167 | 1.99M | RETURN_IF_CATCH_EXCEPTION({ |
168 | 1.99M | size_t block_size = _options.data_page_size; |
169 | 1.99M | _count = 0; |
170 | 1.99M | _raw_data_size = 0; |
171 | 1.99M | _data.clear(); |
172 | 1.99M | _data.reserve(block_size); |
173 | 1.99M | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) |
174 | 1.99M | << "buffer must be naturally-aligned"; |
175 | 1.99M | _buffer.clear(); |
176 | 1.99M | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); |
177 | 1.99M | _finished = false; |
178 | 1.99M | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); |
179 | 1.99M | }); |
180 | 2.00M | return Status::OK(); |
181 | 1.99M | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 166 | 124k | Status reset() override { | 167 | 124k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 124k | size_t block_size = _options.data_page_size; | 169 | 124k | _count = 0; | 170 | 124k | _raw_data_size = 0; | 171 | 124k | _data.clear(); | 172 | 124k | _data.reserve(block_size); | 173 | 124k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 124k | << "buffer must be naturally-aligned"; | 175 | 124k | _buffer.clear(); | 176 | 124k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 124k | _finished = false; | 178 | 124k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 124k | }); | 180 | 124k | return Status::OK(); | 181 | 124k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 166 | 21.6k | Status reset() override { | 167 | 21.6k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 21.6k | size_t block_size = _options.data_page_size; | 169 | 21.6k | _count = 0; | 170 | 21.6k | _raw_data_size = 0; | 171 | 21.6k | _data.clear(); | 172 | 21.6k | _data.reserve(block_size); | 173 | 21.6k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 21.6k | << "buffer must be naturally-aligned"; | 175 | 21.6k | _buffer.clear(); | 176 | 21.6k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 21.6k | _finished = false; | 178 | 21.6k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 21.6k | }); | 180 | 21.6k | return Status::OK(); | 181 | 21.6k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 166 | 996k | Status reset() override { | 167 | 996k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 996k | size_t block_size = _options.data_page_size; | 169 | 996k | _count = 0; | 170 | 996k | _raw_data_size = 0; | 171 | 996k | _data.clear(); | 172 | 996k | _data.reserve(block_size); | 173 | 996k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 996k | << "buffer must be naturally-aligned"; | 175 | 996k | _buffer.clear(); | 176 | 996k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 996k | _finished = false; | 178 | 996k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 996k | }); | 180 | 998k | return Status::OK(); | 181 | 996k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 166 | 385k | Status reset() override { | 167 | 385k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 385k | size_t block_size = _options.data_page_size; | 169 | 385k | _count = 0; | 170 | 385k | _raw_data_size = 0; | 171 | 385k | _data.clear(); | 172 | 385k | _data.reserve(block_size); | 173 | 385k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 385k | << "buffer must be naturally-aligned"; | 175 | 385k | _buffer.clear(); | 176 | 385k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 385k | _finished = false; | 178 | 385k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 385k | }); | 180 | 386k | return Status::OK(); | 181 | 385k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 166 | 28.1k | Status reset() override { | 167 | 28.1k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 28.1k | size_t block_size = _options.data_page_size; | 169 | 28.1k | _count = 0; | 170 | 28.1k | _raw_data_size = 0; | 171 | 28.1k | _data.clear(); | 172 | 28.1k | _data.reserve(block_size); | 173 | 28.1k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 28.1k | << "buffer must be naturally-aligned"; | 175 | 28.1k | _buffer.clear(); | 176 | 28.1k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 28.1k | _finished = false; | 178 | 28.1k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 28.1k | }); | 180 | 28.2k | return Status::OK(); | 181 | 28.1k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv Line | Count | Source | 166 | 132k | Status reset() override { | 167 | 132k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 132k | size_t block_size = _options.data_page_size; | 169 | 132k | _count = 0; | 170 | 132k | _raw_data_size = 0; | 171 | 132k | _data.clear(); | 172 | 132k | _data.reserve(block_size); | 173 | 132k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 132k | << "buffer must be naturally-aligned"; | 175 | 132k | _buffer.clear(); | 176 | 132k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 132k | _finished = false; | 178 | 132k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 132k | }); | 180 | 133k | return Status::OK(); | 181 | 132k | } |
_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 | 15.2k | Status reset() override { | 167 | 15.2k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 15.2k | size_t block_size = _options.data_page_size; | 169 | 15.2k | _count = 0; | 170 | 15.2k | _raw_data_size = 0; | 171 | 15.2k | _data.clear(); | 172 | 15.2k | _data.reserve(block_size); | 173 | 15.2k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 15.2k | << "buffer must be naturally-aligned"; | 175 | 15.2k | _buffer.clear(); | 176 | 15.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 15.2k | _finished = false; | 178 | 15.2k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 15.2k | }); | 180 | 15.3k | return Status::OK(); | 181 | 15.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 166 | 18.8k | Status reset() override { | 167 | 18.8k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 18.8k | size_t block_size = _options.data_page_size; | 169 | 18.8k | _count = 0; | 170 | 18.8k | _raw_data_size = 0; | 171 | 18.8k | _data.clear(); | 172 | 18.8k | _data.reserve(block_size); | 173 | 18.8k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 18.8k | << "buffer must be naturally-aligned"; | 175 | 18.8k | _buffer.clear(); | 176 | 18.8k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 18.8k | _finished = false; | 178 | 18.8k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 18.8k | }); | 180 | 18.8k | return Status::OK(); | 181 | 18.8k | } |
_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 | 687 | Status reset() override { | 167 | 687 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 687 | size_t block_size = _options.data_page_size; | 169 | 687 | _count = 0; | 170 | 687 | _raw_data_size = 0; | 171 | 687 | _data.clear(); | 172 | 687 | _data.reserve(block_size); | 173 | 687 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 687 | << "buffer must be naturally-aligned"; | 175 | 687 | _buffer.clear(); | 176 | 687 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 687 | _finished = false; | 178 | 687 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 687 | }); | 180 | 687 | return Status::OK(); | 181 | 687 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv Line | Count | Source | 166 | 75.7k | Status reset() override { | 167 | 75.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 75.7k | size_t block_size = _options.data_page_size; | 169 | 75.7k | _count = 0; | 170 | 75.7k | _raw_data_size = 0; | 171 | 75.7k | _data.clear(); | 172 | 75.7k | _data.reserve(block_size); | 173 | 75.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 75.7k | << "buffer must be naturally-aligned"; | 175 | 75.7k | _buffer.clear(); | 176 | 75.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 75.7k | _finished = false; | 178 | 75.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 75.7k | }); | 180 | 75.8k | return Status::OK(); | 181 | 75.7k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv Line | Count | Source | 166 | 87.7k | Status reset() override { | 167 | 87.7k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 87.7k | size_t block_size = _options.data_page_size; | 169 | 87.7k | _count = 0; | 170 | 87.7k | _raw_data_size = 0; | 171 | 87.7k | _data.clear(); | 172 | 87.7k | _data.reserve(block_size); | 173 | 87.7k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 87.7k | << "buffer must be naturally-aligned"; | 175 | 87.7k | _buffer.clear(); | 176 | 87.7k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 87.7k | _finished = false; | 178 | 87.7k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 87.7k | }); | 180 | 87.8k | return Status::OK(); | 181 | 87.7k | } |
_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.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_9FieldTypeE16EE5resetEv Line | Count | Source | 166 | 570 | Status reset() override { | 167 | 570 | RETURN_IF_CATCH_EXCEPTION({ | 168 | 570 | size_t block_size = _options.data_page_size; | 169 | 570 | _count = 0; | 170 | 570 | _raw_data_size = 0; | 171 | 570 | _data.clear(); | 172 | 570 | _data.reserve(block_size); | 173 | 570 | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 570 | << "buffer must be naturally-aligned"; | 175 | 570 | _buffer.clear(); | 176 | 570 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 570 | _finished = false; | 178 | 570 | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 570 | }); | 180 | 570 | return Status::OK(); | 181 | 570 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv Line | Count | Source | 166 | 19.5k | Status reset() override { | 167 | 19.5k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 19.5k | size_t block_size = _options.data_page_size; | 169 | 19.5k | _count = 0; | 170 | 19.5k | _raw_data_size = 0; | 171 | 19.5k | _data.clear(); | 172 | 19.5k | _data.reserve(block_size); | 173 | 19.5k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 19.5k | << "buffer must be naturally-aligned"; | 175 | 19.5k | _buffer.clear(); | 176 | 19.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 19.5k | _finished = false; | 178 | 19.5k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 19.5k | }); | 180 | 19.5k | return Status::OK(); | 181 | 19.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv Line | Count | Source | 166 | 31.3k | Status reset() override { | 167 | 31.3k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 31.3k | size_t block_size = _options.data_page_size; | 169 | 31.3k | _count = 0; | 170 | 31.3k | _raw_data_size = 0; | 171 | 31.3k | _data.clear(); | 172 | 31.3k | _data.reserve(block_size); | 173 | 31.3k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 31.3k | << "buffer must be naturally-aligned"; | 175 | 31.3k | _buffer.clear(); | 176 | 31.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 31.3k | _finished = false; | 178 | 31.3k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 31.3k | }); | 180 | 31.3k | return Status::OK(); | 181 | 31.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv Line | Count | Source | 166 | 33.9k | Status reset() override { | 167 | 33.9k | RETURN_IF_CATCH_EXCEPTION({ | 168 | 33.9k | size_t block_size = _options.data_page_size; | 169 | 33.9k | _count = 0; | 170 | 33.9k | _raw_data_size = 0; | 171 | 33.9k | _data.clear(); | 172 | 33.9k | _data.reserve(block_size); | 173 | 33.9k | DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0) | 174 | 33.9k | << "buffer must be naturally-aligned"; | 175 | 33.9k | _buffer.clear(); | 176 | 33.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE); | 177 | 33.9k | _finished = false; | 178 | 33.9k | _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE); | 179 | 33.9k | }); | 180 | 33.9k | return Status::OK(); | 181 | 33.9k | } |
_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 | 38.9k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 185 | 3.66k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 185 | 1.15k | 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.29k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 185 | 1.67k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv Line | Count | Source | 185 | 901 | uint64_t size() const override { return _buffer.size(); } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 185 | 634 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 185 | 599 | 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.66k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv Line | Count | Source | 185 | 2.21k | 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 | 264 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv Line | Count | Source | 185 | 393 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv Line | Count | Source | 185 | 1.17k | 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 | 570k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 187 | 61.5k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 187 | 10.3k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 187 | 65.9k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 187 | 195k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 187 | 14.0k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv Line | Count | Source | 187 | 66.5k | 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 | 7.23k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.18k | 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 | 351 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Line | Count | Source | 187 | 38.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Line | Count | Source | 187 | 43.4k | 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 | 591 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Line | Count | Source | 187 | 7.74k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Line | Count | Source | 187 | 247 | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Line | Count | Source | 187 | 9.75k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Line | Count | Source | 187 | 19.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Line | Count | Source | 187 | 17.0k | 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 | 853k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 63.0k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 11.2k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 357k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 190k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 14.1k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 66.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 | 8.06k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.68k | : _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 | 336 | : _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.3k | : _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 | 432 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 7.66k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 323 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 9.75k | : _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.8k | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 191 | 1.20k | : _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 | 616 | : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {} |
|
192 | | |
193 | 849k | OwnedSlice _finish(int final_size_of_type) { |
194 | 849k | _data.resize(final_size_of_type * _count); |
195 | | |
196 | | // Do padding so that the input num of element is multiple of 8. |
197 | 849k | int num_elems_after_padding = ALIGN_UP(_count, 8); |
198 | 849k | int padding_elems = num_elems_after_padding - _count; |
199 | 849k | int padding_bytes = padding_elems * final_size_of_type; |
200 | 26.5M | for (int i = 0; i < padding_bytes; i++) { |
201 | 25.7M | _data.push_back(0); |
202 | 25.7M | } |
203 | | |
204 | | // reserve enough place for compression |
205 | 849k | _buffer.resize( |
206 | 849k | BITSHUFFLE_PAGE_HEADER_SIZE + |
207 | 849k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); |
208 | | |
209 | 849k | int64_t bytes = |
210 | 849k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], |
211 | 849k | num_elems_after_padding, final_size_of_type, 0); |
212 | 849k | 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 | 849k | encode_fixed32_le(&_buffer[0], _count); |
222 | 849k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); |
223 | 849k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); |
224 | 849k | encode_fixed32_le(&_buffer[12], final_size_of_type); |
225 | 849k | _finished = true; |
226 | | // before build(), update buffer length to the actual compressed size |
227 | 849k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); |
228 | 849k | return _buffer.build(); |
229 | 849k | } _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi Line | Count | Source | 193 | 61.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 61.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 61.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 61.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 61.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 410k | for (int i = 0; i < padding_bytes; i++) { | 201 | 349k | _data.push_back(0); | 202 | 349k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 61.5k | _buffer.resize( | 206 | 61.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 61.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 61.5k | int64_t bytes = | 210 | 61.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 61.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 61.5k | 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 | 61.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 61.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 61.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 61.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 61.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 61.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 61.5k | return _buffer.build(); | 229 | 61.5k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi Line | Count | Source | 193 | 10.3k | OwnedSlice _finish(int final_size_of_type) { | 194 | 10.3k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 10.3k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 10.3k | int padding_elems = num_elems_after_padding - _count; | 199 | 10.3k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 107k | for (int i = 0; i < padding_bytes; i++) { | 201 | 97.0k | _data.push_back(0); | 202 | 97.0k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 10.3k | _buffer.resize( | 206 | 10.3k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 10.3k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 10.3k | int64_t bytes = | 210 | 10.3k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 10.3k | num_elems_after_padding, final_size_of_type, 0); | 212 | 10.3k | 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 | 10.3k | encode_fixed32_le(&_buffer[0], _count); | 222 | 10.3k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 10.3k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 10.3k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 10.3k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 10.3k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 10.3k | return _buffer.build(); | 229 | 10.3k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi Line | Count | Source | 193 | 344k | OwnedSlice _finish(int final_size_of_type) { | 194 | 344k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 344k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 344k | int padding_elems = num_elems_after_padding - _count; | 199 | 344k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 6.68M | for (int i = 0; i < padding_bytes; i++) { | 201 | 6.33M | _data.push_back(0); | 202 | 6.33M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 344k | _buffer.resize( | 206 | 344k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 344k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 344k | int64_t bytes = | 210 | 344k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 344k | num_elems_after_padding, final_size_of_type, 0); | 212 | 344k | 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 | 344k | encode_fixed32_le(&_buffer[0], _count); | 222 | 344k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 344k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 344k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 344k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 344k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 344k | return _buffer.build(); | 229 | 344k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi Line | Count | Source | 193 | 195k | OwnedSlice _finish(int final_size_of_type) { | 194 | 195k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 195k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 195k | int padding_elems = num_elems_after_padding - _count; | 199 | 195k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 9.56M | for (int i = 0; i < padding_bytes; i++) { | 201 | 9.37M | _data.push_back(0); | 202 | 9.37M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 195k | _buffer.resize( | 206 | 195k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 195k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 195k | int64_t bytes = | 210 | 195k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 195k | num_elems_after_padding, final_size_of_type, 0); | 212 | 195k | 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 | 195k | encode_fixed32_le(&_buffer[0], _count); | 222 | 195k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 195k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 195k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 195k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 195k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 195k | return _buffer.build(); | 229 | 195k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi Line | Count | Source | 193 | 13.9k | OwnedSlice _finish(int final_size_of_type) { | 194 | 13.9k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 13.9k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 13.9k | int padding_elems = num_elems_after_padding - _count; | 199 | 13.9k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 934k | for (int i = 0; i < padding_bytes; i++) { | 201 | 920k | _data.push_back(0); | 202 | 920k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 13.9k | _buffer.resize( | 206 | 13.9k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 13.9k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 13.9k | int64_t bytes = | 210 | 13.9k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 13.9k | num_elems_after_padding, final_size_of_type, 0); | 212 | 13.9k | 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 | 13.9k | encode_fixed32_le(&_buffer[0], _count); | 222 | 13.9k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 13.9k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 13.9k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 13.9k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 13.9k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 13.9k | return _buffer.build(); | 229 | 13.9k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi Line | Count | Source | 193 | 66.5k | OwnedSlice _finish(int final_size_of_type) { | 194 | 66.5k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 66.5k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 66.5k | int padding_elems = num_elems_after_padding - _count; | 199 | 66.5k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 3.20M | for (int i = 0; i < padding_bytes; i++) { | 201 | 3.13M | _data.push_back(0); | 202 | 3.13M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 66.5k | _buffer.resize( | 206 | 66.5k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 66.5k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 66.5k | int64_t bytes = | 210 | 66.5k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 66.5k | num_elems_after_padding, final_size_of_type, 0); | 212 | 66.5k | 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 | 66.5k | encode_fixed32_le(&_buffer[0], _count); | 222 | 66.5k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 66.5k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 66.5k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 66.5k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 66.5k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 66.5k | return _buffer.build(); | 229 | 66.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi Line | Count | Source | 193 | 7.23k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.23k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.23k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.23k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.23k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 154k | for (int i = 0; i < padding_bytes; i++) { | 201 | 147k | _data.push_back(0); | 202 | 147k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.23k | _buffer.resize( | 206 | 7.23k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.23k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.23k | int64_t bytes = | 210 | 7.23k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.23k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.23k | 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.23k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.23k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.23k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.23k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.23k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.23k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.23k | return _buffer.build(); | 229 | 7.23k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi Line | Count | Source | 193 | 9.19k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.19k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.19k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.19k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.19k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 383k | for (int i = 0; i < padding_bytes; i++) { | 201 | 374k | _data.push_back(0); | 202 | 374k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.19k | _buffer.resize( | 206 | 9.19k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.19k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.19k | int64_t bytes = | 210 | 9.19k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.19k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.19k | 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.19k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.19k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.19k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.19k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.19k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.19k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.19k | return _buffer.build(); | 229 | 9.19k | } |
_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 | 351 | OwnedSlice _finish(int final_size_of_type) { | 194 | 351 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 351 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 351 | int padding_elems = num_elems_after_padding - _count; | 199 | 351 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 5.26k | for (int i = 0; i < padding_bytes; i++) { | 201 | 4.91k | _data.push_back(0); | 202 | 4.91k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 351 | _buffer.resize( | 206 | 351 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 351 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 351 | int64_t bytes = | 210 | 351 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 351 | num_elems_after_padding, final_size_of_type, 0); | 212 | 351 | 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 | 351 | encode_fixed32_le(&_buffer[0], _count); | 222 | 351 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 351 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 351 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 351 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 351 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 351 | return _buffer.build(); | 229 | 351 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi Line | Count | Source | 193 | 38.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 38.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 38.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 38.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 38.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 808k | for (int i = 0; i < padding_bytes; i++) { | 201 | 769k | _data.push_back(0); | 202 | 769k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 38.2k | _buffer.resize( | 206 | 38.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 38.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 38.2k | int64_t bytes = | 210 | 38.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 38.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 38.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 | 38.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 38.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 38.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 38.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 38.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 38.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 38.2k | return _buffer.build(); | 229 | 38.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi Line | Count | Source | 193 | 43.4k | OwnedSlice _finish(int final_size_of_type) { | 194 | 43.4k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 43.4k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 43.4k | int padding_elems = num_elems_after_padding - _count; | 199 | 43.4k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.83M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.79M | _data.push_back(0); | 202 | 1.79M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 43.4k | _buffer.resize( | 206 | 43.4k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 43.4k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 43.4k | int64_t bytes = | 210 | 43.4k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 43.4k | num_elems_after_padding, final_size_of_type, 0); | 212 | 43.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 | 43.4k | encode_fixed32_le(&_buffer[0], _count); | 222 | 43.4k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 43.4k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 43.4k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 43.4k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 43.4k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 43.4k | return _buffer.build(); | 229 | 43.4k | } |
_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 | 591 | OwnedSlice _finish(int final_size_of_type) { | 194 | 591 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 591 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 591 | int padding_elems = num_elems_after_padding - _count; | 199 | 591 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 13.2k | for (int i = 0; i < padding_bytes; i++) { | 201 | 12.6k | _data.push_back(0); | 202 | 12.6k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 591 | _buffer.resize( | 206 | 591 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 591 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 591 | int64_t bytes = | 210 | 591 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 591 | num_elems_after_padding, final_size_of_type, 0); | 212 | 591 | 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 | 591 | encode_fixed32_le(&_buffer[0], _count); | 222 | 591 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 591 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 591 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 591 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 591 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 591 | return _buffer.build(); | 229 | 591 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi Line | Count | Source | 193 | 7.74k | OwnedSlice _finish(int final_size_of_type) { | 194 | 7.74k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 7.74k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 7.74k | int padding_elems = num_elems_after_padding - _count; | 199 | 7.74k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 403k | for (int i = 0; i < padding_bytes; i++) { | 201 | 395k | _data.push_back(0); | 202 | 395k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 7.74k | _buffer.resize( | 206 | 7.74k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 7.74k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 7.74k | int64_t bytes = | 210 | 7.74k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 7.74k | num_elems_after_padding, final_size_of_type, 0); | 212 | 7.74k | 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.74k | encode_fixed32_le(&_buffer[0], _count); | 222 | 7.74k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 7.74k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 7.74k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 7.74k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 7.74k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 7.74k | return _buffer.build(); | 229 | 7.74k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi Line | Count | Source | 193 | 248 | OwnedSlice _finish(int final_size_of_type) { | 194 | 248 | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 248 | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 248 | int padding_elems = num_elems_after_padding - _count; | 199 | 248 | int padding_bytes = padding_elems * final_size_of_type; | 200 | 15.7k | for (int i = 0; i < padding_bytes; i++) { | 201 | 15.4k | _data.push_back(0); | 202 | 15.4k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 248 | _buffer.resize( | 206 | 248 | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 248 | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 248 | int64_t bytes = | 210 | 248 | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 248 | num_elems_after_padding, final_size_of_type, 0); | 212 | 248 | 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 | 248 | encode_fixed32_le(&_buffer[0], _count); | 222 | 248 | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 248 | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 248 | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 248 | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 248 | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 248 | return _buffer.build(); | 229 | 248 | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi Line | Count | Source | 193 | 9.75k | OwnedSlice _finish(int final_size_of_type) { | 194 | 9.75k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 9.75k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 9.75k | int padding_elems = num_elems_after_padding - _count; | 199 | 9.75k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 118k | for (int i = 0; i < padding_bytes; i++) { | 201 | 108k | _data.push_back(0); | 202 | 108k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 9.75k | _buffer.resize( | 206 | 9.75k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 9.75k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 9.75k | int64_t bytes = | 210 | 9.75k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 9.75k | num_elems_after_padding, final_size_of_type, 0); | 212 | 9.75k | 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.75k | encode_fixed32_le(&_buffer[0], _count); | 222 | 9.75k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 9.75k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 9.75k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 9.75k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 9.75k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 9.75k | return _buffer.build(); | 229 | 9.75k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi Line | Count | Source | 193 | 19.2k | OwnedSlice _finish(int final_size_of_type) { | 194 | 19.2k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 19.2k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 19.2k | int padding_elems = num_elems_after_padding - _count; | 199 | 19.2k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 490k | for (int i = 0; i < padding_bytes; i++) { | 201 | 471k | _data.push_back(0); | 202 | 471k | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 19.2k | _buffer.resize( | 206 | 19.2k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 19.2k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 19.2k | int64_t bytes = | 210 | 19.2k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 19.2k | num_elems_after_padding, final_size_of_type, 0); | 212 | 19.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 | 19.2k | encode_fixed32_le(&_buffer[0], _count); | 222 | 19.2k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 19.2k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 19.2k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 19.2k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 19.2k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 19.2k | return _buffer.build(); | 229 | 19.2k | } |
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi Line | Count | Source | 193 | 17.0k | OwnedSlice _finish(int final_size_of_type) { | 194 | 17.0k | _data.resize(final_size_of_type * _count); | 195 | | | 196 | | // Do padding so that the input num of element is multiple of 8. | 197 | 17.0k | int num_elems_after_padding = ALIGN_UP(_count, 8); | 198 | 17.0k | int padding_elems = num_elems_after_padding - _count; | 199 | 17.0k | int padding_bytes = padding_elems * final_size_of_type; | 200 | 1.14M | for (int i = 0; i < padding_bytes; i++) { | 201 | 1.12M | _data.push_back(0); | 202 | 1.12M | } | 203 | | | 204 | | // reserve enough place for compression | 205 | 17.0k | _buffer.resize( | 206 | 17.0k | BITSHUFFLE_PAGE_HEADER_SIZE + | 207 | 17.0k | bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0)); | 208 | | | 209 | 17.0k | int64_t bytes = | 210 | 17.0k | bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE], | 211 | 17.0k | num_elems_after_padding, final_size_of_type, 0); | 212 | 17.0k | 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.0k | encode_fixed32_le(&_buffer[0], _count); | 222 | 17.0k | encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes)); | 223 | 17.0k | encode_fixed32_le(&_buffer[8], num_elems_after_padding); | 224 | 17.0k | encode_fixed32_le(&_buffer[12], final_size_of_type); | 225 | 17.0k | _finished = true; | 226 | | // before build(), update buffer length to the actual compressed size | 227 | 17.0k | _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes); | 228 | 17.0k | return _buffer.build(); | 229 | 17.0k | } |
_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.1k | for (int i = 0; i < padding_bytes; i++) { | 201 | 49.5k | _data.push_back(0); | 202 | 49.5k | } | 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.39M | int& size_of_element) { |
253 | 2.39M | 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.39M | num_elements = decode_fixed32_le((const uint8_t*)&data[0]); |
259 | 2.39M | compressed_size = decode_fixed32_le((const uint8_t*)&data[4]); |
260 | 2.39M | num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]); |
261 | 2.39M | size_of_element = decode_fixed32_le((const uint8_t*)&data[12]); |
262 | 2.39M | 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.39M | switch (size_of_element) { |
271 | 220k | case 1: |
272 | 266k | case 2: |
273 | 269k | case 3: |
274 | 1.56M | case 4: |
275 | 2.27M | case 8: |
276 | 2.27M | case 12: |
277 | 2.38M | case 16: |
278 | 2.39M | case 32: |
279 | 2.39M | break; |
280 | 0 | default: |
281 | 0 | return Status::InternalError("invalid size_of_elem:{}", size_of_element); |
282 | 2.39M | } |
283 | 2.39M | return Status::OK(); |
284 | 2.39M | } |
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 | 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_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 22.7k | : _data(data), | 291 | 22.7k | _options(options), | 292 | 22.7k | _parsed(false), | 293 | 22.7k | _num_elements(0), | 294 | 22.7k | _num_element_after_padding(0), | 295 | 22.7k | _size_of_element(0), | 296 | 22.7k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 555k | : _data(data), | 291 | 555k | _options(options), | 292 | 555k | _parsed(false), | 293 | 555k | _num_elements(0), | 294 | 555k | _num_element_after_padding(0), | 295 | 555k | _size_of_element(0), | 296 | 555k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 116k | : _data(data), | 291 | 116k | _options(options), | 292 | 116k | _parsed(false), | 293 | 116k | _num_elements(0), | 294 | 116k | _num_element_after_padding(0), | 295 | 116k | _size_of_element(0), | 296 | 116k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 22.0k | : _data(data), | 291 | 22.0k | _options(options), | 292 | 22.0k | _parsed(false), | 293 | 22.0k | _num_elements(0), | 294 | 22.0k | _num_element_after_padding(0), | 295 | 22.0k | _size_of_element(0), | 296 | 22.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 87.9k | : _data(data), | 291 | 87.9k | _options(options), | 292 | 87.9k | _parsed(false), | 293 | 87.9k | _num_elements(0), | 294 | 87.9k | _num_element_after_padding(0), | 295 | 87.9k | _size_of_element(0), | 296 | 87.9k | _cur_index(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 14.4k | : _data(data), | 291 | 14.4k | _options(options), | 292 | 14.4k | _parsed(false), | 293 | 14.4k | _num_elements(0), | 294 | 14.4k | _num_element_after_padding(0), | 295 | 14.4k | _size_of_element(0), | 296 | 14.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 20.1k | : _data(data), | 291 | 20.1k | _options(options), | 292 | 20.1k | _parsed(false), | 293 | 20.1k | _num_elements(0), | 294 | 20.1k | _num_element_after_padding(0), | 295 | 20.1k | _size_of_element(0), | 296 | 20.1k | _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.60k | : _data(data), | 291 | 1.60k | _options(options), | 292 | 1.60k | _parsed(false), | 293 | 1.60k | _num_elements(0), | 294 | 1.60k | _num_element_after_padding(0), | 295 | 1.60k | _size_of_element(0), | 296 | 1.60k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 58.9k | : _data(data), | 291 | 58.9k | _options(options), | 292 | 58.9k | _parsed(false), | 293 | 58.9k | _num_elements(0), | 294 | 58.9k | _num_element_after_padding(0), | 295 | 58.9k | _size_of_element(0), | 296 | 58.9k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 66.4k | : _data(data), | 291 | 66.4k | _options(options), | 292 | 66.4k | _parsed(false), | 293 | 66.4k | _num_elements(0), | 294 | 66.4k | _num_element_after_padding(0), | 295 | 66.4k | _size_of_element(0), | 296 | 66.4k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 3.16k | : _data(data), | 291 | 3.16k | _options(options), | 292 | 3.16k | _parsed(false), | 293 | 3.16k | _num_elements(0), | 294 | 3.16k | _num_element_after_padding(0), | 295 | 3.16k | _size_of_element(0), | 296 | 3.16k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 2.23k | : _data(data), | 291 | 2.23k | _options(options), | 292 | 2.23k | _parsed(false), | 293 | 2.23k | _num_elements(0), | 294 | 2.23k | _num_element_after_padding(0), | 295 | 2.23k | _size_of_element(0), | 296 | 2.23k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 16.2k | : _data(data), | 291 | 16.2k | _options(options), | 292 | 16.2k | _parsed(false), | 293 | 16.2k | _num_elements(0), | 294 | 16.2k | _num_element_after_padding(0), | 295 | 16.2k | _size_of_element(0), | 296 | 16.2k | _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.2k | : _data(data), | 291 | 15.2k | _options(options), | 292 | 15.2k | _parsed(false), | 293 | 15.2k | _num_elements(0), | 294 | 15.2k | _num_element_after_padding(0), | 295 | 15.2k | _size_of_element(0), | 296 | 15.2k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 42.5k | : _data(data), | 291 | 42.5k | _options(options), | 292 | 42.5k | _parsed(false), | 293 | 42.5k | _num_elements(0), | 294 | 42.5k | _num_element_after_padding(0), | 295 | 42.5k | _size_of_element(0), | 296 | 42.5k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 30.0k | : _data(data), | 291 | 30.0k | _options(options), | 292 | 30.0k | _parsed(false), | 293 | 30.0k | _num_elements(0), | 294 | 30.0k | _num_element_after_padding(0), | 295 | 30.0k | _size_of_element(0), | 296 | 30.0k | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 1.75k | : _data(data), | 291 | 1.75k | _options(options), | 292 | 1.75k | _parsed(false), | 293 | 1.75k | _num_elements(0), | 294 | 1.75k | _num_element_after_padding(0), | 295 | 1.75k | _size_of_element(0), | 296 | 1.75k | _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 | 973 | : _data(data), | 291 | 973 | _options(options), | 292 | 973 | _parsed(false), | 293 | 973 | _num_elements(0), | 294 | 973 | _num_element_after_padding(0), | 295 | 973 | _size_of_element(0), | 296 | 973 | _cur_index(0) {} |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 290 | 5.17k | : _data(data), | 291 | 5.17k | _options(options), | 292 | 5.17k | _parsed(false), | 293 | 5.17k | _num_elements(0), | 294 | 5.17k | _num_element_after_padding(0), | 295 | 5.17k | _size_of_element(0), | 296 | 5.17k | _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 | 110k | Status init() override { | 299 | 110k | CHECK(!_parsed); | 300 | 110k | size_t unused; | 301 | 110k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 110k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 110k | if (_data.size != | 305 | 110k | _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 | 110k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 110k | _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 | 110k | 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 | 110k | _parsed = true; | 325 | 110k | return Status::OK(); | 326 | 110k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 298 | 22.7k | Status init() override { | 299 | 22.7k | CHECK(!_parsed); | 300 | 22.7k | size_t unused; | 301 | 22.7k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 22.7k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 22.7k | if (_data.size != | 305 | 22.7k | _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 | 22.7k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 22.7k | _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 | 22.7k | 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 | 22.7k | _parsed = true; | 325 | 22.7k | return Status::OK(); | 326 | 22.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 298 | 554k | Status init() override { | 299 | 554k | CHECK(!_parsed); | 300 | 554k | size_t unused; | 301 | 554k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 554k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 554k | if (_data.size != | 305 | 554k | _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 | 554k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 554k | _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 | 554k | 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 | 554k | _parsed = true; | 325 | 554k | return Status::OK(); | 326 | 554k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 298 | 116k | Status init() override { | 299 | 116k | CHECK(!_parsed); | 300 | 116k | size_t unused; | 301 | 116k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 116k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 116k | if (_data.size != | 305 | 116k | _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 | 116k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 116k | _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 | 116k | 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 | 116k | _parsed = true; | 325 | 116k | return Status::OK(); | 326 | 116k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 298 | 21.9k | Status init() override { | 299 | 21.9k | CHECK(!_parsed); | 300 | 21.9k | size_t unused; | 301 | 21.9k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 21.9k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 21.9k | if (_data.size != | 305 | 21.9k | _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 | 21.9k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 21.9k | _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 | 21.9k | 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 | 21.9k | _parsed = true; | 325 | 21.9k | return Status::OK(); | 326 | 21.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv Line | Count | Source | 298 | 87.8k | Status init() override { | 299 | 87.8k | CHECK(!_parsed); | 300 | 87.8k | size_t unused; | 301 | 87.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 87.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 87.8k | if (_data.size != | 305 | 87.8k | _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 | 87.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 87.8k | _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 | 87.8k | 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 | 87.8k | _parsed = true; | 325 | 87.8k | return Status::OK(); | 326 | 87.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 298 | 14.4k | Status init() override { | 299 | 14.4k | CHECK(!_parsed); | 300 | 14.4k | size_t unused; | 301 | 14.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 14.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 14.4k | if (_data.size != | 305 | 14.4k | _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 | 14.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 14.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 | 14.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 | 14.4k | _parsed = true; | 325 | 14.4k | return Status::OK(); | 326 | 14.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 298 | 20.1k | Status init() override { | 299 | 20.1k | CHECK(!_parsed); | 300 | 20.1k | size_t unused; | 301 | 20.1k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 20.1k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 20.1k | if (_data.size != | 305 | 20.1k | _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 | 20.1k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 20.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 | 20.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 | 20.1k | _parsed = true; | 325 | 20.1k | return Status::OK(); | 326 | 20.1k | } |
_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.60k | Status init() override { | 299 | 1.60k | CHECK(!_parsed); | 300 | 1.60k | size_t unused; | 301 | 1.60k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.60k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.60k | if (_data.size != | 305 | 1.60k | _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.60k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.60k | _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.60k | 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.60k | _parsed = true; | 325 | 1.60k | return Status::OK(); | 326 | 1.60k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv Line | Count | Source | 298 | 58.8k | Status init() override { | 299 | 58.8k | CHECK(!_parsed); | 300 | 58.8k | size_t unused; | 301 | 58.8k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 58.8k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 58.8k | if (_data.size != | 305 | 58.8k | _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 | 58.8k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 58.8k | _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 | 58.8k | 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 | 58.8k | _parsed = true; | 325 | 58.8k | return Status::OK(); | 326 | 58.8k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv Line | Count | Source | 298 | 66.4k | Status init() override { | 299 | 66.4k | CHECK(!_parsed); | 300 | 66.4k | size_t unused; | 301 | 66.4k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 66.4k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 66.4k | if (_data.size != | 305 | 66.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 | 66.4k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 66.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 | 66.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 | 66.4k | _parsed = true; | 325 | 66.4k | return Status::OK(); | 326 | 66.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE4initEv Line | Count | Source | 298 | 3.16k | Status init() override { | 299 | 3.16k | CHECK(!_parsed); | 300 | 3.16k | size_t unused; | 301 | 3.16k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 3.16k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 3.16k | if (_data.size != | 305 | 3.16k | _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.16k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 3.16k | _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.16k | 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.16k | _parsed = true; | 325 | 3.16k | return Status::OK(); | 326 | 3.16k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv Line | Count | Source | 298 | 2.23k | Status init() override { | 299 | 2.23k | CHECK(!_parsed); | 300 | 2.23k | size_t unused; | 301 | 2.23k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 2.23k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 2.23k | if (_data.size != | 305 | 2.23k | _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.23k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 2.23k | _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.23k | 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.23k | _parsed = true; | 325 | 2.23k | return Status::OK(); | 326 | 2.23k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv Line | Count | Source | 298 | 16.2k | Status init() override { | 299 | 16.2k | CHECK(!_parsed); | 300 | 16.2k | size_t unused; | 301 | 16.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 16.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 16.2k | if (_data.size != | 305 | 16.2k | _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.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 16.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 | 16.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 | 16.2k | _parsed = true; | 325 | 16.2k | return Status::OK(); | 326 | 16.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv Line | Count | Source | 298 | 1.34k | Status init() override { | 299 | 1.34k | CHECK(!_parsed); | 300 | 1.34k | size_t unused; | 301 | 1.34k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.34k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.34k | if (_data.size != | 305 | 1.34k | _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.34k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.34k | _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.34k | 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.34k | _parsed = true; | 325 | 1.34k | return Status::OK(); | 326 | 1.34k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv Line | Count | Source | 298 | 15.2k | Status init() override { | 299 | 15.2k | CHECK(!_parsed); | 300 | 15.2k | size_t unused; | 301 | 15.2k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 15.2k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 15.2k | if (_data.size != | 305 | 15.2k | _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.2k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 15.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 | 15.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 | 15.2k | _parsed = true; | 325 | 15.2k | return Status::OK(); | 326 | 15.2k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv Line | Count | Source | 298 | 42.5k | Status init() override { | 299 | 42.5k | CHECK(!_parsed); | 300 | 42.5k | size_t unused; | 301 | 42.5k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 42.5k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 42.5k | if (_data.size != | 305 | 42.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 | 42.5k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 42.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 | 42.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 | 42.5k | _parsed = true; | 325 | 42.5k | return Status::OK(); | 326 | 42.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv Line | Count | Source | 298 | 30.0k | Status init() override { | 299 | 30.0k | CHECK(!_parsed); | 300 | 30.0k | size_t unused; | 301 | 30.0k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 30.0k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 30.0k | if (_data.size != | 305 | 30.0k | _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 | 30.0k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 30.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 | 30.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 | 30.0k | _parsed = true; | 325 | 30.0k | return Status::OK(); | 326 | 30.0k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv Line | Count | Source | 298 | 1.75k | Status init() override { | 299 | 1.75k | CHECK(!_parsed); | 300 | 1.75k | size_t unused; | 301 | 1.75k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 1.75k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 1.75k | if (_data.size != | 305 | 1.75k | _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.75k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 1.75k | _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.75k | 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.75k | _parsed = true; | 325 | 1.75k | return Status::OK(); | 326 | 1.75k | } |
_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 | 968 | Status init() override { | 299 | 968 | CHECK(!_parsed); | 300 | 968 | size_t unused; | 301 | 968 | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 968 | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 968 | if (_data.size != | 305 | 968 | _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 | 968 | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 968 | _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 | 968 | 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 | 968 | _parsed = true; | 325 | 968 | return Status::OK(); | 326 | 968 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE4initEv Line | Count | Source | 298 | 5.17k | Status init() override { | 299 | 5.17k | CHECK(!_parsed); | 300 | 5.17k | size_t unused; | 301 | 5.17k | RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused, | 302 | 5.17k | _num_element_after_padding, _size_of_element)); | 303 | | | 304 | 5.17k | if (_data.size != | 305 | 5.17k | _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.17k | if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT && | 315 | 5.17k | _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.17k | 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.17k | _parsed = true; | 325 | 5.17k | return Status::OK(); | 326 | 5.17k | } |
|
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.32M | Status seek_to_position_in_page(size_t pos) override { |
335 | 18.4E | DCHECK(_parsed) << "Must call init()"; |
336 | 4.32M | if (_num_elements == 0) [[unlikely]] { |
337 | 4.01k | 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 | 4.01k | } |
342 | | |
343 | 4.32M | DCHECK_LE(pos, _num_elements); |
344 | 4.32M | _cur_index = pos; |
345 | 4.32M | return Status::OK(); |
346 | 4.32M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 309k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 309k | if (_num_elements == 0) [[unlikely]] { | 337 | 355 | 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 | 355 | } | 342 | | | 343 | 309k | DCHECK_LE(pos, _num_elements); | 344 | 309k | _cur_index = pos; | 345 | 309k | return Status::OK(); | 346 | 309k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 230k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 230k | 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 | 230k | DCHECK_LE(pos, _num_elements); | 344 | 230k | _cur_index = pos; | 345 | 230k | return Status::OK(); | 346 | 230k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.85M | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 1.85M | if (_num_elements == 0) [[unlikely]] { | 337 | 2.34k | 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 | 2.34k | } | 342 | | | 343 | 1.85M | DCHECK_LE(pos, _num_elements); | 344 | 1.85M | _cur_index = pos; | 345 | 1.85M | return Status::OK(); | 346 | 1.85M | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 212k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 212k | if (_num_elements == 0) [[unlikely]] { | 337 | 686 | 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 | 686 | } | 342 | | | 343 | 212k | DCHECK_LE(pos, _num_elements); | 344 | 212k | _cur_index = pos; | 345 | 212k | return Status::OK(); | 346 | 212k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 116k | Status seek_to_position_in_page(size_t pos) override { | 335 | 116k | DCHECK(_parsed) << "Must call init()"; | 336 | 116k | 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 | 116k | DCHECK_LE(pos, _num_elements); | 344 | 116k | _cur_index = pos; | 345 | 116k | return Status::OK(); | 346 | 116k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 13.3k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 13.3k | 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 | 13.3k | DCHECK_LE(pos, _num_elements); | 344 | 13.3k | _cur_index = pos; | 345 | 13.3k | return Status::OK(); | 346 | 13.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 234k | Status seek_to_position_in_page(size_t pos) override { | 335 | 234k | DCHECK(_parsed) << "Must call init()"; | 336 | 234k | 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 | 234k | DCHECK_LE(pos, _num_elements); | 344 | 234k | _cur_index = pos; | 345 | 234k | return Status::OK(); | 346 | 234k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 209k | Status seek_to_position_in_page(size_t pos) override { | 335 | 209k | DCHECK(_parsed) << "Must call init()"; | 336 | 209k | if (_num_elements == 0) [[unlikely]] { | 337 | 3 | 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 | } | 342 | | | 343 | 209k | DCHECK_LE(pos, _num_elements); | 344 | 209k | _cur_index = pos; | 345 | 209k | return Status::OK(); | 346 | 209k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 221k | Status seek_to_position_in_page(size_t pos) override { | 335 | 221k | DCHECK(_parsed) << "Must call init()"; | 336 | 221k | 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 | 221k | DCHECK_LE(pos, _num_elements); | 344 | 221k | _cur_index = pos; | 345 | 221k | return Status::OK(); | 346 | 221k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 497k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.4E | DCHECK(_parsed) << "Must call init()"; | 336 | 497k | 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 | 497k | DCHECK_LE(pos, _num_elements); | 344 | 497k | _cur_index = pos; | 345 | 497k | return Status::OK(); | 346 | 497k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 56.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 56.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 56.5k | 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 | 56.5k | DCHECK_LE(pos, _num_elements); | 344 | 56.5k | _cur_index = pos; | 345 | 56.5k | return Status::OK(); | 346 | 56.5k | } |
_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 | 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_9FieldTypeE40EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 7.07k | Status seek_to_position_in_page(size_t pos) override { | 335 | 7.07k | DCHECK(_parsed) << "Must call init()"; | 336 | 7.07k | if (_num_elements == 0) [[unlikely]] { | 337 | 355 | 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 | 355 | } | 342 | | | 343 | 7.07k | DCHECK_LE(pos, _num_elements); | 344 | 7.07k | _cur_index = pos; | 345 | 7.07k | return Status::OK(); | 346 | 7.07k | } |
_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 | 868 | Status seek_to_position_in_page(size_t pos) override { | 335 | 868 | DCHECK(_parsed) << "Must call init()"; | 336 | 868 | 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 | 868 | DCHECK_LE(pos, _num_elements); | 344 | 868 | _cur_index = pos; | 345 | 868 | return Status::OK(); | 346 | 868 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 18.7k | Status seek_to_position_in_page(size_t pos) override { | 335 | 18.7k | DCHECK(_parsed) << "Must call init()"; | 336 | 18.7k | 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 | 18.7k | DCHECK_LE(pos, _num_elements); | 344 | 18.7k | _cur_index = pos; | 345 | 18.7k | return Status::OK(); | 346 | 18.7k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 117k | Status seek_to_position_in_page(size_t pos) override { | 335 | 117k | DCHECK(_parsed) << "Must call init()"; | 336 | 117k | 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 | 117k | DCHECK_LE(pos, _num_elements); | 344 | 117k | _cur_index = pos; | 345 | 117k | return Status::OK(); | 346 | 117k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Line | Count | Source | 334 | 1.98k | Status seek_to_position_in_page(size_t pos) override { | 335 | 1.98k | DCHECK(_parsed) << "Must call init()"; | 336 | 1.98k | 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.98k | DCHECK_LE(pos, _num_elements); | 344 | 1.98k | _cur_index = pos; | 345 | 1.98k | return Status::OK(); | 346 | 1.98k | } |
_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 | 11.5k | Status seek_to_position_in_page(size_t pos) override { | 335 | 11.5k | DCHECK(_parsed) << "Must call init()"; | 336 | 11.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 | 11.5k | DCHECK_LE(pos, _num_elements); | 344 | 11.5k | _cur_index = pos; | 345 | 11.5k | return Status::OK(); | 346 | 11.5k | } |
|
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 | 72 | left = mid + 1; |
368 | 75 | } else { |
369 | 75 | right = mid; |
370 | 75 | } |
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 | 26 | left = mid + 1; | 368 | 26 | } else { | 369 | 23 | right = mid; | 370 | 23 | } | 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 | 22 | left = mid + 1; | 368 | 27 | } else { | 369 | 27 | right = mid; | 370 | 27 | } | 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 | 24 | left = mid + 1; | 368 | 25 | } else { | 369 | 25 | right = mid; | 370 | 25 | } | 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.55M | Status next_batch(size_t* n, MutableColumnPtr& dst) { |
388 | 1.55M | DCHECK(_parsed); |
389 | 1.55M | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { |
390 | 0 | *n = 0; |
391 | 0 | return Status::OK(); |
392 | 0 | } |
393 | | |
394 | 1.55M | size_t max_fetch = std::min(*n, _num_elements - _cur_index); |
395 | | |
396 | 1.55M | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); |
397 | 1.55M | *n = max_fetch; |
398 | 1.55M | if constexpr (forward_index) { |
399 | 1.49M | _cur_index += max_fetch; |
400 | 1.49M | } |
401 | | |
402 | 1.55M | return Status::OK(); |
403 | 1.55M | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 166k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 166k | DCHECK(_parsed); | 389 | 166k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 166k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 166k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 166k | *n = max_fetch; | 398 | 166k | if constexpr (forward_index) { | 399 | 166k | _cur_index += max_fetch; | 400 | 166k | } | 401 | | | 402 | 166k | return Status::OK(); | 403 | 166k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.8k | DCHECK(_parsed); | 389 | 16.8k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.8k | *n = max_fetch; | 398 | 16.8k | if constexpr (forward_index) { | 399 | 16.8k | _cur_index += max_fetch; | 400 | 16.8k | } | 401 | | | 402 | 16.8k | return Status::OK(); | 403 | 16.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 | 484k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 484k | DCHECK(_parsed); | 389 | 484k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 484k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 484k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 484k | *n = max_fetch; | 398 | 484k | if constexpr (forward_index) { | 399 | 484k | _cur_index += max_fetch; | 400 | 484k | } | 401 | | | 402 | 484k | return Status::OK(); | 403 | 484k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 102k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 102k | DCHECK(_parsed); | 389 | 102k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 102k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 102k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 102k | *n = max_fetch; | 398 | 102k | if constexpr (forward_index) { | 399 | 102k | _cur_index += max_fetch; | 400 | 102k | } | 401 | | | 402 | 102k | return Status::OK(); | 403 | 102k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 16.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 16.3k | DCHECK(_parsed); | 389 | 16.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 16.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 16.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 16.3k | *n = max_fetch; | 398 | 16.3k | if constexpr (forward_index) { | 399 | 16.3k | _cur_index += max_fetch; | 400 | 16.3k | } | 401 | | | 402 | 16.3k | return Status::OK(); | 403 | 16.3k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 90.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 90.4k | DCHECK(_parsed); | 389 | 90.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 90.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 90.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 90.4k | *n = max_fetch; | 398 | 90.4k | if constexpr (forward_index) { | 399 | 90.4k | _cur_index += max_fetch; | 400 | 90.4k | } | 401 | | | 402 | 90.4k | return Status::OK(); | 403 | 90.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 52.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 52.8k | DCHECK(_parsed); | 389 | 52.9k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 52.8k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 52.8k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 52.8k | *n = max_fetch; | 398 | | if constexpr (forward_index) { | 399 | | _cur_index += max_fetch; | 400 | | } | 401 | | | 402 | 52.8k | return Status::OK(); | 403 | 52.8k | } |
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 | 8.82k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.82k | DCHECK(_parsed); | 389 | 8.82k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.82k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.82k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.82k | *n = max_fetch; | 398 | 8.82k | if constexpr (forward_index) { | 399 | 8.82k | _cur_index += max_fetch; | 400 | 8.82k | } | 401 | | | 402 | 8.82k | return Status::OK(); | 403 | 8.82k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 14.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 14.4k | DCHECK(_parsed); | 389 | 14.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 14.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 14.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 14.4k | *n = max_fetch; | 398 | 14.4k | if constexpr (forward_index) { | 399 | 14.4k | _cur_index += max_fetch; | 400 | 14.4k | } | 401 | | | 402 | 14.4k | return Status::OK(); | 403 | 14.4k | } |
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.32k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 4.32k | DCHECK(_parsed); | 389 | 4.32k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 4.32k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 4.32k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 4.32k | *n = max_fetch; | 398 | 4.32k | if constexpr (forward_index) { | 399 | 4.32k | _cur_index += max_fetch; | 400 | 4.32k | } | 401 | | | 402 | 4.32k | return Status::OK(); | 403 | 4.32k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 356k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 356k | DCHECK(_parsed); | 389 | 356k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 356k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 356k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 356k | *n = max_fetch; | 398 | 356k | if constexpr (forward_index) { | 399 | 356k | _cur_index += max_fetch; | 400 | 356k | } | 401 | | | 402 | 356k | return Status::OK(); | 403 | 356k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 63.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 63.3k | DCHECK(_parsed); | 389 | 63.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 63.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 63.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 63.3k | *n = max_fetch; | 398 | 63.3k | if constexpr (forward_index) { | 399 | 63.3k | _cur_index += max_fetch; | 400 | 63.3k | } | 401 | | | 402 | 63.3k | return Status::OK(); | 403 | 63.3k | } |
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 | 1.04k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.04k | DCHECK(_parsed); | 389 | 1.04k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 1.04k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.04k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.04k | *n = max_fetch; | 398 | 1.04k | if constexpr (forward_index) { | 399 | 1.04k | _cur_index += max_fetch; | 400 | 1.04k | } | 401 | | | 402 | 1.04k | return Status::OK(); | 403 | 1.04k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 8.26k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 8.26k | DCHECK(_parsed); | 389 | 8.26k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 8.26k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 8.26k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 8.26k | *n = max_fetch; | 398 | 8.26k | if constexpr (forward_index) { | 399 | 8.26k | _cur_index += max_fetch; | 400 | 8.26k | } | 401 | | | 402 | 8.26k | return Status::OK(); | 403 | 8.26k | } |
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.25k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 1.25k | 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.25k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 1.25k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 1.25k | *n = max_fetch; | 398 | 1.25k | if constexpr (forward_index) { | 399 | 1.25k | _cur_index += max_fetch; | 400 | 1.25k | } | 401 | | | 402 | 1.25k | return Status::OK(); | 403 | 1.25k | } |
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.65k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 7.65k | DCHECK(_parsed); | 389 | 7.65k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 7.65k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 7.65k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 7.65k | *n = max_fetch; | 398 | 7.65k | if constexpr (forward_index) { | 399 | 7.65k | _cur_index += max_fetch; | 400 | 7.65k | } | 401 | | | 402 | 7.65k | return Status::OK(); | 403 | 7.65k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 31.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 31.3k | DCHECK(_parsed); | 389 | 31.3k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 31.3k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 31.3k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 31.3k | *n = max_fetch; | 398 | 31.3k | if constexpr (forward_index) { | 399 | 31.3k | _cur_index += max_fetch; | 400 | 31.3k | } | 401 | | | 402 | 31.3k | return Status::OK(); | 403 | 31.3k | } |
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.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 20.4k | DCHECK(_parsed); | 389 | 20.4k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 20.4k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 20.4k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 20.4k | *n = max_fetch; | 398 | 20.4k | if constexpr (forward_index) { | 399 | 20.4k | _cur_index += max_fetch; | 400 | 20.4k | } | 401 | | | 402 | 20.4k | return Status::OK(); | 403 | 20.4k | } |
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.23k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 3.23k | DCHECK(_parsed); | 389 | 3.23k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 3.23k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 3.23k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 3.23k | *n = max_fetch; | 398 | 3.23k | if constexpr (forward_index) { | 399 | 3.23k | _cur_index += max_fetch; | 400 | 3.23k | } | 401 | | | 402 | 3.23k | return Status::OK(); | 403 | 3.23k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 659 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 659 | DCHECK(_parsed); | 389 | 660 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 659 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 659 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 659 | *n = max_fetch; | 398 | 659 | if constexpr (forward_index) { | 399 | 659 | _cur_index += max_fetch; | 400 | 659 | } | 401 | | | 402 | 659 | return Status::OK(); | 403 | 659 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 679 | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 679 | DCHECK(_parsed); | 389 | 680 | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 679 | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 679 | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 679 | *n = max_fetch; | 398 | 679 | if constexpr (forward_index) { | 399 | 679 | _cur_index += max_fetch; | 400 | 679 | } | 401 | | | 402 | 679 | return Status::OK(); | 403 | 679 | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 387 | 96.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) { | 388 | 96.5k | DCHECK(_parsed); | 389 | 96.5k | if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] { | 390 | 0 | *n = 0; | 391 | 0 | return Status::OK(); | 392 | 0 | } | 393 | | | 394 | 96.5k | size_t max_fetch = std::min(*n, _num_elements - _cur_index); | 395 | | | 396 | 96.5k | dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch); | 397 | 96.5k | *n = max_fetch; | 398 | 96.5k | if constexpr (forward_index) { | 399 | 96.5k | _cur_index += max_fetch; | 400 | 96.5k | } | 401 | | | 402 | 96.5k | return Status::OK(); | 403 | 96.5k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE42EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE |
404 | | |
405 | 1.49M | 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 | 166k | 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 | 16.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 | 483k | 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 | 102k | 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 | 16.3k | 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 | 90.5k | 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 | 8.82k | 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 | 14.4k | 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.31k | 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 | 356k | 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 | 63.3k | 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 | 1.04k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 8.26k | 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.25k | 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.65k | 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 | 31.3k | 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.4k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 405 | 3.23k | 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 | 679 | 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 | 97.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 | 524k | MutableColumnPtr& dst) override { |
409 | 524k | DCHECK(_parsed); |
410 | 524k | if (*n == 0) [[unlikely]] { |
411 | 0 | *n = 0; |
412 | 0 | return Status::OK(); |
413 | 0 | } |
414 | | |
415 | 524k | auto total = *n; |
416 | 524k | auto read_count = 0; |
417 | 524k | _buffer.resize(total); |
418 | 115M | for (size_t i = 0; i < total; ++i) { |
419 | 115M | ordinal_t ord = rowids[i] - page_first_ordinal; |
420 | 115M | if (UNLIKELY(ord >= _num_elements)) { |
421 | 13.6k | break; |
422 | 13.6k | } |
423 | | |
424 | 115M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); |
425 | 115M | } |
426 | | |
427 | 525k | if (LIKELY(read_count > 0)) { |
428 | 525k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
429 | 525k | } |
430 | | |
431 | 524k | *n = read_count; |
432 | 524k | return Status::OK(); |
433 | 524k | } _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 54.5k | MutableColumnPtr& dst) override { | 409 | 54.5k | DCHECK(_parsed); | 410 | 54.5k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 54.5k | auto total = *n; | 416 | 54.5k | auto read_count = 0; | 417 | 54.5k | _buffer.resize(total); | 418 | 2.04M | for (size_t i = 0; i < total; ++i) { | 419 | 1.99M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.99M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 45 | break; | 422 | 45 | } | 423 | | | 424 | 1.99M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.99M | } | 426 | | | 427 | 54.6k | if (LIKELY(read_count > 0)) { | 428 | 54.6k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 54.6k | } | 430 | | | 431 | 54.5k | *n = read_count; | 432 | 54.5k | return Status::OK(); | 433 | 54.5k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.4k | MutableColumnPtr& dst) override { | 409 | 10.4k | DCHECK(_parsed); | 410 | 10.4k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.4k | auto total = *n; | 416 | 10.4k | auto read_count = 0; | 417 | 10.4k | _buffer.resize(total); | 418 | 658k | for (size_t i = 0; i < total; ++i) { | 419 | 648k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 648k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 648k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 648k | } | 426 | | | 427 | 10.4k | if (LIKELY(read_count > 0)) { | 428 | 10.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.4k | } | 430 | | | 431 | 10.4k | *n = read_count; | 432 | 10.4k | return Status::OK(); | 433 | 10.4k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 89.1k | MutableColumnPtr& dst) override { | 409 | 89.1k | DCHECK(_parsed); | 410 | 89.1k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 89.1k | auto total = *n; | 416 | 89.1k | auto read_count = 0; | 417 | 89.1k | _buffer.resize(total); | 418 | 33.9M | for (size_t i = 0; i < total; ++i) { | 419 | 33.8M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 33.8M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.18k | break; | 422 | 2.18k | } | 423 | | | 424 | 33.8M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 33.8M | } | 426 | | | 427 | 89.2k | if (LIKELY(read_count > 0)) { | 428 | 89.2k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 89.2k | } | 430 | | | 431 | 89.1k | *n = read_count; | 432 | 89.1k | return Status::OK(); | 433 | 89.1k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 154k | MutableColumnPtr& dst) override { | 409 | 154k | DCHECK(_parsed); | 410 | 154k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 154k | auto total = *n; | 416 | 154k | auto read_count = 0; | 417 | 154k | _buffer.resize(total); | 418 | 23.3M | for (size_t i = 0; i < total; ++i) { | 419 | 23.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 23.2M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 2.45k | break; | 422 | 2.45k | } | 423 | | | 424 | 23.2M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 23.2M | } | 426 | | | 427 | 154k | if (LIKELY(read_count > 0)) { | 428 | 154k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 154k | } | 430 | | | 431 | 154k | *n = read_count; | 432 | 154k | return Status::OK(); | 433 | 154k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 10.3k | MutableColumnPtr& dst) override { | 409 | 10.3k | DCHECK(_parsed); | 410 | 10.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 10.3k | auto total = *n; | 416 | 10.3k | auto read_count = 0; | 417 | 10.3k | _buffer.resize(total); | 418 | 1.60M | for (size_t i = 0; i < total; ++i) { | 419 | 1.59M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.59M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 560 | break; | 422 | 560 | } | 423 | | | 424 | 1.59M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.59M | } | 426 | | | 427 | 10.3k | if (LIKELY(read_count > 0)) { | 428 | 10.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 10.3k | } | 430 | | | 431 | 10.3k | *n = read_count; | 432 | 10.3k | return Status::OK(); | 433 | 10.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 60.9k | MutableColumnPtr& dst) override { | 409 | 60.9k | DCHECK(_parsed); | 410 | 60.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 60.9k | auto total = *n; | 416 | 60.9k | auto read_count = 0; | 417 | 60.9k | _buffer.resize(total); | 418 | 532k | for (size_t i = 0; i < total; ++i) { | 419 | 471k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 471k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 8 | break; | 422 | 8 | } | 423 | | | 424 | 471k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 471k | } | 426 | | | 427 | 61.0k | if (LIKELY(read_count > 0)) { | 428 | 61.0k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 61.0k | } | 430 | | | 431 | 60.9k | *n = read_count; | 432 | 60.9k | return Status::OK(); | 433 | 60.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 7.18k | MutableColumnPtr& dst) override { | 409 | 7.18k | DCHECK(_parsed); | 410 | 7.18k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 7.18k | auto total = *n; | 416 | 7.18k | auto read_count = 0; | 417 | 7.18k | _buffer.resize(total); | 418 | 1.20M | for (size_t i = 0; i < total; ++i) { | 419 | 1.19M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.19M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 31 | break; | 422 | 31 | } | 423 | | | 424 | 1.19M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.19M | } | 426 | | | 427 | 7.18k | if (LIKELY(read_count > 0)) { | 428 | 7.18k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 7.18k | } | 430 | | | 431 | 7.18k | *n = read_count; | 432 | 7.18k | return Status::OK(); | 433 | 7.18k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 9.63k | MutableColumnPtr& dst) override { | 409 | 9.63k | DCHECK(_parsed); | 410 | 9.63k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 9.63k | auto total = *n; | 416 | 9.63k | auto read_count = 0; | 417 | 9.63k | _buffer.resize(total); | 418 | 1.03M | for (size_t i = 0; i < total; ++i) { | 419 | 1.02M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 1.02M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 259 | break; | 422 | 259 | } | 423 | | | 424 | 1.02M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 1.02M | } | 426 | | | 427 | 9.63k | if (LIKELY(read_count > 0)) { | 428 | 9.63k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 9.63k | } | 430 | | | 431 | 9.63k | *n = read_count; | 432 | 9.63k | return Status::OK(); | 433 | 9.63k | } |
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.40k | MutableColumnPtr& dst) override { | 409 | 1.40k | DCHECK(_parsed); | 410 | 1.40k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.40k | auto total = *n; | 416 | 1.40k | auto read_count = 0; | 417 | 1.40k | _buffer.resize(total); | 418 | 504k | for (size_t i = 0; i < total; ++i) { | 419 | 502k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 502k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 14 | break; | 422 | 14 | } | 423 | | | 424 | 502k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 502k | } | 426 | | | 427 | 1.40k | if (LIKELY(read_count > 0)) { | 428 | 1.40k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.40k | } | 430 | | | 431 | 1.40k | *n = read_count; | 432 | 1.40k | return Status::OK(); | 433 | 1.40k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 28.9k | MutableColumnPtr& dst) override { | 409 | 28.9k | DCHECK(_parsed); | 410 | 28.9k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 28.9k | auto total = *n; | 416 | 28.9k | auto read_count = 0; | 417 | 28.9k | _buffer.resize(total); | 418 | 6.49M | for (size_t i = 0; i < total; ++i) { | 419 | 6.46M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 6.46M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 716 | break; | 422 | 716 | } | 423 | | | 424 | 6.46M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 6.46M | } | 426 | | | 427 | 28.9k | if (LIKELY(read_count > 0)) { | 428 | 28.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 28.9k | } | 430 | | | 431 | 28.9k | *n = read_count; | 432 | 28.9k | return Status::OK(); | 433 | 28.9k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 32.3k | MutableColumnPtr& dst) override { | 409 | 32.3k | DCHECK(_parsed); | 410 | 32.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 32.3k | auto total = *n; | 416 | 32.3k | auto read_count = 0; | 417 | 32.3k | _buffer.resize(total); | 418 | 9.95M | for (size_t i = 0; i < total; ++i) { | 419 | 9.91M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.91M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 179 | break; | 422 | 179 | } | 423 | | | 424 | 9.91M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.91M | } | 426 | | | 427 | 32.4k | if (LIKELY(read_count > 0)) { | 428 | 32.4k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 32.4k | } | 430 | | | 431 | 32.3k | *n = read_count; | 432 | 32.3k | return Status::OK(); | 433 | 32.3k | } |
_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.81k | MutableColumnPtr& dst) override { | 409 | 1.81k | DCHECK(_parsed); | 410 | 1.81k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 1.81k | auto total = *n; | 416 | 1.81k | auto read_count = 0; | 417 | 1.81k | _buffer.resize(total); | 418 | 499k | for (size_t i = 0; i < total; ++i) { | 419 | 498k | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 498k | if (UNLIKELY(ord >= _num_elements)) { | 421 | 241 | break; | 422 | 241 | } | 423 | | | 424 | 497k | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 497k | } | 426 | | | 427 | 1.81k | if (LIKELY(read_count > 0)) { | 428 | 1.81k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 1.81k | } | 430 | | | 431 | 1.81k | *n = read_count; | 432 | 1.81k | return Status::OK(); | 433 | 1.81k | } |
_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 | 134 | MutableColumnPtr& dst) override { | 409 | 134 | DCHECK(_parsed); | 410 | 134 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 134 | auto total = *n; | 416 | 134 | auto read_count = 0; | 417 | 134 | _buffer.resize(total); | 418 | 273 | for (size_t i = 0; i < total; ++i) { | 419 | 139 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 139 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 139 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 139 | } | 426 | | | 427 | 134 | if (LIKELY(read_count > 0)) { | 428 | 134 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 134 | } | 430 | | | 431 | 134 | *n = read_count; | 432 | 134 | return Status::OK(); | 433 | 134 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 4.64k | MutableColumnPtr& dst) override { | 409 | 4.64k | DCHECK(_parsed); | 410 | 4.64k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 4.64k | auto total = *n; | 416 | 4.64k | auto read_count = 0; | 417 | 4.64k | _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.64k | if (LIKELY(read_count > 0)) { | 428 | 4.64k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 4.64k | } | 430 | | | 431 | 4.64k | *n = read_count; | 432 | 4.64k | return Status::OK(); | 433 | 4.64k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 29.3k | MutableColumnPtr& dst) override { | 409 | 29.3k | DCHECK(_parsed); | 410 | 29.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 29.3k | auto total = *n; | 416 | 29.3k | auto read_count = 0; | 417 | 29.3k | _buffer.resize(total); | 418 | 24.5M | for (size_t i = 0; i < total; ++i) { | 419 | 24.5M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 24.5M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 6.27k | break; | 422 | 6.27k | } | 423 | | | 424 | 24.5M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 24.5M | } | 426 | | | 427 | 29.3k | if (LIKELY(read_count > 0)) { | 428 | 29.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 29.3k | } | 430 | | | 431 | 29.3k | *n = read_count; | 432 | 29.3k | return Status::OK(); | 433 | 29.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 13.3k | MutableColumnPtr& dst) override { | 409 | 13.3k | DCHECK(_parsed); | 410 | 13.3k | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 13.3k | auto total = *n; | 416 | 13.3k | auto read_count = 0; | 417 | 13.3k | _buffer.resize(total); | 418 | 9.25M | for (size_t i = 0; i < total; ++i) { | 419 | 9.23M | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 9.23M | if (UNLIKELY(ord >= _num_elements)) { | 421 | 709 | break; | 422 | 709 | } | 423 | | | 424 | 9.23M | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 9.23M | } | 426 | | | 427 | 13.3k | if (LIKELY(read_count > 0)) { | 428 | 13.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 13.3k | } | 430 | | | 431 | 13.3k | *n = read_count; | 432 | 13.3k | return Status::OK(); | 433 | 13.3k | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 936 | MutableColumnPtr& dst) override { | 409 | 936 | DCHECK(_parsed); | 410 | 936 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 936 | auto total = *n; | 416 | 936 | auto read_count = 0; | 417 | 936 | _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 | 936 | *n = read_count; | 432 | 936 | return Status::OK(); | 433 | 936 | } |
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 408 | 287 | MutableColumnPtr& dst) override { | 409 | 287 | DCHECK(_parsed); | 410 | 287 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 287 | auto total = *n; | 416 | 287 | auto read_count = 0; | 417 | 287 | _buffer.resize(total); | 418 | 819 | for (size_t i = 0; i < total; ++i) { | 419 | 532 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 532 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 532 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 532 | } | 426 | | | 427 | 288 | if (LIKELY(read_count > 0)) { | 428 | 288 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 288 | } | 430 | | | 431 | 287 | *n = read_count; | 432 | 287 | return Status::OK(); | 433 | 287 | } |
_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 | 516 | MutableColumnPtr& dst) override { | 409 | 516 | DCHECK(_parsed); | 410 | 516 | if (*n == 0) [[unlikely]] { | 411 | 0 | *n = 0; | 412 | 0 | return Status::OK(); | 413 | 0 | } | 414 | | | 415 | 516 | auto total = *n; | 416 | 516 | auto read_count = 0; | 417 | 516 | _buffer.resize(total); | 418 | 1.13k | for (size_t i = 0; i < total; ++i) { | 419 | 619 | ordinal_t ord = rowids[i] - page_first_ordinal; | 420 | 619 | if (UNLIKELY(ord >= _num_elements)) { | 421 | 0 | break; | 422 | 0 | } | 423 | | | 424 | 619 | _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord)); | 425 | 619 | } | 426 | | | 427 | 516 | if (LIKELY(read_count > 0)) { | 428 | 516 | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 429 | 516 | } | 430 | | | 431 | 516 | *n = read_count; | 432 | 516 | return Status::OK(); | 433 | 516 | } |
|
434 | | |
435 | 52.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { |
436 | 52.9k | return next_batch<false>(n, dst); |
437 | 52.9k | } 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 | 52.9k | Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override { | 436 | 52.9k | return next_batch<false>(n, dst); | 437 | 52.9k | } |
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 | 4.01M | size_t current_index() const override { return _cur_index; }_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 441 | 228k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 441 | 227k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 441 | 1.93M | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 441 | 253k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 441 | 111k | 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 | 233k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 441 | 207k | size_t current_index() const override { return _cur_index; } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv Line | Count | Source | 441 | 217k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv Line | Count | Source | 441 | 235k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv Line | Count | Source | 441 | 28.5k | 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 | 206k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv Line | Count | Source | 441 | 1.08k | 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.38k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv Line | Count | Source | 441 | 1.12k | size_t current_index() const override { return _cur_index; } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv Line | Count | Source | 441 | 112k | 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 | 11.6k | size_t current_index() const override { return _cur_index; } |
|
442 | | |
443 | 117M | char* get_data(size_t index) const { |
444 | 117M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; |
445 | 117M | } _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm Line | Count | Source | 443 | 2.16M | char* get_data(size_t index) const { | 444 | 2.16M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 2.16M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm Line | Count | Source | 443 | 664k | char* get_data(size_t index) const { | 444 | 664k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 664k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm Line | Count | Source | 443 | 35.3M | char* get_data(size_t index) const { | 444 | 35.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 35.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm Line | Count | Source | 443 | 23.3M | char* get_data(size_t index) const { | 444 | 23.3M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 23.3M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm Line | Count | Source | 443 | 1.61M | char* get_data(size_t index) const { | 444 | 1.61M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.61M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm Line | Count | Source | 443 | 615k | char* get_data(size_t index) const { | 444 | 615k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 615k | } |
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm Line | Count | Source | 443 | 1.20M | char* get_data(size_t index) const { | 444 | 1.20M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.20M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm Line | Count | Source | 443 | 1.03M | char* get_data(size_t index) const { | 444 | 1.03M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.03M | } |
_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 | 507k | char* get_data(size_t index) const { | 444 | 507k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 507k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm Line | Count | Source | 443 | 6.81M | char* get_data(size_t index) const { | 444 | 6.81M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 6.81M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm Line | Count | Source | 443 | 9.98M | char* get_data(size_t index) const { | 444 | 9.98M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.98M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE41EE8get_dataEm Line | Count | Source | 443 | 5.14k | char* get_data(size_t index) const { | 444 | 5.14k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 5.14k | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm Line | Count | Source | 443 | 499k | char* get_data(size_t index) const { | 444 | 499k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 499k | } |
_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.45k | char* get_data(size_t index) const { | 444 | 1.45k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 1.45k | } |
_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 | 24.5M | char* get_data(size_t index) const { | 444 | 24.5M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 24.5M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm Line | Count | Source | 443 | 9.25M | char* get_data(size_t index) const { | 444 | 9.25M | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 9.25M | } |
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm Line | Count | Source | 443 | 4.69k | char* get_data(size_t index) const { | 444 | 4.69k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 4.69k | } |
_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 | 97.1k | char* get_data(size_t index) const { | 444 | 97.1k | return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE]; | 445 | 97.1k | } |
|
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 |