Coverage Report

Created: 2026-03-15 18:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/storage/segment/bitshuffle_page.h
Line
Count
Source
1
// Licensed to the Apache Software Foundation (ASF) under one
2
// or more contributor license agreements.  See the NOTICE file
3
// distributed with this work for additional information
4
// regarding copyright ownership.  The ASF licenses this file
5
// to you under the Apache License, Version 2.0 (the
6
// "License"); you may not use this file except in compliance
7
// with the License.  You may obtain a copy of the License at
8
//
9
//   http://www.apache.org/licenses/LICENSE-2.0
10
//
11
// Unless required by applicable law or agreed to in writing,
12
// software distributed under the License is distributed on an
13
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
// KIND, either express or implied.  See the License for the
15
// specific language governing permissions and limitations
16
// under the License.
17
18
#pragma once
19
20
#include <glog/logging.h>
21
22
#include <algorithm>
23
#include <cstddef>
24
#include <cstdint>
25
#include <cstring>
26
#include <ostream>
27
#include <type_traits>
28
29
#include "common/cast_set.h"
30
#include "common/compiler_util.h" // IWYU pragma: keep
31
#include "common/status.h"
32
#include "core/column/column.h"
33
#include "core/data_type/data_type.h"
34
#include "core/types.h"
35
#include "storage/olap_common.h"
36
#include "storage/segment/bitshuffle_wrapper.h"
37
#include "storage/segment/common.h"
38
#include "storage/segment/options.h"
39
#include "storage/segment/page_builder.h"
40
#include "storage/segment/page_decoder.h"
41
#include "storage/types.h"
42
#include "util/alignment.h"
43
#include "util/coding.h"
44
#include "util/faststring.h"
45
#include "util/slice.h"
46
47
namespace doris {
48
namespace segment_v2 {
49
#include "common/compile_check_begin.h"
50
51
enum { BITSHUFFLE_PAGE_HEADER_SIZE = 16 };
52
53
void warn_with_bitshuffle_error(int64_t val);
54
55
// BitshufflePageBuilder bitshuffles and compresses the bits of fixed
56
// size type blocks with lz4.
57
//
58
// The page format is as follows:
59
//
60
// 1. Header: (16 bytes total)
61
//
62
//    <num_elements> [32-bit]
63
//      The number of elements encoded in the page.
64
//
65
//    <compressed_size> [32-bit]
66
//      The post-compression size of the page, including this header.
67
//
68
//    <padded_num_elements> [32-bit]
69
//      Padding is needed to meet the requirements of the bitshuffle
70
//      library such that the input/output is a multiple of 8. Some
71
//      ignored elements are appended to the end of the page if necessary
72
//      to meet this requirement.
73
//
74
//      This header field is the post-padding element count.
75
//
76
//    <elem_size_bytes> [32-bit]
77
//      The size of the elements, in bytes, as actually encoded. In the
78
//      case that all of the data in a page can fit into a smaller
79
//      integer type, then we may choose to encode that smaller type
80
//      to save CPU costs.
81
//
82
//      This is currently only implemented in the UINT32 page type.
83
//
84
//   NOTE: all on-disk ints are encoded little-endian
85
//
86
// 2. Element data
87
//
88
//    The header is followed by the bitshuffle-compressed element data.
89
//
90
template <FieldType Type>
91
class BitshufflePageBuilder : public PageBuilderHelper<BitshufflePageBuilder<Type>> {
92
public:
93
    using Self = BitshufflePageBuilder<Type>;
94
    friend class PageBuilderHelper<Self>;
95
96
834k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
369k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
60.6k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
10.0k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
150k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
72.4k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
12.0k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
11.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
19.2k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
191
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
36.4k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
43.9k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
289
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
7.41k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
186
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.65k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
15.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.15k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
795
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
713
    Status init() override { return reset(); }
97
98
145M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
144M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
61.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
15.0k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
359k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
72.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
98
11.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
11.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
21.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
98
198
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
109k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
83.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
343
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
7.30k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
88
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.23k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
36.0k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
24.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Line
Count
Source
98
1.37k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Line
Count
Source
98
28.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
5.64k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.57M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.57M
        return add_internal<false>(vals, count);
102
1.57M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
720k
    Status add(const uint8_t* vals, size_t* count) override {
101
720k
        return add_internal<false>(vals, count);
102
720k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
61.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
61.1k
        return add_internal<false>(vals, count);
102
61.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
15.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
15.0k
        return add_internal<false>(vals, count);
102
15.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
359k
    Status add(const uint8_t* vals, size_t* count) override {
101
359k
        return add_internal<false>(vals, count);
102
359k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
72.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
72.6k
        return add_internal<false>(vals, count);
102
72.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
11.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.6k
        return add_internal<false>(vals, count);
102
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
11.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.6k
        return add_internal<false>(vals, count);
102
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
21.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
21.6k
        return add_internal<false>(vals, count);
102
21.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
198
    Status add(const uint8_t* vals, size_t* count) override {
101
198
        return add_internal<false>(vals, count);
102
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
109k
    Status add(const uint8_t* vals, size_t* count) override {
101
109k
        return add_internal<false>(vals, count);
102
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
83.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
83.5k
        return add_internal<false>(vals, count);
102
83.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
343
    Status add(const uint8_t* vals, size_t* count) override {
101
343
        return add_internal<false>(vals, count);
102
343
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
7.30k
    Status add(const uint8_t* vals, size_t* count) override {
101
7.30k
        return add_internal<false>(vals, count);
102
7.30k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
88
    Status add(const uint8_t* vals, size_t* count) override {
101
88
        return add_internal<false>(vals, count);
102
88
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.23k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.23k
        return add_internal<false>(vals, count);
102
5.23k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
36.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
36.0k
        return add_internal<false>(vals, count);
102
36.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
24.4k
    Status add(const uint8_t* vals, size_t* count) override {
101
24.4k
        return add_internal<false>(vals, count);
102
24.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
100
1.37k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.37k
        return add_internal<false>(vals, count);
102
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
100
28.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
28.2k
        return add_internal<false>(vals, count);
102
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
5.64k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.64k
        return add_internal<false>(vals, count);
102
5.64k
    }
103
104
147M
    Status single_add(const uint8_t* vals, size_t* count) {
105
147M
        return add_internal<true>(vals, count);
106
147M
    }
107
108
    template <bool single>
109
147M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
147M
        DCHECK(!_finished);
111
147M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
147M
        uint32_t to_add = cast_set<UInt32>(
127
147M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
147M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
147M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
147M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
147M
        _count += to_add;
135
147M
        _remain_element_capacity -= to_add;
136
147M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
147M
        *num_written = to_add;
139
147M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
145M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
145M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
145M
                        *reinterpret_cast<const uint32_t*>(vals);
150
145M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
145M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
147M
        return Status::OK();
160
147M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
720k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
720k
        DCHECK(!_finished);
111
720k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
720k
        uint32_t to_add = cast_set<UInt32>(
127
720k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
720k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
720k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
720k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
720k
        _count += to_add;
135
720k
        _remain_element_capacity -= to_add;
136
720k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
720k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
720k
        memcpy(&_data[orig_size], vals, to_add_size);
159
720k
        return Status::OK();
160
720k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
145M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
145M
        DCHECK(!_finished);
111
145M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
145M
        uint32_t to_add = cast_set<UInt32>(
127
145M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
145M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
145M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
145M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
145M
        _count += to_add;
135
145M
        _remain_element_capacity -= to_add;
136
145M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
145M
        *num_written = to_add;
139
145M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
145M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
145M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
145M
                        *reinterpret_cast<const uint32_t*>(vals);
150
145M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
145M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
145M
        return Status::OK();
160
145M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
61.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
61.1k
        DCHECK(!_finished);
111
61.1k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
61.1k
        uint32_t to_add = cast_set<UInt32>(
127
61.1k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
61.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
61.1k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
61.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
61.1k
        _count += to_add;
135
61.1k
        _remain_element_capacity -= to_add;
136
61.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
61.1k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
61.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
61.1k
        return Status::OK();
160
61.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
15.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
15.0k
        DCHECK(!_finished);
111
15.0k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
15.0k
        uint32_t to_add = cast_set<UInt32>(
127
15.0k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
15.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
15.0k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
15.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
15.0k
        _count += to_add;
135
15.0k
        _remain_element_capacity -= to_add;
136
15.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
15.0k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
15.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
15.0k
        return Status::OK();
160
15.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
359k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
359k
        DCHECK(!_finished);
111
359k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
359k
        uint32_t to_add = cast_set<UInt32>(
127
359k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
359k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
359k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
359k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
359k
        _count += to_add;
135
359k
        _remain_element_capacity -= to_add;
136
359k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
359k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
359k
        memcpy(&_data[orig_size], vals, to_add_size);
159
359k
        return Status::OK();
160
359k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
72.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
72.6k
        DCHECK(!_finished);
111
72.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
72.6k
        uint32_t to_add = cast_set<UInt32>(
127
72.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
72.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
72.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
72.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
72.6k
        _count += to_add;
135
72.6k
        _remain_element_capacity -= to_add;
136
72.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
72.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
72.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
72.6k
        return Status::OK();
160
72.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.6k
        DCHECK(!_finished);
111
11.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
11.6k
        uint32_t to_add = cast_set<UInt32>(
127
11.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
11.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
11.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.6k
        _count += to_add;
135
11.6k
        _remain_element_capacity -= to_add;
136
11.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
11.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.6k
        return Status::OK();
160
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.6k
        DCHECK(!_finished);
111
11.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
11.6k
        uint32_t to_add = cast_set<UInt32>(
127
11.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
11.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
11.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.6k
        _count += to_add;
135
11.6k
        _remain_element_capacity -= to_add;
136
11.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
11.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.6k
        return Status::OK();
160
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
21.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
21.6k
        DCHECK(!_finished);
111
21.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
21.6k
        uint32_t to_add = cast_set<UInt32>(
127
21.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
21.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
21.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
21.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
21.6k
        _count += to_add;
135
21.6k
        _remain_element_capacity -= to_add;
136
21.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
21.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
21.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
21.6k
        return Status::OK();
160
21.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
198
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
198
        DCHECK(!_finished);
111
198
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
198
        uint32_t to_add = cast_set<UInt32>(
127
198
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
198
        int to_add_size = to_add * SIZE_OF_TYPE;
130
198
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
198
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
198
        _count += to_add;
135
198
        _remain_element_capacity -= to_add;
136
198
        _raw_data_size += to_add_size;
137
        // return added number through count
138
198
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
198
        memcpy(&_data[orig_size], vals, to_add_size);
159
198
        return Status::OK();
160
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
109k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
109k
        DCHECK(!_finished);
111
109k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
109k
        uint32_t to_add = cast_set<UInt32>(
127
109k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
109k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
109k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
109k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
109k
        _count += to_add;
135
109k
        _remain_element_capacity -= to_add;
136
109k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
109k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
109k
        memcpy(&_data[orig_size], vals, to_add_size);
159
109k
        return Status::OK();
160
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
83.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
83.5k
        DCHECK(!_finished);
111
83.5k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
83.5k
        uint32_t to_add = cast_set<UInt32>(
127
83.5k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
83.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
83.5k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
83.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
83.5k
        _count += to_add;
135
83.5k
        _remain_element_capacity -= to_add;
136
83.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
83.5k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
83.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
83.5k
        return Status::OK();
160
83.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
343
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
343
        DCHECK(!_finished);
111
343
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
343
        uint32_t to_add = cast_set<UInt32>(
127
343
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
343
        int to_add_size = to_add * SIZE_OF_TYPE;
130
343
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
343
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
343
        _count += to_add;
135
343
        _remain_element_capacity -= to_add;
136
343
        _raw_data_size += to_add_size;
137
        // return added number through count
138
343
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
343
        memcpy(&_data[orig_size], vals, to_add_size);
159
343
        return Status::OK();
160
343
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
7.30k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
7.30k
        DCHECK(!_finished);
111
7.30k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
7.30k
        uint32_t to_add = cast_set<UInt32>(
127
7.30k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
7.30k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
7.30k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
7.30k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
7.30k
        _count += to_add;
135
7.30k
        _remain_element_capacity -= to_add;
136
7.30k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
7.30k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
7.30k
        memcpy(&_data[orig_size], vals, to_add_size);
159
7.30k
        return Status::OK();
160
7.30k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
88
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
88
        DCHECK(!_finished);
111
88
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
88
        uint32_t to_add = cast_set<UInt32>(
127
88
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
88
        int to_add_size = to_add * SIZE_OF_TYPE;
130
88
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
88
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
88
        _count += to_add;
135
88
        _remain_element_capacity -= to_add;
136
88
        _raw_data_size += to_add_size;
137
        // return added number through count
138
88
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
88
        memcpy(&_data[orig_size], vals, to_add_size);
159
88
        return Status::OK();
160
88
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.23k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.23k
        DCHECK(!_finished);
111
5.23k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
5.23k
        uint32_t to_add = cast_set<UInt32>(
127
5.23k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
5.23k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.23k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
5.23k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.23k
        _count += to_add;
135
5.23k
        _remain_element_capacity -= to_add;
136
5.23k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.23k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
5.23k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.23k
        return Status::OK();
160
5.23k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
36.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
36.0k
        DCHECK(!_finished);
111
36.0k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
36.0k
        uint32_t to_add = cast_set<UInt32>(
127
36.0k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
36.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
36.0k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
36.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
36.0k
        _count += to_add;
135
36.0k
        _remain_element_capacity -= to_add;
136
36.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
36.0k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
36.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
36.0k
        return Status::OK();
160
36.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
24.4k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
24.4k
        DCHECK(!_finished);
111
24.4k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
24.4k
        uint32_t to_add = cast_set<UInt32>(
127
24.4k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
24.4k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
24.4k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
24.4k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
24.4k
        _count += to_add;
135
24.4k
        _remain_element_capacity -= to_add;
136
24.4k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
24.4k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
24.4k
        memcpy(&_data[orig_size], vals, to_add_size);
159
24.4k
        return Status::OK();
160
24.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.37k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.37k
        DCHECK(!_finished);
111
1.37k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
1.37k
        uint32_t to_add = cast_set<UInt32>(
127
1.37k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
1.37k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.37k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
1.37k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.37k
        _count += to_add;
135
1.37k
        _remain_element_capacity -= to_add;
136
1.37k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.37k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
1.37k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.37k
        return Status::OK();
160
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
28.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
28.2k
        DCHECK(!_finished);
111
28.2k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
28.2k
        uint32_t to_add = cast_set<UInt32>(
127
28.2k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
28.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
28.2k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
28.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
28.2k
        _count += to_add;
135
28.2k
        _remain_element_capacity -= to_add;
136
28.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
28.2k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
28.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
28.2k
        return Status::OK();
160
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.64k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.64k
        DCHECK(!_finished);
111
5.64k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
5.64k
        uint32_t to_add = cast_set<UInt32>(
127
5.64k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
5.64k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.64k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
5.64k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.64k
        _count += to_add;
135
5.64k
        _remain_element_capacity -= to_add;
136
5.64k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.64k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
5.64k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.64k
        return Status::OK();
160
5.64k
    }
161
162
822k
    Status finish(OwnedSlice* slice) override {
163
822k
        if (_count > 0) {
164
776k
            _first_value = cell(0);
165
776k
            _last_value = cell(_count - 1);
166
776k
        }
167
822k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
822k
        return Status::OK();
169
822k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
351k
    Status finish(OwnedSlice* slice) override {
163
351k
        if (_count > 0) {
164
317k
            _first_value = cell(0);
165
317k
            _last_value = cell(_count - 1);
166
317k
        }
167
351k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
351k
        return Status::OK();
169
351k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
59.7k
    Status finish(OwnedSlice* slice) override {
163
59.7k
        if (_count > 0) {
164
59.4k
            _first_value = cell(0);
165
59.4k
            _last_value = cell(_count - 1);
166
59.4k
        }
167
59.7k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
59.7k
        return Status::OK();
169
59.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.34k
    Status finish(OwnedSlice* slice) override {
163
9.34k
        if (_count > 0) {
164
9.28k
            _first_value = cell(0);
165
9.28k
            _last_value = cell(_count - 1);
166
9.28k
        }
167
9.34k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.35k
        return Status::OK();
169
9.34k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
152k
    Status finish(OwnedSlice* slice) override {
163
152k
        if (_count > 0) {
164
151k
            _first_value = cell(0);
165
151k
            _last_value = cell(_count - 1);
166
151k
        }
167
152k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
152k
        return Status::OK();
169
152k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
72.0k
    Status finish(OwnedSlice* slice) override {
163
72.0k
        if (_count > 0) {
164
72.0k
            _first_value = cell(0);
165
72.0k
            _last_value = cell(_count - 1);
166
72.0k
        }
167
72.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
72.0k
        return Status::OK();
169
72.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.4k
    Status finish(OwnedSlice* slice) override {
163
11.4k
        if (_count > 0) {
164
11.0k
            _first_value = cell(0);
165
11.0k
            _last_value = cell(_count - 1);
166
11.0k
        }
167
11.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.4k
        return Status::OK();
169
11.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.9k
    Status finish(OwnedSlice* slice) override {
163
10.9k
        if (_count > 0) {
164
10.6k
            _first_value = cell(0);
165
10.6k
            _last_value = cell(_count - 1);
166
10.6k
        }
167
10.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.9k
        return Status::OK();
169
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.3k
    Status finish(OwnedSlice* slice) override {
163
19.3k
        if (_count > 0) {
164
18.9k
            _first_value = cell(0);
165
18.9k
            _last_value = cell(_count - 1);
166
18.9k
        }
167
19.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.3k
        return Status::OK();
169
19.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
203
    Status finish(OwnedSlice* slice) override {
163
203
        if (_count > 0) {
164
198
            _first_value = cell(0);
165
198
            _last_value = cell(_count - 1);
166
198
        }
167
203
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
203
        return Status::OK();
169
203
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
37.1k
    Status finish(OwnedSlice* slice) override {
163
37.1k
        if (_count > 0) {
164
36.1k
            _first_value = cell(0);
165
36.1k
            _last_value = cell(_count - 1);
166
36.1k
        }
167
37.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
37.1k
        return Status::OK();
169
37.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
42.9k
    Status finish(OwnedSlice* slice) override {
163
42.9k
        if (_count > 0) {
164
41.4k
            _first_value = cell(0);
165
41.4k
            _last_value = cell(_count - 1);
166
41.4k
        }
167
42.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
42.9k
        return Status::OK();
169
42.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
443
    Status finish(OwnedSlice* slice) override {
163
443
        if (_count > 0) {
164
343
            _first_value = cell(0);
165
343
            _last_value = cell(_count - 1);
166
343
        }
167
443
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
443
        return Status::OK();
169
443
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.50k
    Status finish(OwnedSlice* slice) override {
163
7.50k
        if (_count > 0) {
164
7.30k
            _first_value = cell(0);
165
7.30k
            _last_value = cell(_count - 1);
166
7.30k
        }
167
7.50k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.51k
        return Status::OK();
169
7.50k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
96
    Status finish(OwnedSlice* slice) override {
163
96
        if (_count > 0) {
164
88
            _first_value = cell(0);
165
88
            _last_value = cell(_count - 1);
166
88
        }
167
96
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
96
        return Status::OK();
169
96
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.63k
    Status finish(OwnedSlice* slice) override {
163
9.63k
        if (_count > 0) {
164
4.75k
            _first_value = cell(0);
165
4.75k
            _last_value = cell(_count - 1);
166
4.75k
        }
167
9.63k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.63k
        return Status::OK();
169
9.63k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.2k
    Status finish(OwnedSlice* slice) override {
163
19.2k
        if (_count > 0) {
164
18.3k
            _first_value = cell(0);
165
18.3k
            _last_value = cell(_count - 1);
166
18.3k
        }
167
19.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.2k
        return Status::OK();
169
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
16.0k
    Status finish(OwnedSlice* slice) override {
163
16.0k
        if (_count > 0) {
164
15.5k
            _first_value = cell(0);
165
15.5k
            _last_value = cell(_count - 1);
166
15.5k
        }
167
16.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.0k
        return Status::OK();
169
16.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.06k
    Status finish(OwnedSlice* slice) override {
163
1.06k
        if (_count > 0) {
164
1.00k
            _first_value = cell(0);
165
1.00k
            _last_value = cell(_count - 1);
166
1.00k
        }
167
1.06k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.06k
        return Status::OK();
169
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
705
    Status finish(OwnedSlice* slice) override {
163
705
        if (_count > 0) {
164
655
            _first_value = cell(0);
165
655
            _last_value = cell(_count - 1);
166
655
        }
167
705
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
705
        return Status::OK();
169
705
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
629
    Status finish(OwnedSlice* slice) override {
163
629
        if (_count > 0) {
164
594
            _first_value = cell(0);
165
594
            _last_value = cell(_count - 1);
166
594
        }
167
629
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
629
        return Status::OK();
169
629
    }
170
171
1.95M
    Status reset() override {
172
1.95M
        RETURN_IF_CATCH_EXCEPTION({
173
1.95M
            size_t block_size = _options.data_page_size;
174
1.95M
            _count = 0;
175
1.95M
            _raw_data_size = 0;
176
1.95M
            _data.clear();
177
1.95M
            _data.reserve(block_size);
178
1.95M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.95M
                    << "buffer must be naturally-aligned";
180
1.95M
            _buffer.clear();
181
1.95M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.95M
            _finished = false;
183
1.95M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.95M
        });
185
1.95M
        return Status::OK();
186
1.95M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.02M
    Status reset() override {
172
1.02M
        RETURN_IF_CATCH_EXCEPTION({
173
1.02M
            size_t block_size = _options.data_page_size;
174
1.02M
            _count = 0;
175
1.02M
            _raw_data_size = 0;
176
1.02M
            _data.clear();
177
1.02M
            _data.reserve(block_size);
178
1.02M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.02M
                    << "buffer must be naturally-aligned";
180
1.02M
            _buffer.clear();
181
1.02M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.02M
            _finished = false;
183
1.02M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.02M
        });
185
1.02M
        return Status::OK();
186
1.02M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
120k
    Status reset() override {
172
120k
        RETURN_IF_CATCH_EXCEPTION({
173
120k
            size_t block_size = _options.data_page_size;
174
120k
            _count = 0;
175
120k
            _raw_data_size = 0;
176
120k
            _data.clear();
177
120k
            _data.reserve(block_size);
178
120k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
120k
                    << "buffer must be naturally-aligned";
180
120k
            _buffer.clear();
181
120k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
120k
            _finished = false;
183
120k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
120k
        });
185
120k
        return Status::OK();
186
120k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
19.4k
    Status reset() override {
172
19.4k
        RETURN_IF_CATCH_EXCEPTION({
173
19.4k
            size_t block_size = _options.data_page_size;
174
19.4k
            _count = 0;
175
19.4k
            _raw_data_size = 0;
176
19.4k
            _data.clear();
177
19.4k
            _data.reserve(block_size);
178
19.4k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.4k
                    << "buffer must be naturally-aligned";
180
19.4k
            _buffer.clear();
181
19.4k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.4k
            _finished = false;
183
19.4k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.4k
        });
185
19.4k
        return Status::OK();
186
19.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
303k
    Status reset() override {
172
303k
        RETURN_IF_CATCH_EXCEPTION({
173
303k
            size_t block_size = _options.data_page_size;
174
303k
            _count = 0;
175
303k
            _raw_data_size = 0;
176
303k
            _data.clear();
177
303k
            _data.reserve(block_size);
178
303k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
303k
                    << "buffer must be naturally-aligned";
180
303k
            _buffer.clear();
181
303k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
303k
            _finished = false;
183
303k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
303k
        });
185
303k
        return Status::OK();
186
303k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
144k
    Status reset() override {
172
144k
        RETURN_IF_CATCH_EXCEPTION({
173
144k
            size_t block_size = _options.data_page_size;
174
144k
            _count = 0;
175
144k
            _raw_data_size = 0;
176
144k
            _data.clear();
177
144k
            _data.reserve(block_size);
178
144k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
144k
                    << "buffer must be naturally-aligned";
180
144k
            _buffer.clear();
181
144k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
144k
            _finished = false;
183
144k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
144k
        });
185
144k
        return Status::OK();
186
144k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
23.4k
    Status reset() override {
172
23.4k
        RETURN_IF_CATCH_EXCEPTION({
173
23.4k
            size_t block_size = _options.data_page_size;
174
23.4k
            _count = 0;
175
23.4k
            _raw_data_size = 0;
176
23.4k
            _data.clear();
177
23.4k
            _data.reserve(block_size);
178
23.4k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
23.4k
                    << "buffer must be naturally-aligned";
180
23.4k
            _buffer.clear();
181
23.4k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
23.4k
            _finished = false;
183
23.4k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
23.4k
        });
185
23.5k
        return Status::OK();
186
23.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
22.7k
    Status reset() override {
172
22.7k
        RETURN_IF_CATCH_EXCEPTION({
173
22.7k
            size_t block_size = _options.data_page_size;
174
22.7k
            _count = 0;
175
22.7k
            _raw_data_size = 0;
176
22.7k
            _data.clear();
177
22.7k
            _data.reserve(block_size);
178
22.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.7k
                    << "buffer must be naturally-aligned";
180
22.7k
            _buffer.clear();
181
22.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.7k
            _finished = false;
183
22.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.7k
        });
185
22.7k
        return Status::OK();
186
22.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
38.5k
    Status reset() override {
172
38.5k
        RETURN_IF_CATCH_EXCEPTION({
173
38.5k
            size_t block_size = _options.data_page_size;
174
38.5k
            _count = 0;
175
38.5k
            _raw_data_size = 0;
176
38.5k
            _data.clear();
177
38.5k
            _data.reserve(block_size);
178
38.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
38.5k
                    << "buffer must be naturally-aligned";
180
38.5k
            _buffer.clear();
181
38.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
38.5k
            _finished = false;
183
38.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
38.5k
        });
185
38.5k
        return Status::OK();
186
38.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
394
    Status reset() override {
172
394
        RETURN_IF_CATCH_EXCEPTION({
173
394
            size_t block_size = _options.data_page_size;
174
394
            _count = 0;
175
394
            _raw_data_size = 0;
176
394
            _data.clear();
177
394
            _data.reserve(block_size);
178
394
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
394
                    << "buffer must be naturally-aligned";
180
394
            _buffer.clear();
181
394
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
394
            _finished = false;
183
394
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
394
        });
185
394
        return Status::OK();
186
394
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
73.5k
    Status reset() override {
172
73.5k
        RETURN_IF_CATCH_EXCEPTION({
173
73.5k
            size_t block_size = _options.data_page_size;
174
73.5k
            _count = 0;
175
73.5k
            _raw_data_size = 0;
176
73.5k
            _data.clear();
177
73.5k
            _data.reserve(block_size);
178
73.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
73.5k
                    << "buffer must be naturally-aligned";
180
73.5k
            _buffer.clear();
181
73.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
73.5k
            _finished = false;
183
73.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
73.5k
        });
185
73.6k
        return Status::OK();
186
73.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
86.8k
    Status reset() override {
172
86.8k
        RETURN_IF_CATCH_EXCEPTION({
173
86.8k
            size_t block_size = _options.data_page_size;
174
86.8k
            _count = 0;
175
86.8k
            _raw_data_size = 0;
176
86.8k
            _data.clear();
177
86.8k
            _data.reserve(block_size);
178
86.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
86.8k
                    << "buffer must be naturally-aligned";
180
86.8k
            _buffer.clear();
181
86.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
86.8k
            _finished = false;
183
86.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
86.8k
        });
185
86.8k
        return Status::OK();
186
86.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
732
    Status reset() override {
172
732
        RETURN_IF_CATCH_EXCEPTION({
173
732
            size_t block_size = _options.data_page_size;
174
732
            _count = 0;
175
732
            _raw_data_size = 0;
176
732
            _data.clear();
177
732
            _data.reserve(block_size);
178
732
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
732
                    << "buffer must be naturally-aligned";
180
732
            _buffer.clear();
181
732
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
732
            _finished = false;
183
732
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
732
        });
185
732
        return Status::OK();
186
732
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
171
14.8k
    Status reset() override {
172
14.8k
        RETURN_IF_CATCH_EXCEPTION({
173
14.8k
            size_t block_size = _options.data_page_size;
174
14.8k
            _count = 0;
175
14.8k
            _raw_data_size = 0;
176
14.8k
            _data.clear();
177
14.8k
            _data.reserve(block_size);
178
14.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14.8k
                    << "buffer must be naturally-aligned";
180
14.8k
            _buffer.clear();
181
14.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14.8k
            _finished = false;
183
14.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14.8k
        });
185
15.0k
        return Status::OK();
186
14.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
282
    Status reset() override {
172
282
        RETURN_IF_CATCH_EXCEPTION({
173
282
            size_t block_size = _options.data_page_size;
174
282
            _count = 0;
175
282
            _raw_data_size = 0;
176
282
            _data.clear();
177
282
            _data.reserve(block_size);
178
282
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
282
                    << "buffer must be naturally-aligned";
180
282
            _buffer.clear();
181
282
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
282
            _finished = false;
183
282
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
282
        });
185
282
        return Status::OK();
186
282
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.2k
    Status reset() override {
172
19.2k
        RETURN_IF_CATCH_EXCEPTION({
173
19.2k
            size_t block_size = _options.data_page_size;
174
19.2k
            _count = 0;
175
19.2k
            _raw_data_size = 0;
176
19.2k
            _data.clear();
177
19.2k
            _data.reserve(block_size);
178
19.2k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.2k
                    << "buffer must be naturally-aligned";
180
19.2k
            _buffer.clear();
181
19.2k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.2k
            _finished = false;
183
19.2k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.2k
        });
185
19.2k
        return Status::OK();
186
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.5k
    Status reset() override {
172
31.5k
        RETURN_IF_CATCH_EXCEPTION({
173
31.5k
            size_t block_size = _options.data_page_size;
174
31.5k
            _count = 0;
175
31.5k
            _raw_data_size = 0;
176
31.5k
            _data.clear();
177
31.5k
            _data.reserve(block_size);
178
31.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.5k
                    << "buffer must be naturally-aligned";
180
31.5k
            _buffer.clear();
181
31.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.5k
            _finished = false;
183
31.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.5k
        });
185
31.5k
        return Status::OK();
186
31.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
31.9k
    Status reset() override {
172
31.9k
        RETURN_IF_CATCH_EXCEPTION({
173
31.9k
            size_t block_size = _options.data_page_size;
174
31.9k
            _count = 0;
175
31.9k
            _raw_data_size = 0;
176
31.9k
            _data.clear();
177
31.9k
            _data.reserve(block_size);
178
31.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.9k
                    << "buffer must be naturally-aligned";
180
31.9k
            _buffer.clear();
181
31.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.9k
            _finished = false;
183
31.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.9k
        });
185
31.9k
        return Status::OK();
186
31.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.21k
    Status reset() override {
172
2.21k
        RETURN_IF_CATCH_EXCEPTION({
173
2.21k
            size_t block_size = _options.data_page_size;
174
2.21k
            _count = 0;
175
2.21k
            _raw_data_size = 0;
176
2.21k
            _data.clear();
177
2.21k
            _data.reserve(block_size);
178
2.21k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.21k
                    << "buffer must be naturally-aligned";
180
2.21k
            _buffer.clear();
181
2.21k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.21k
            _finished = false;
183
2.21k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.21k
        });
185
2.22k
        return Status::OK();
186
2.21k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.50k
    Status reset() override {
172
1.50k
        RETURN_IF_CATCH_EXCEPTION({
173
1.50k
            size_t block_size = _options.data_page_size;
174
1.50k
            _count = 0;
175
1.50k
            _raw_data_size = 0;
176
1.50k
            _data.clear();
177
1.50k
            _data.reserve(block_size);
178
1.50k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.50k
                    << "buffer must be naturally-aligned";
180
1.50k
            _buffer.clear();
181
1.50k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.50k
            _finished = false;
183
1.50k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.50k
        });
185
1.50k
        return Status::OK();
186
1.50k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.34k
    Status reset() override {
172
1.34k
        RETURN_IF_CATCH_EXCEPTION({
173
1.34k
            size_t block_size = _options.data_page_size;
174
1.34k
            _count = 0;
175
1.34k
            _raw_data_size = 0;
176
1.34k
            _data.clear();
177
1.34k
            _data.reserve(block_size);
178
1.34k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.34k
                    << "buffer must be naturally-aligned";
180
1.34k
            _buffer.clear();
181
1.34k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.34k
            _finished = false;
183
1.34k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.34k
        });
185
1.34k
        return Status::OK();
186
1.34k
    }
187
188
1.33M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
1.33M
    size_t count() const override { return _count; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv
189
190
31.1k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
16.9k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
2.21k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
894
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
2.26k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
717
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
1.39k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
716
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
740
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv
Line
Count
Source
190
1.51k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv
Line
Count
Source
190
126
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
291
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.09k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv
Line
Count
Source
190
4
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv
Line
Count
Source
190
26
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv
Line
Count
Source
190
10
    uint64_t size() const override { return _buffer.size(); }
191
192
538k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
67.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
59.7k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
9.35k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
152k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
72.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
192
11.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
10.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
19.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Line
Count
Source
192
203
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
37.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
42.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
443
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.50k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
96
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.63k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
19.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
16.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.06k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
705
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
629
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
193
194
0
    Status get_first_value(void* value) const override {
195
0
        DCHECK(_finished);
196
0
        if (_count == 0) {
197
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
198
0
        }
199
0
        memcpy(value, &_first_value, SIZE_OF_TYPE);
200
0
        return Status::OK();
201
0
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE15get_first_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE15get_first_valueEPv
202
3
    Status get_last_value(void* value) const override {
203
3
        DCHECK(_finished);
204
3
        if (_count == 0) {
205
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
206
0
        }
207
3
        memcpy(value, &_last_value, SIZE_OF_TYPE);
208
3
        return Status::OK();
209
3
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE14get_last_valueEPv
Line
Count
Source
202
3
    Status get_last_value(void* value) const override {
203
3
        DCHECK(_finished);
204
3
        if (_count == 0) {
205
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
206
0
        }
207
3
        memcpy(value, &_last_value, SIZE_OF_TYPE);
208
3
        return Status::OK();
209
3
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE14get_last_valueEPv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE14get_last_valueEPv
210
211
private:
212
    BitshufflePageBuilder(const PageBuilderOptions& options)
213
834k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
369k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
60.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
10.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
150k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
72.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
19.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
191
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
36.4k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
43.9k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
289
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.40k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
186
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.64k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
15.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.15k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
794
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
713
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
822k
    OwnedSlice _finish(int final_size_of_type) {
216
822k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
822k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
822k
        int padding_elems = num_elems_after_padding - _count;
221
822k
        int padding_bytes = padding_elems * final_size_of_type;
222
24.8M
        for (int i = 0; i < padding_bytes; i++) {
223
24.0M
            _data.push_back(0);
224
24.0M
        }
225
226
        // reserve enough place for compression
227
822k
        _buffer.resize(
228
822k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
822k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
822k
        int64_t bytes =
232
822k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
822k
                                         num_elems_after_padding, final_size_of_type, 0);
234
822k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
822k
        encode_fixed32_le(&_buffer[0], _count);
244
822k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
822k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
822k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
822k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
822k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
822k
        return _buffer.build();
251
822k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
351k
    OwnedSlice _finish(int final_size_of_type) {
216
351k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
351k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
351k
        int padding_elems = num_elems_after_padding - _count;
221
351k
        int padding_bytes = padding_elems * final_size_of_type;
222
6.83M
        for (int i = 0; i < padding_bytes; i++) {
223
6.48M
            _data.push_back(0);
224
6.48M
        }
225
226
        // reserve enough place for compression
227
351k
        _buffer.resize(
228
351k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
351k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
351k
        int64_t bytes =
232
351k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
351k
                                         num_elems_after_padding, final_size_of_type, 0);
234
351k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
351k
        encode_fixed32_le(&_buffer[0], _count);
244
351k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
351k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
351k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
351k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
351k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
351k
        return _buffer.build();
251
351k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
59.7k
    OwnedSlice _finish(int final_size_of_type) {
216
59.7k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
59.7k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
59.7k
        int padding_elems = num_elems_after_padding - _count;
221
59.7k
        int padding_bytes = padding_elems * final_size_of_type;
222
391k
        for (int i = 0; i < padding_bytes; i++) {
223
332k
            _data.push_back(0);
224
332k
        }
225
226
        // reserve enough place for compression
227
59.7k
        _buffer.resize(
228
59.7k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
59.7k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
59.7k
        int64_t bytes =
232
59.7k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
59.7k
                                         num_elems_after_padding, final_size_of_type, 0);
234
59.7k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
59.7k
        encode_fixed32_le(&_buffer[0], _count);
244
59.7k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
59.7k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
59.7k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
59.7k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
59.7k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
59.7k
        return _buffer.build();
251
59.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
9.35k
    OwnedSlice _finish(int final_size_of_type) {
216
9.35k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.35k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.35k
        int padding_elems = num_elems_after_padding - _count;
221
9.35k
        int padding_bytes = padding_elems * final_size_of_type;
222
96.1k
        for (int i = 0; i < padding_bytes; i++) {
223
86.8k
            _data.push_back(0);
224
86.8k
        }
225
226
        // reserve enough place for compression
227
9.35k
        _buffer.resize(
228
9.35k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.35k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.35k
        int64_t bytes =
232
9.35k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.35k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.35k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
9.35k
        encode_fixed32_le(&_buffer[0], _count);
244
9.35k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.35k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.35k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.35k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.35k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.35k
        return _buffer.build();
251
9.35k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
152k
    OwnedSlice _finish(int final_size_of_type) {
216
152k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
152k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
152k
        int padding_elems = num_elems_after_padding - _count;
221
152k
        int padding_bytes = padding_elems * final_size_of_type;
222
7.25M
        for (int i = 0; i < padding_bytes; i++) {
223
7.10M
            _data.push_back(0);
224
7.10M
        }
225
226
        // reserve enough place for compression
227
152k
        _buffer.resize(
228
152k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
152k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
152k
        int64_t bytes =
232
152k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
152k
                                         num_elems_after_padding, final_size_of_type, 0);
234
152k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
152k
        encode_fixed32_le(&_buffer[0], _count);
244
152k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
152k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
152k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
152k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
152k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
152k
        return _buffer.build();
251
152k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
72.0k
    OwnedSlice _finish(int final_size_of_type) {
216
72.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
72.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
72.0k
        int padding_elems = num_elems_after_padding - _count;
221
72.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.45M
        for (int i = 0; i < padding_bytes; i++) {
223
3.38M
            _data.push_back(0);
224
3.38M
        }
225
226
        // reserve enough place for compression
227
72.0k
        _buffer.resize(
228
72.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
72.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
72.0k
        int64_t bytes =
232
72.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
72.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
72.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
72.0k
        encode_fixed32_le(&_buffer[0], _count);
244
72.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
72.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
72.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
72.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
72.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
72.0k
        return _buffer.build();
251
72.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
11.4k
    OwnedSlice _finish(int final_size_of_type) {
216
11.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.4k
        int padding_elems = num_elems_after_padding - _count;
221
11.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
761k
        for (int i = 0; i < padding_bytes; i++) {
223
750k
            _data.push_back(0);
224
750k
        }
225
226
        // reserve enough place for compression
227
11.4k
        _buffer.resize(
228
11.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.4k
        int64_t bytes =
232
11.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.4k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.4k
        encode_fixed32_le(&_buffer[0], _count);
244
11.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.4k
        return _buffer.build();
251
11.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
10.9k
    OwnedSlice _finish(int final_size_of_type) {
216
10.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.9k
        int padding_elems = num_elems_after_padding - _count;
221
10.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
237k
        for (int i = 0; i < padding_bytes; i++) {
223
226k
            _data.push_back(0);
224
226k
        }
225
226
        // reserve enough place for compression
227
10.9k
        _buffer.resize(
228
10.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.9k
        int64_t bytes =
232
10.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
10.9k
        encode_fixed32_le(&_buffer[0], _count);
244
10.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.9k
        return _buffer.build();
251
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
19.3k
    OwnedSlice _finish(int final_size_of_type) {
216
19.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.3k
        int padding_elems = num_elems_after_padding - _count;
221
19.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
863k
        for (int i = 0; i < padding_bytes; i++) {
223
844k
            _data.push_back(0);
224
844k
        }
225
226
        // reserve enough place for compression
227
19.3k
        _buffer.resize(
228
19.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.3k
        int64_t bytes =
232
19.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.3k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.3k
        encode_fixed32_le(&_buffer[0], _count);
244
19.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.3k
        return _buffer.build();
251
19.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
203
    OwnedSlice _finish(int final_size_of_type) {
216
203
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
203
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
203
        int padding_elems = num_elems_after_padding - _count;
221
203
        int padding_bytes = padding_elems * final_size_of_type;
222
2.79k
        for (int i = 0; i < padding_bytes; i++) {
223
2.58k
            _data.push_back(0);
224
2.58k
        }
225
226
        // reserve enough place for compression
227
203
        _buffer.resize(
228
203
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
203
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
203
        int64_t bytes =
232
203
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
203
                                         num_elems_after_padding, final_size_of_type, 0);
234
203
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
203
        encode_fixed32_le(&_buffer[0], _count);
244
203
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
203
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
203
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
203
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
203
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
203
        return _buffer.build();
251
203
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
37.1k
    OwnedSlice _finish(int final_size_of_type) {
216
37.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
37.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
37.1k
        int padding_elems = num_elems_after_padding - _count;
221
37.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
791k
        for (int i = 0; i < padding_bytes; i++) {
223
754k
            _data.push_back(0);
224
754k
        }
225
226
        // reserve enough place for compression
227
37.1k
        _buffer.resize(
228
37.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
37.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
37.1k
        int64_t bytes =
232
37.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
37.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
37.1k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
37.1k
        encode_fixed32_le(&_buffer[0], _count);
244
37.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
37.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
37.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
37.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
37.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
37.1k
        return _buffer.build();
251
37.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
42.9k
    OwnedSlice _finish(int final_size_of_type) {
216
42.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
42.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
42.9k
        int padding_elems = num_elems_after_padding - _count;
221
42.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.82M
        for (int i = 0; i < padding_bytes; i++) {
223
1.77M
            _data.push_back(0);
224
1.77M
        }
225
226
        // reserve enough place for compression
227
42.9k
        _buffer.resize(
228
42.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
42.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
42.9k
        int64_t bytes =
232
42.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
42.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
42.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
42.9k
        encode_fixed32_le(&_buffer[0], _count);
244
42.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
42.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
42.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
42.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
42.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
42.9k
        return _buffer.build();
251
42.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
443
    OwnedSlice _finish(int final_size_of_type) {
216
443
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
443
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
443
        int padding_elems = num_elems_after_padding - _count;
221
443
        int padding_bytes = padding_elems * final_size_of_type;
222
7.17k
        for (int i = 0; i < padding_bytes; i++) {
223
6.73k
            _data.push_back(0);
224
6.73k
        }
225
226
        // reserve enough place for compression
227
443
        _buffer.resize(
228
443
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
443
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
443
        int64_t bytes =
232
443
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
443
                                         num_elems_after_padding, final_size_of_type, 0);
234
443
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
443
        encode_fixed32_le(&_buffer[0], _count);
244
443
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
443
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
443
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
443
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
443
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
443
        return _buffer.build();
251
443
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.50k
    OwnedSlice _finish(int final_size_of_type) {
216
7.50k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.50k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.50k
        int padding_elems = num_elems_after_padding - _count;
221
7.50k
        int padding_bytes = padding_elems * final_size_of_type;
222
393k
        for (int i = 0; i < padding_bytes; i++) {
223
386k
            _data.push_back(0);
224
386k
        }
225
226
        // reserve enough place for compression
227
7.50k
        _buffer.resize(
228
7.50k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.50k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.50k
        int64_t bytes =
232
7.50k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.50k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.50k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
7.50k
        encode_fixed32_le(&_buffer[0], _count);
244
7.50k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.50k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.50k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.50k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.50k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.50k
        return _buffer.build();
251
7.50k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
96
    OwnedSlice _finish(int final_size_of_type) {
216
96
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
96
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
96
        int padding_elems = num_elems_after_padding - _count;
221
96
        int padding_bytes = padding_elems * final_size_of_type;
222
5.62k
        for (int i = 0; i < padding_bytes; i++) {
223
5.53k
            _data.push_back(0);
224
5.53k
        }
225
226
        // reserve enough place for compression
227
96
        _buffer.resize(
228
96
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
96
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
96
        int64_t bytes =
232
96
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
96
                                         num_elems_after_padding, final_size_of_type, 0);
234
96
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
96
        encode_fixed32_le(&_buffer[0], _count);
244
96
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
96
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
96
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
96
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
96
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
96
        return _buffer.build();
251
96
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.63k
    OwnedSlice _finish(int final_size_of_type) {
216
9.63k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.63k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.63k
        int padding_elems = num_elems_after_padding - _count;
221
9.63k
        int padding_bytes = padding_elems * final_size_of_type;
222
116k
        for (int i = 0; i < padding_bytes; i++) {
223
106k
            _data.push_back(0);
224
106k
        }
225
226
        // reserve enough place for compression
227
9.63k
        _buffer.resize(
228
9.63k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.63k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.63k
        int64_t bytes =
232
9.63k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.63k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.63k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
9.63k
        encode_fixed32_le(&_buffer[0], _count);
244
9.63k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.63k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.63k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.63k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.63k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.63k
        return _buffer.build();
251
9.63k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
19.2k
    OwnedSlice _finish(int final_size_of_type) {
216
19.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.2k
        int padding_elems = num_elems_after_padding - _count;
221
19.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
499k
        for (int i = 0; i < padding_bytes; i++) {
223
480k
            _data.push_back(0);
224
480k
        }
225
226
        // reserve enough place for compression
227
19.2k
        _buffer.resize(
228
19.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.2k
        int64_t bytes =
232
19.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.2k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.2k
        encode_fixed32_le(&_buffer[0], _count);
244
19.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.2k
        return _buffer.build();
251
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
16.0k
    OwnedSlice _finish(int final_size_of_type) {
216
16.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.0k
        int padding_elems = num_elems_after_padding - _count;
221
16.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.09M
        for (int i = 0; i < padding_bytes; i++) {
223
1.07M
            _data.push_back(0);
224
1.07M
        }
225
226
        // reserve enough place for compression
227
16.0k
        _buffer.resize(
228
16.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.0k
        int64_t bytes =
232
16.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
16.0k
        encode_fixed32_le(&_buffer[0], _count);
244
16.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.0k
        return _buffer.build();
251
16.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
161k
        for (int i = 0; i < padding_bytes; i++) {
223
160k
            _data.push_back(0);
224
160k
        }
225
226
        // reserve enough place for compression
227
1.06k
        _buffer.resize(
228
1.06k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.06k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.06k
        int64_t bytes =
232
1.06k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.06k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.06k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
1.06k
        encode_fixed32_le(&_buffer[0], _count);
244
1.06k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.06k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.06k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.06k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.06k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.06k
        return _buffer.build();
251
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
705
    OwnedSlice _finish(int final_size_of_type) {
216
705
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
705
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
705
        int padding_elems = num_elems_after_padding - _count;
221
705
        int padding_bytes = padding_elems * final_size_of_type;
222
14.9k
        for (int i = 0; i < padding_bytes; i++) {
223
14.1k
            _data.push_back(0);
224
14.1k
        }
225
226
        // reserve enough place for compression
227
705
        _buffer.resize(
228
705
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
705
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
705
        int64_t bytes =
232
705
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
705
                                         num_elems_after_padding, final_size_of_type, 0);
234
705
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
705
        encode_fixed32_le(&_buffer[0], _count);
244
705
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
705
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
705
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
705
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
705
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
705
        return _buffer.build();
251
705
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
629
    OwnedSlice _finish(int final_size_of_type) {
216
629
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
629
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
629
        int padding_elems = num_elems_after_padding - _count;
221
629
        int padding_bytes = padding_elems * final_size_of_type;
222
50.8k
        for (int i = 0; i < padding_bytes; i++) {
223
50.2k
            _data.push_back(0);
224
50.2k
        }
225
226
        // reserve enough place for compression
227
629
        _buffer.resize(
228
629
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
629
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
629
        int64_t bytes =
232
629
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
629
                                         num_elems_after_padding, final_size_of_type, 0);
234
629
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
629
        encode_fixed32_le(&_buffer[0], _count);
244
629
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
629
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
629
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
629
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
629
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
629
        return _buffer.build();
251
629
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.55M
    CppType cell(int idx) const {
256
1.55M
        DCHECK_GE(idx, 0);
257
1.55M
        CppType ret;
258
1.55M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.55M
        return ret;
260
1.55M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
635k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
635k
        CppType ret;
258
635k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
635k
        return ret;
260
635k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
118k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
118k
        CppType ret;
258
118k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
118k
        return ret;
260
118k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
18.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
18.5k
        CppType ret;
258
18.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
18.5k
        return ret;
260
18.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
302k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
302k
        CppType ret;
258
302k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
302k
        return ret;
260
302k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
144k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
144k
        CppType ret;
258
144k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
144k
        return ret;
260
144k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
22.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
22.1k
        CppType ret;
258
22.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
22.1k
        return ret;
260
22.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
21.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.2k
        CppType ret;
258
21.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.2k
        return ret;
260
21.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
37.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
37.9k
        CppType ret;
258
37.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
37.9k
        return ret;
260
37.9k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
396
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
396
        CppType ret;
258
396
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
396
        return ret;
260
396
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
72.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
72.3k
        CppType ret;
258
72.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
72.3k
        return ret;
260
72.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
82.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
82.9k
        CppType ret;
258
82.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
82.9k
        return ret;
260
82.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
686
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
686
        CppType ret;
258
686
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
686
        return ret;
260
686
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
14.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
14.5k
        CppType ret;
258
14.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
14.5k
        return ret;
260
14.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
176
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
176
        CppType ret;
258
176
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
176
        return ret;
260
176
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.49k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.49k
        CppType ret;
258
9.49k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.49k
        return ret;
260
9.49k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
36.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
36.6k
        CppType ret;
258
36.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
36.6k
        return ret;
260
36.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.1k
        CppType ret;
258
31.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.1k
        return ret;
260
31.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.01k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.01k
        CppType ret;
258
2.01k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.01k
        return ret;
260
2.01k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.31k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.31k
        CppType ret;
258
1.31k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.31k
        return ret;
260
1.31k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.18k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.18k
        CppType ret;
258
1.18k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.18k
        return ret;
260
1.18k
    }
261
262
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
263
    PageBuilderOptions _options;
264
    uint32_t _count;
265
    uint32_t _remain_element_capacity;
266
    bool _finished;
267
    faststring _data;
268
    faststring _buffer;
269
    CppType _first_value;
270
    CppType _last_value;
271
    uint64_t _raw_data_size = 0;
272
};
273
274
inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
275
                                       size_t& compressed_size, size_t& num_element_after_padding,
276
2.61M
                                       int& size_of_element) {
277
2.61M
    if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) {
278
0
        return Status::InternalError("file corruption: invalid data size:{}, header size:{}",
279
0
                                     data.size, BITSHUFFLE_PAGE_HEADER_SIZE);
280
0
    }
281
282
2.61M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.61M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.61M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.61M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.61M
    if (num_element_after_padding != ALIGN_UP(num_elements, 8)) {
287
0
        return Status::InternalError(
288
0
                "num of element information corrupted,"
289
0
                " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{},"
290
0
                " compressed_size:{}, size_of_element:{}, data_size:{}",
291
0
                num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size,
292
0
                size_of_element, data.size);
293
0
    }
294
2.61M
    switch (size_of_element) {
295
169k
    case 1:
296
189k
    case 2:
297
193k
    case 3:
298
1.59M
    case 4:
299
2.51M
    case 8:
300
2.52M
    case 12:
301
2.60M
    case 16:
302
2.61M
    case 32:
303
2.61M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.61M
    }
307
2.61M
    return Status::OK();
308
2.61M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.30M
            : _data(data),
315
1.30M
              _options(options),
316
1.30M
              _parsed(false),
317
1.30M
              _num_elements(0),
318
1.30M
              _num_element_after_padding(0),
319
1.30M
              _size_of_element(0),
320
1.30M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
601k
            : _data(data),
315
601k
              _options(options),
316
601k
              _parsed(false),
317
601k
              _num_elements(0),
318
601k
              _num_element_after_padding(0),
319
601k
              _size_of_element(0),
320
601k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
84.7k
            : _data(data),
315
84.7k
              _options(options),
316
84.7k
              _parsed(false),
317
84.7k
              _num_elements(0),
318
84.7k
              _num_element_after_padding(0),
319
84.7k
              _size_of_element(0),
320
84.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
9.89k
            : _data(data),
315
9.89k
              _options(options),
316
9.89k
              _parsed(false),
317
9.89k
              _num_elements(0),
318
9.89k
              _num_element_after_padding(0),
319
9.89k
              _size_of_element(0),
320
9.89k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
211k
            : _data(data),
315
211k
              _options(options),
316
211k
              _parsed(false),
317
211k
              _num_elements(0),
318
211k
              _num_element_after_padding(0),
319
211k
              _size_of_element(0),
320
211k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
90.5k
            : _data(data),
315
90.5k
              _options(options),
316
90.5k
              _parsed(false),
317
90.5k
              _num_elements(0),
318
90.5k
              _num_element_after_padding(0),
319
90.5k
              _size_of_element(0),
320
90.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
12.3k
            : _data(data),
315
12.3k
              _options(options),
316
12.3k
              _parsed(false),
317
12.3k
              _num_elements(0),
318
12.3k
              _num_element_after_padding(0),
319
12.3k
              _size_of_element(0),
320
12.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
20.3k
            : _data(data),
315
20.3k
              _options(options),
316
20.3k
              _parsed(false),
317
20.3k
              _num_elements(0),
318
20.3k
              _num_element_after_padding(0),
319
20.3k
              _size_of_element(0),
320
20.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.5k
            : _data(data),
315
30.5k
              _options(options),
316
30.5k
              _parsed(false),
317
30.5k
              _num_elements(0),
318
30.5k
              _num_element_after_padding(0),
319
30.5k
              _size_of_element(0),
320
30.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.14k
            : _data(data),
315
2.14k
              _options(options),
316
2.14k
              _parsed(false),
317
2.14k
              _num_elements(0),
318
2.14k
              _num_element_after_padding(0),
319
2.14k
              _size_of_element(0),
320
2.14k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
61.5k
            : _data(data),
315
61.5k
              _options(options),
316
61.5k
              _parsed(false),
317
61.5k
              _num_elements(0),
318
61.5k
              _num_element_after_padding(0),
319
61.5k
              _size_of_element(0),
320
61.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
68.6k
            : _data(data),
315
68.6k
              _options(options),
316
68.6k
              _parsed(false),
317
68.6k
              _num_elements(0),
318
68.6k
              _num_element_after_padding(0),
319
68.6k
              _size_of_element(0),
320
68.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.89k
            : _data(data),
315
2.89k
              _options(options),
316
2.89k
              _parsed(false),
317
2.89k
              _num_elements(0),
318
2.89k
              _num_element_after_padding(0),
319
2.89k
              _size_of_element(0),
320
2.89k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
16.0k
            : _data(data),
315
16.0k
              _options(options),
316
16.0k
              _parsed(false),
317
16.0k
              _num_elements(0),
318
16.0k
              _num_element_after_padding(0),
319
16.0k
              _size_of_element(0),
320
16.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.28k
            : _data(data),
315
1.28k
              _options(options),
316
1.28k
              _parsed(false),
317
1.28k
              _num_elements(0),
318
1.28k
              _num_element_after_padding(0),
319
1.28k
              _size_of_element(0),
320
1.28k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.8k
            : _data(data),
315
15.8k
              _options(options),
316
15.8k
              _parsed(false),
317
15.8k
              _num_elements(0),
318
15.8k
              _num_element_after_padding(0),
319
15.8k
              _size_of_element(0),
320
15.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
41.3k
            : _data(data),
315
41.3k
              _options(options),
316
41.3k
              _parsed(false),
317
41.3k
              _num_elements(0),
318
41.3k
              _num_element_after_padding(0),
319
41.3k
              _size_of_element(0),
320
41.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.6k
            : _data(data),
315
30.6k
              _options(options),
316
30.6k
              _parsed(false),
317
30.6k
              _num_elements(0),
318
30.6k
              _num_element_after_padding(0),
319
30.6k
              _size_of_element(0),
320
30.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.80k
            : _data(data),
315
1.80k
              _options(options),
316
1.80k
              _parsed(false),
317
1.80k
              _num_elements(0),
318
1.80k
              _num_element_after_padding(0),
319
1.80k
              _size_of_element(0),
320
1.80k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.18k
            : _data(data),
315
1.18k
              _options(options),
316
1.18k
              _parsed(false),
317
1.18k
              _num_elements(0),
318
1.18k
              _num_element_after_padding(0),
319
1.18k
              _size_of_element(0),
320
1.18k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.15k
            : _data(data),
315
1.15k
              _options(options),
316
1.15k
              _parsed(false),
317
1.15k
              _num_elements(0),
318
1.15k
              _num_element_after_padding(0),
319
1.15k
              _size_of_element(0),
320
1.15k
              _cur_index(0) {}
321
322
1.30M
    Status init() override {
323
1.30M
        CHECK(!_parsed);
324
1.30M
        size_t unused;
325
1.30M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.30M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.30M
        if (_data.size !=
329
1.30M
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.30M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.30M
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.30M
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.30M
        _parsed = true;
349
1.30M
        return Status::OK();
350
1.30M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
601k
    Status init() override {
323
601k
        CHECK(!_parsed);
324
601k
        size_t unused;
325
601k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
601k
                                                 _num_element_after_padding, _size_of_element));
327
328
601k
        if (_data.size !=
329
601k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
601k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
601k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
601k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
601k
        _parsed = true;
349
601k
        return Status::OK();
350
601k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
84.6k
    Status init() override {
323
84.6k
        CHECK(!_parsed);
324
84.6k
        size_t unused;
325
84.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
84.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
84.6k
        if (_data.size !=
329
84.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
84.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
84.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
84.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
84.6k
        _parsed = true;
349
84.6k
        return Status::OK();
350
84.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
9.88k
    Status init() override {
323
9.88k
        CHECK(!_parsed);
324
9.88k
        size_t unused;
325
9.88k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
9.88k
                                                 _num_element_after_padding, _size_of_element));
327
328
9.88k
        if (_data.size !=
329
9.88k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
9.88k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
9.88k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
9.88k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
9.88k
        _parsed = true;
349
9.88k
        return Status::OK();
350
9.88k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
211k
    Status init() override {
323
211k
        CHECK(!_parsed);
324
211k
        size_t unused;
325
211k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
211k
                                                 _num_element_after_padding, _size_of_element));
327
328
211k
        if (_data.size !=
329
211k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
211k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
211k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
211k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
211k
        _parsed = true;
349
211k
        return Status::OK();
350
211k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
90.5k
    Status init() override {
323
90.5k
        CHECK(!_parsed);
324
90.5k
        size_t unused;
325
90.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
90.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
90.5k
        if (_data.size !=
329
90.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
90.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
90.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
90.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
90.5k
        _parsed = true;
349
90.5k
        return Status::OK();
350
90.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
12.3k
    Status init() override {
323
12.3k
        CHECK(!_parsed);
324
12.3k
        size_t unused;
325
12.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
12.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
12.3k
        if (_data.size !=
329
12.3k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
12.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
12.3k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
12.3k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
12.3k
        _parsed = true;
349
12.3k
        return Status::OK();
350
12.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
20.3k
    Status init() override {
323
20.3k
        CHECK(!_parsed);
324
20.3k
        size_t unused;
325
20.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
20.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
20.3k
        if (_data.size !=
329
20.3k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
20.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
20.3k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
20.3k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
20.3k
        _parsed = true;
349
20.3k
        return Status::OK();
350
20.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
30.5k
    Status init() override {
323
30.5k
        CHECK(!_parsed);
324
30.5k
        size_t unused;
325
30.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.5k
        if (_data.size !=
329
30.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
30.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
30.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
30.5k
        _parsed = true;
349
30.5k
        return Status::OK();
350
30.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
2.14k
    Status init() override {
323
2.14k
        CHECK(!_parsed);
324
2.14k
        size_t unused;
325
2.14k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.14k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.14k
        if (_data.size !=
329
2.14k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
2.14k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.14k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
2.14k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
2.14k
        _parsed = true;
349
2.14k
        return Status::OK();
350
2.14k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
61.5k
    Status init() override {
323
61.5k
        CHECK(!_parsed);
324
61.5k
        size_t unused;
325
61.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
61.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
61.5k
        if (_data.size !=
329
61.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
61.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
61.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
61.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
61.5k
        _parsed = true;
349
61.5k
        return Status::OK();
350
61.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
68.5k
    Status init() override {
323
68.5k
        CHECK(!_parsed);
324
68.5k
        size_t unused;
325
68.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
68.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
68.5k
        if (_data.size !=
329
68.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
68.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
68.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
68.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
68.5k
        _parsed = true;
349
68.5k
        return Status::OK();
350
68.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.89k
    Status init() override {
323
2.89k
        CHECK(!_parsed);
324
2.89k
        size_t unused;
325
2.89k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.89k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.89k
        if (_data.size !=
329
2.89k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
2.89k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.89k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
2.89k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
2.89k
        _parsed = true;
349
2.89k
        return Status::OK();
350
2.89k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
16.0k
    Status init() override {
323
16.0k
        CHECK(!_parsed);
324
16.0k
        size_t unused;
325
16.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
16.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
16.0k
        if (_data.size !=
329
16.0k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
16.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
16.0k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
16.0k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
16.0k
        _parsed = true;
349
16.0k
        return Status::OK();
350
16.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.28k
    Status init() override {
323
1.28k
        CHECK(!_parsed);
324
1.28k
        size_t unused;
325
1.28k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.28k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.28k
        if (_data.size !=
329
1.28k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.28k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.28k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.28k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.28k
        _parsed = true;
349
1.28k
        return Status::OK();
350
1.28k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.8k
    Status init() override {
323
15.8k
        CHECK(!_parsed);
324
15.8k
        size_t unused;
325
15.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.8k
        if (_data.size !=
329
15.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
15.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
15.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
15.8k
        _parsed = true;
349
15.8k
        return Status::OK();
350
15.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
41.3k
    Status init() override {
323
41.3k
        CHECK(!_parsed);
324
41.3k
        size_t unused;
325
41.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
41.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
41.3k
        if (_data.size !=
329
41.3k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
41.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
41.3k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
41.3k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
41.3k
        _parsed = true;
349
41.3k
        return Status::OK();
350
41.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
30.6k
    Status init() override {
323
30.6k
        CHECK(!_parsed);
324
30.6k
        size_t unused;
325
30.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.6k
        if (_data.size !=
329
30.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
30.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
30.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
30.6k
        _parsed = true;
349
30.6k
        return Status::OK();
350
30.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.80k
    Status init() override {
323
1.80k
        CHECK(!_parsed);
324
1.80k
        size_t unused;
325
1.80k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.80k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.80k
        if (_data.size !=
329
1.80k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.80k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.80k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.80k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.80k
        _parsed = true;
349
1.80k
        return Status::OK();
350
1.80k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.18k
    Status init() override {
323
1.18k
        CHECK(!_parsed);
324
1.18k
        size_t unused;
325
1.18k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.18k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.18k
        if (_data.size !=
329
1.18k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.18k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.18k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.18k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.18k
        _parsed = true;
349
1.18k
        return Status::OK();
350
1.18k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.15k
    Status init() override {
323
1.15k
        CHECK(!_parsed);
324
1.15k
        size_t unused;
325
1.15k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.15k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.15k
        if (_data.size !=
329
1.15k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.15k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.15k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.15k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.15k
        _parsed = true;
349
1.15k
        return Status::OK();
350
1.15k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
1.35M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.35M
        if (_num_elements == 0) [[unlikely]] {
361
4.43k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
4.43k
        }
366
367
1.35M
        DCHECK_LE(pos, _num_elements);
368
1.35M
        _cur_index = pos;
369
1.35M
        return Status::OK();
370
1.35M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
648k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
648k
        if (_num_elements == 0) [[unlikely]] {
361
2.43k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
2.43k
        }
366
367
648k
        DCHECK_LE(pos, _num_elements);
368
648k
        _cur_index = pos;
369
648k
        return Status::OK();
370
648k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
79.1k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
79.1k
        if (_num_elements == 0) [[unlikely]] {
361
352
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
352
        }
366
367
79.1k
        DCHECK_LE(pos, _num_elements);
368
79.1k
        _cur_index = pos;
369
79.1k
        return Status::OK();
370
79.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
810
    Status seek_to_position_in_page(size_t pos) override {
359
810
        DCHECK(_parsed) << "Must call init()";
360
810
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
810
        DCHECK_LE(pos, _num_elements);
368
810
        _cur_index = pos;
369
810
        return Status::OK();
370
810
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
121k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
121k
        if (_num_elements == 0) [[unlikely]] {
361
446
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
446
        }
366
367
121k
        DCHECK_LE(pos, _num_elements);
368
121k
        _cur_index = pos;
369
121k
        return Status::OK();
370
121k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.0k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
12.0k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
12.0k
        DCHECK_LE(pos, _num_elements);
368
12.0k
        _cur_index = pos;
369
12.0k
        return Status::OK();
370
12.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
2.97k
    Status seek_to_position_in_page(size_t pos) override {
359
2.97k
        DCHECK(_parsed) << "Must call init()";
360
2.97k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
2.97k
        DCHECK_LE(pos, _num_elements);
368
2.97k
        _cur_index = pos;
369
2.97k
        return Status::OK();
370
2.97k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.6k
    Status seek_to_position_in_page(size_t pos) override {
359
17.6k
        DCHECK(_parsed) << "Must call init()";
360
17.6k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
17.6k
        DCHECK_LE(pos, _num_elements);
368
17.6k
        _cur_index = pos;
369
17.6k
        return Status::OK();
370
17.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
14.2k
    Status seek_to_position_in_page(size_t pos) override {
359
14.2k
        DCHECK(_parsed) << "Must call init()";
360
14.2k
        if (_num_elements == 0) [[unlikely]] {
361
2
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
2
        }
366
367
14.2k
        DCHECK_LE(pos, _num_elements);
368
14.2k
        _cur_index = pos;
369
14.2k
        return Status::OK();
370
14.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
11.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
11.5k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
11.5k
        DCHECK_LE(pos, _num_elements);
368
11.5k
        _cur_index = pos;
369
11.5k
        return Status::OK();
370
11.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
349k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
349k
        if (_num_elements == 0) [[unlikely]] {
361
777
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
777
        }
366
367
349k
        DCHECK_LE(pos, _num_elements);
368
349k
        _cur_index = pos;
369
349k
        return Status::OK();
370
349k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
52.8k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
52.8k
        if (_num_elements == 0) [[unlikely]] {
361
15
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
15
        }
366
367
52.8k
        DCHECK_LE(pos, _num_elements);
368
52.8k
        _cur_index = pos;
369
52.8k
        return Status::OK();
370
52.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
8.14k
    Status seek_to_position_in_page(size_t pos) override {
359
8.14k
        DCHECK(_parsed) << "Must call init()";
360
8.14k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
8.14k
        DCHECK_LE(pos, _num_elements);
368
8.14k
        _cur_index = pos;
369
8.14k
        return Status::OK();
370
8.14k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
7.00k
    Status seek_to_position_in_page(size_t pos) override {
359
7.00k
        DCHECK(_parsed) << "Must call init()";
360
7.00k
        if (_num_elements == 0) [[unlikely]] {
361
361
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
361
        }
366
367
7.00k
        DCHECK_LE(pos, _num_elements);
368
7.00k
        _cur_index = pos;
369
7.00k
        return Status::OK();
370
7.00k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
28
    Status seek_to_position_in_page(size_t pos) override {
359
28
        DCHECK(_parsed) << "Must call init()";
360
28
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
28
        DCHECK_LE(pos, _num_elements);
368
28
        _cur_index = pos;
369
28
        return Status::OK();
370
28
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
804
    Status seek_to_position_in_page(size_t pos) override {
359
804
        DCHECK(_parsed) << "Must call init()";
360
804
        if (_num_elements == 0) [[unlikely]] {
361
30
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
30
        }
366
367
804
        DCHECK_LE(pos, _num_elements);
368
804
        _cur_index = pos;
369
804
        return Status::OK();
370
804
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.9k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
16.9k
        if (_num_elements == 0) [[unlikely]] {
361
12
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
12
        }
366
367
16.9k
        DCHECK_LE(pos, _num_elements);
368
16.9k
        _cur_index = pos;
369
16.9k
        return Status::OK();
370
16.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.1k
    Status seek_to_position_in_page(size_t pos) override {
359
12.1k
        DCHECK(_parsed) << "Must call init()";
360
12.1k
        if (_num_elements == 0) [[unlikely]] {
361
10
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
10
        }
366
367
12.1k
        DCHECK_LE(pos, _num_elements);
368
12.1k
        _cur_index = pos;
369
12.1k
        return Status::OK();
370
12.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.95k
    Status seek_to_position_in_page(size_t pos) override {
359
1.95k
        DCHECK(_parsed) << "Must call init()";
360
1.95k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
1.95k
        DCHECK_LE(pos, _num_elements);
368
1.95k
        _cur_index = pos;
369
1.95k
        return Status::OK();
370
1.95k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
70
    Status seek_to_position_in_page(size_t pos) override {
359
70
        DCHECK(_parsed) << "Must call init()";
360
70
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
70
        DCHECK_LE(pos, _num_elements);
368
70
        _cur_index = pos;
369
70
        return Status::OK();
370
70
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
Line
Count
Source
358
89
    Status seek_to_position_in_page(size_t pos) override {
359
89
        DCHECK(_parsed) << "Must call init()";
360
89
        if (_num_elements == 0) [[unlikely]] {
361
1
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
1
        }
366
367
89
        DCHECK_LE(pos, _num_elements);
368
89
        _cur_index = pos;
369
89
        return Status::OK();
370
89
    }
371
372
0
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
373
0
        DCHECK(_parsed) << "Must call init() firstly";
374
375
0
        if (_num_elements == 0) {
376
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
377
0
        }
378
379
0
        size_t left = 0;
380
0
        size_t right = _num_elements;
381
382
0
        void* mid_value = nullptr;
383
384
        // find the first value >= target. after loop,
385
        // - left == index of first value >= target when found
386
        // - left == _num_elements when not found (all values < target)
387
0
        while (left < right) {
388
0
            size_t mid = left + (right - left) / 2;
389
0
            mid_value = get_data(mid);
390
0
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
391
0
                left = mid + 1;
392
0
            } else {
393
0
                right = mid;
394
0
            }
395
0
        }
396
0
        if (left >= _num_elements) {
397
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
398
0
        }
399
0
        void* find_value = get_data(left);
400
0
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
401
0
            *exact_match = true;
402
0
        } else {
403
0
            *exact_match = false;
404
0
        }
405
406
0
        _cur_index = left;
407
0
        return Status::OK();
408
0
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb
409
410
    template <bool forward_index = true>
411
2.69M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.69M
        DCHECK(_parsed);
413
2.69M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.69M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.69M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.69M
        *n = max_fetch;
422
2.69M
        if constexpr (forward_index) {
423
2.11M
            _cur_index += max_fetch;
424
2.11M
        }
425
426
2.69M
        return Status::OK();
427
2.69M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
531k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
531k
        DCHECK(_parsed);
413
532k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
531k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
531k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
531k
        *n = max_fetch;
422
531k
        if constexpr (forward_index) {
423
531k
            _cur_index += max_fetch;
424
531k
        }
425
426
531k
        return Status::OK();
427
531k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
378k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
378k
        DCHECK(_parsed);
413
378k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
378k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
378k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
378k
        *n = max_fetch;
422
378k
        if constexpr (forward_index) {
423
378k
            _cur_index += max_fetch;
424
378k
        }
425
426
378k
        return Status::OK();
427
378k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
10.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
10.9k
        DCHECK(_parsed);
413
10.9k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
10.9k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
10.9k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
10.9k
        *n = max_fetch;
422
10.9k
        if constexpr (forward_index) {
423
10.9k
            _cur_index += max_fetch;
424
10.9k
        }
425
426
10.9k
        return Status::OK();
427
10.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
132k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
132k
        DCHECK(_parsed);
413
132k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
132k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
132k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
132k
        *n = max_fetch;
422
132k
        if constexpr (forward_index) {
423
132k
            _cur_index += max_fetch;
424
132k
        }
425
426
132k
        return Status::OK();
427
132k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
337k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
337k
        DCHECK(_parsed);
413
337k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
337k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
337k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
337k
        *n = max_fetch;
422
337k
        if constexpr (forward_index) {
423
337k
            _cur_index += max_fetch;
424
337k
        }
425
426
337k
        return Status::OK();
427
337k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
574k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
574k
        DCHECK(_parsed);
413
574k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
574k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
574k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
574k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
574k
        return Status::OK();
427
574k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
12.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
12.8k
        DCHECK(_parsed);
413
12.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
12.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
12.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
12.8k
        *n = max_fetch;
422
12.8k
        if constexpr (forward_index) {
423
12.8k
            _cur_index += max_fetch;
424
12.8k
        }
425
426
12.8k
        return Status::OK();
427
12.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
15.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
15.2k
        DCHECK(_parsed);
413
15.2k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
15.2k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
15.2k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
15.2k
        *n = max_fetch;
422
15.2k
        if constexpr (forward_index) {
423
15.2k
            _cur_index += max_fetch;
424
15.2k
        }
425
426
15.2k
        return Status::OK();
427
15.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
23.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
23.6k
        DCHECK(_parsed);
413
23.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
23.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
23.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
23.6k
        *n = max_fetch;
422
23.6k
        if constexpr (forward_index) {
423
23.6k
            _cur_index += max_fetch;
424
23.6k
        }
425
426
23.6k
        return Status::OK();
427
23.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
4.38k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
4.38k
        DCHECK(_parsed);
413
4.38k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
4.38k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
4.38k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
4.38k
        *n = max_fetch;
422
4.38k
        if constexpr (forward_index) {
423
4.38k
            _cur_index += max_fetch;
424
4.38k
        }
425
426
4.38k
        return Status::OK();
427
4.38k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
471k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
471k
        DCHECK(_parsed);
413
471k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
471k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
471k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
471k
        *n = max_fetch;
422
471k
        if constexpr (forward_index) {
423
471k
            _cur_index += max_fetch;
424
471k
        }
425
426
471k
        return Status::OK();
427
471k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
88.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
88.4k
        DCHECK(_parsed);
413
88.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
88.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
88.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
88.4k
        *n = max_fetch;
422
88.4k
        if constexpr (forward_index) {
423
88.4k
            _cur_index += max_fetch;
424
88.4k
        }
425
426
88.4k
        return Status::OK();
427
88.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.43k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.43k
        DCHECK(_parsed);
413
1.43k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.43k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.43k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.43k
        *n = max_fetch;
422
1.43k
        if constexpr (forward_index) {
423
1.43k
            _cur_index += max_fetch;
424
1.43k
        }
425
426
1.43k
        return Status::OK();
427
1.43k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
7.51k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
7.51k
        DCHECK(_parsed);
413
7.51k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
7.51k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
7.51k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
7.51k
        *n = max_fetch;
422
7.51k
        if constexpr (forward_index) {
423
7.51k
            _cur_index += max_fetch;
424
7.51k
        }
425
426
7.51k
        return Status::OK();
427
7.51k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.21k
        DCHECK(_parsed);
413
1.21k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.21k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.21k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.21k
        *n = max_fetch;
422
1.21k
        if constexpr (forward_index) {
423
1.21k
            _cur_index += max_fetch;
424
1.21k
        }
425
426
1.21k
        return Status::OK();
427
1.21k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
10.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
10.3k
        DCHECK(_parsed);
413
10.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
10.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
10.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
10.3k
        *n = max_fetch;
422
10.3k
        if constexpr (forward_index) {
423
10.3k
            _cur_index += max_fetch;
424
10.3k
        }
425
426
10.3k
        return Status::OK();
427
10.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
43.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
43.3k
        DCHECK(_parsed);
413
43.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
43.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
43.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
43.3k
        *n = max_fetch;
422
43.3k
        if constexpr (forward_index) {
423
43.3k
            _cur_index += max_fetch;
424
43.3k
        }
425
426
43.3k
        return Status::OK();
427
43.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
30.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
30.0k
        DCHECK(_parsed);
413
30.0k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
30.0k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
30.0k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
30.0k
        *n = max_fetch;
422
30.0k
        if constexpr (forward_index) {
423
30.0k
            _cur_index += max_fetch;
424
30.0k
        }
425
426
30.0k
        return Status::OK();
427
30.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.21k
        DCHECK(_parsed);
413
3.21k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.21k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.21k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.21k
        *n = max_fetch;
422
3.21k
        if constexpr (forward_index) {
423
3.21k
            _cur_index += max_fetch;
424
3.21k
        }
425
426
3.21k
        return Status::OK();
427
3.21k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.76k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.76k
        DCHECK(_parsed);
413
5.76k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.76k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.76k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.76k
        *n = max_fetch;
422
5.76k
        if constexpr (forward_index) {
423
5.76k
            _cur_index += max_fetch;
424
5.76k
        }
425
426
5.76k
        return Status::OK();
427
5.76k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.76k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.76k
        DCHECK(_parsed);
413
5.76k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.76k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.76k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.76k
        *n = max_fetch;
422
5.76k
        if constexpr (forward_index) {
423
5.76k
            _cur_index += max_fetch;
424
5.76k
        }
425
426
5.76k
        return Status::OK();
427
5.76k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
2.11M
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
530k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
379k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
10.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
132k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
337k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
12.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
15.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
23.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
4.38k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
471k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
88.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.43k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
7.51k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
10.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
43.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
429
30.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.76k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.76k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
430
431
    Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n,
432
359k
                          MutableColumnPtr& dst) override {
433
359k
        DCHECK(_parsed);
434
359k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
359k
        auto total = *n;
440
359k
        auto read_count = 0;
441
359k
        _buffer.resize(total);
442
112M
        for (size_t i = 0; i < total; ++i) {
443
112M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
112M
            if (UNLIKELY(ord >= _num_elements)) {
445
10.5k
                break;
446
10.5k
            }
447
448
112M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
112M
        }
450
451
360k
        if (LIKELY(read_count > 0)) {
452
360k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
360k
        }
454
455
359k
        *n = read_count;
456
359k
        return Status::OK();
457
359k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
71.9k
                          MutableColumnPtr& dst) override {
433
71.9k
        DCHECK(_parsed);
434
71.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
71.9k
        auto total = *n;
440
71.9k
        auto read_count = 0;
441
71.9k
        _buffer.resize(total);
442
40.0M
        for (size_t i = 0; i < total; ++i) {
443
39.9M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
39.9M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.61k
                break;
446
1.61k
            }
447
448
39.9M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
39.9M
        }
450
451
71.9k
        if (LIKELY(read_count > 0)) {
452
71.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
71.9k
        }
454
455
71.9k
        *n = read_count;
456
71.9k
        return Status::OK();
457
71.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
25.7k
                          MutableColumnPtr& dst) override {
433
25.7k
        DCHECK(_parsed);
434
25.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
25.7k
        auto total = *n;
440
25.7k
        auto read_count = 0;
441
25.7k
        _buffer.resize(total);
442
890k
        for (size_t i = 0; i < total; ++i) {
443
864k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
864k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
864k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
864k
        }
450
451
25.7k
        if (LIKELY(read_count > 0)) {
452
25.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
25.6k
        }
454
455
25.7k
        *n = read_count;
456
25.7k
        return Status::OK();
457
25.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
3.85k
                          MutableColumnPtr& dst) override {
433
3.85k
        DCHECK(_parsed);
434
3.85k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
3.85k
        auto total = *n;
440
3.85k
        auto read_count = 0;
441
3.85k
        _buffer.resize(total);
442
71.2k
        for (size_t i = 0; i < total; ++i) {
443
67.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
67.4k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
67.4k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
67.4k
        }
450
451
3.85k
        if (LIKELY(read_count > 0)) {
452
3.85k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
3.85k
        }
454
455
3.85k
        *n = read_count;
456
3.85k
        return Status::OK();
457
3.85k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
66.2k
                          MutableColumnPtr& dst) override {
433
66.2k
        DCHECK(_parsed);
434
66.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
66.2k
        auto total = *n;
440
66.2k
        auto read_count = 0;
441
66.2k
        _buffer.resize(total);
442
14.5M
        for (size_t i = 0; i < total; ++i) {
443
14.5M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.5M
            if (UNLIKELY(ord >= _num_elements)) {
445
854
                break;
446
854
            }
447
448
14.5M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.5M
        }
450
451
66.2k
        if (LIKELY(read_count > 0)) {
452
66.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
66.2k
        }
454
455
66.2k
        *n = read_count;
456
66.2k
        return Status::OK();
457
66.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
33.6k
                          MutableColumnPtr& dst) override {
433
33.6k
        DCHECK(_parsed);
434
33.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
33.6k
        auto total = *n;
440
33.6k
        auto read_count = 0;
441
33.6k
        _buffer.resize(total);
442
753k
        for (size_t i = 0; i < total; ++i) {
443
719k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
719k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
719k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
719k
        }
450
451
33.6k
        if (LIKELY(read_count > 0)) {
452
33.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
33.6k
        }
454
455
33.6k
        *n = read_count;
456
33.6k
        return Status::OK();
457
33.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
5.38k
                          MutableColumnPtr& dst) override {
433
5.38k
        DCHECK(_parsed);
434
5.38k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
5.38k
        auto total = *n;
440
5.38k
        auto read_count = 0;
441
5.38k
        _buffer.resize(total);
442
12.1k
        for (size_t i = 0; i < total; ++i) {
443
6.77k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
6.77k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
6.77k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
6.77k
        }
450
451
5.38k
        if (LIKELY(read_count > 0)) {
452
5.38k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
5.38k
        }
454
455
5.38k
        *n = read_count;
456
5.38k
        return Status::OK();
457
5.38k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.4k
                          MutableColumnPtr& dst) override {
433
10.4k
        DCHECK(_parsed);
434
10.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.4k
        auto total = *n;
440
10.4k
        auto read_count = 0;
441
10.4k
        _buffer.resize(total);
442
1.14M
        for (size_t i = 0; i < total; ++i) {
443
1.13M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.13M
            if (UNLIKELY(ord >= _num_elements)) {
445
30
                break;
446
30
            }
447
448
1.13M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.13M
        }
450
451
10.4k
        if (LIKELY(read_count > 0)) {
452
10.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.4k
        }
454
455
10.4k
        *n = read_count;
456
10.4k
        return Status::OK();
457
10.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.0k
                          MutableColumnPtr& dst) override {
433
15.0k
        DCHECK(_parsed);
434
15.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.0k
        auto total = *n;
440
15.0k
        auto read_count = 0;
441
15.0k
        _buffer.resize(total);
442
4.42M
        for (size_t i = 0; i < total; ++i) {
443
4.41M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4.41M
            if (UNLIKELY(ord >= _num_elements)) {
445
927
                break;
446
927
            }
447
448
4.41M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4.41M
        }
450
451
15.0k
        if (LIKELY(read_count > 0)) {
452
15.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.0k
        }
454
455
15.0k
        *n = read_count;
456
15.0k
        return Status::OK();
457
15.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.05k
                          MutableColumnPtr& dst) override {
433
2.05k
        DCHECK(_parsed);
434
2.05k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.05k
        auto total = *n;
440
2.05k
        auto read_count = 0;
441
2.05k
        _buffer.resize(total);
442
534k
        for (size_t i = 0; i < total; ++i) {
443
532k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
532k
            if (UNLIKELY(ord >= _num_elements)) {
445
15
                break;
446
15
            }
447
448
532k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
532k
        }
450
451
2.05k
        if (LIKELY(read_count > 0)) {
452
2.05k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.05k
        }
454
455
2.05k
        *n = read_count;
456
2.05k
        return Status::OK();
457
2.05k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
29.5k
                          MutableColumnPtr& dst) override {
433
29.5k
        DCHECK(_parsed);
434
29.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
29.5k
        auto total = *n;
440
29.5k
        auto read_count = 0;
441
29.5k
        _buffer.resize(total);
442
7.91M
        for (size_t i = 0; i < total; ++i) {
443
7.88M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.88M
            if (UNLIKELY(ord >= _num_elements)) {
445
680
                break;
446
680
            }
447
448
7.88M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.88M
        }
450
451
29.5k
        if (LIKELY(read_count > 0)) {
452
29.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
29.5k
        }
454
455
29.5k
        *n = read_count;
456
29.5k
        return Status::OK();
457
29.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
31.5k
                          MutableColumnPtr& dst) override {
433
31.5k
        DCHECK(_parsed);
434
31.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.5k
        auto total = *n;
440
31.5k
        auto read_count = 0;
441
31.5k
        _buffer.resize(total);
442
7.31M
        for (size_t i = 0; i < total; ++i) {
443
7.27M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.27M
            if (UNLIKELY(ord >= _num_elements)) {
445
93
                break;
446
93
            }
447
448
7.27M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.27M
        }
450
451
31.5k
        if (LIKELY(read_count > 0)) {
452
31.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.5k
        }
454
455
31.5k
        *n = read_count;
456
31.5k
        return Status::OK();
457
31.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.27k
                          MutableColumnPtr& dst) override {
433
2.27k
        DCHECK(_parsed);
434
2.27k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.27k
        auto total = *n;
440
2.27k
        auto read_count = 0;
441
2.27k
        _buffer.resize(total);
442
537k
        for (size_t i = 0; i < total; ++i) {
443
535k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
535k
            if (UNLIKELY(ord >= _num_elements)) {
445
84
                break;
446
84
            }
447
448
535k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
535k
        }
450
451
2.27k
        if (LIKELY(read_count > 0)) {
452
2.27k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.27k
        }
454
455
2.27k
        *n = read_count;
456
2.27k
        return Status::OK();
457
2.27k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
12.6k
                          MutableColumnPtr& dst) override {
433
12.6k
        DCHECK(_parsed);
434
12.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
12.6k
        auto total = *n;
440
12.6k
        auto read_count = 0;
441
12.6k
        _buffer.resize(total);
442
26.9k
        for (size_t i = 0; i < total; ++i) {
443
14.2k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.2k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.2k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.2k
        }
450
451
12.6k
        if (LIKELY(read_count > 0)) {
452
12.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
12.6k
        }
454
455
12.6k
        *n = read_count;
456
12.6k
        return Status::OK();
457
12.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
83
                          MutableColumnPtr& dst) override {
433
83
        DCHECK(_parsed);
434
83
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
83
        auto total = *n;
440
83
        auto read_count = 0;
441
83
        _buffer.resize(total);
442
174
        for (size_t i = 0; i < total; ++i) {
443
91
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
91
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
91
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
91
        }
450
451
83
        if (LIKELY(read_count > 0)) {
452
83
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
83
        }
454
455
83
        *n = read_count;
456
83
        return Status::OK();
457
83
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.60k
                          MutableColumnPtr& dst) override {
433
4.60k
        DCHECK(_parsed);
434
4.60k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.60k
        auto total = *n;
440
4.60k
        auto read_count = 0;
441
4.60k
        _buffer.resize(total);
442
19.1k
        for (size_t i = 0; i < total; ++i) {
443
14.5k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.5k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.5k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.5k
        }
450
451
4.60k
        if (LIKELY(read_count > 0)) {
452
4.60k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.60k
        }
454
455
4.60k
        *n = read_count;
456
4.60k
        return Status::OK();
457
4.60k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
27.7k
                          MutableColumnPtr& dst) override {
433
27.7k
        DCHECK(_parsed);
434
27.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
27.7k
        auto total = *n;
440
27.7k
        auto read_count = 0;
441
27.7k
        _buffer.resize(total);
442
23.6M
        for (size_t i = 0; i < total; ++i) {
443
23.6M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
23.6M
            if (UNLIKELY(ord >= _num_elements)) {
445
5.79k
                break;
446
5.79k
            }
447
448
23.6M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
23.6M
        }
450
451
27.7k
        if (LIKELY(read_count > 0)) {
452
27.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
27.7k
        }
454
455
27.7k
        *n = read_count;
456
27.7k
        return Status::OK();
457
27.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.3k
                          MutableColumnPtr& dst) override {
433
15.3k
        DCHECK(_parsed);
434
15.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.3k
        auto total = *n;
440
15.3k
        auto read_count = 0;
441
15.3k
        _buffer.resize(total);
442
10.7M
        for (size_t i = 0; i < total; ++i) {
443
10.6M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
10.6M
            if (UNLIKELY(ord >= _num_elements)) {
445
432
                break;
446
432
            }
447
448
10.6M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.6M
        }
450
451
15.3k
        if (LIKELY(read_count > 0)) {
452
15.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.3k
        }
454
455
15.3k
        *n = read_count;
456
15.3k
        return Status::OK();
457
15.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
964
                          MutableColumnPtr& dst) override {
433
964
        DCHECK(_parsed);
434
964
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
964
        auto total = *n;
440
964
        auto read_count = 0;
441
964
        _buffer.resize(total);
442
2.78k
        for (size_t i = 0; i < total; ++i) {
443
1.81k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.81k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.81k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.81k
        }
450
451
964
        if (LIKELY(read_count > 0)) {
452
964
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
964
        }
454
455
964
        *n = read_count;
456
964
        return Status::OK();
457
964
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
473
                          MutableColumnPtr& dst) override {
433
473
        DCHECK(_parsed);
434
473
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
473
        auto total = *n;
440
473
        auto read_count = 0;
441
473
        _buffer.resize(total);
442
1.19k
        for (size_t i = 0; i < total; ++i) {
443
718
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
718
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
718
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
718
        }
450
451
474
        if (LIKELY(read_count > 0)) {
452
474
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
474
        }
454
455
473
        *n = read_count;
456
473
        return Status::OK();
457
473
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
415
                          MutableColumnPtr& dst) override {
433
415
        DCHECK(_parsed);
434
415
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
415
        auto total = *n;
440
415
        auto read_count = 0;
441
415
        _buffer.resize(total);
442
1.34k
        for (size_t i = 0; i < total; ++i) {
443
930
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
930
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
930
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
930
        }
450
451
415
        if (LIKELY(read_count > 0)) {
452
415
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
415
        }
454
455
415
        *n = read_count;
456
415
        return Status::OK();
457
415
    }
458
459
575k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
575k
        return next_batch<false>(n, dst);
461
575k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
459
575k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
575k
        return next_batch<false>(n, dst);
461
575k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
462
463
3
    size_t count() const override { return _num_elements; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
463
3
    size_t count() const override { return _num_elements; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv
464
465
373k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
188k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
351
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
74
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
83.2k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv
Line
Count
Source
465
181
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
14.9k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
10.8k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
6.25k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
28.6k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
23.3k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
5.67k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
1.03k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
9
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.48k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
793
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
5.35k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv
Line
Count
Source
465
307
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv
Line
Count
Source
465
52
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
103
    size_t current_index() const override { return _cur_index; }
466
467
115M
    char* get_data(size_t index) const {
468
115M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
115M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
41.1M
    char* get_data(size_t index) const {
468
41.1M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
41.1M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
1.24M
    char* get_data(size_t index) const {
468
1.24M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.24M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
78.3k
    char* get_data(size_t index) const {
468
78.3k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
78.3k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
14.6M
    char* get_data(size_t index) const {
468
14.6M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
14.6M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
1.63M
    char* get_data(size_t index) const {
468
1.63M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.63M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
19.6k
    char* get_data(size_t index) const {
468
19.6k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
19.6k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.15M
    char* get_data(size_t index) const {
468
1.15M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.15M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
4.43M
    char* get_data(size_t index) const {
468
4.43M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.43M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
537k
    char* get_data(size_t index) const {
468
537k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
537k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
8.35M
    char* get_data(size_t index) const {
468
8.35M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
8.35M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
7.36M
    char* get_data(size_t index) const {
468
7.36M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.36M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
536k
    char* get_data(size_t index) const {
468
536k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
536k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
21.7k
    char* get_data(size_t index) const {
468
21.7k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21.7k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.30k
    char* get_data(size_t index) const {
468
1.30k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.30k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
24.8k
    char* get_data(size_t index) const {
468
24.8k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
24.8k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
23.7M
    char* get_data(size_t index) const {
468
23.7M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
23.7M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
10.7M
    char* get_data(size_t index) const {
468
10.7M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.7M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
5.02k
    char* get_data(size_t index) const {
468
5.02k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5.02k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
6.48k
    char* get_data(size_t index) const {
468
6.48k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.48k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
6.69k
    char* get_data(size_t index) const {
468
6.69k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.69k
    }
470
471
private:
472
    void _copy_next_values(size_t n, void* data) {
473
        memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE);
474
    }
475
476
    using CppType = typename TypeTraits<Type>::CppType;
477
478
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
479
480
    Slice _data;
481
    PageDecoderOptions _options;
482
    bool _parsed;
483
    size_t _num_elements;
484
    size_t _num_element_after_padding;
485
486
    int _size_of_element;
487
    size_t _cur_index;
488
489
    std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer;
490
491
    friend class BinaryDictPageDecoder;
492
};
493
494
#include "common/compile_check_end.h"
495
} // namespace segment_v2
496
} // namespace doris