Coverage Report

Created: 2026-04-01 07:52

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
804k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
388k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
57.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
9.03k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
105k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
75.2k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
11.9k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
12.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
14.8k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
184
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
36.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
44.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
316
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
6.98k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
194
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.73k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
16.2k
    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
798
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
709
    Status init() override { return reset(); }
97
98
175M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
174M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
57.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
11.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
485k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
75.9k
    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
19.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
12.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
17.0k
    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
191
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
78.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
54.0k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
380
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.90k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
99
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.28k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
34.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
19.7k
    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
25.7k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
3.13k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.67M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.67M
        return add_internal<false>(vals, count);
102
1.67M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
766k
    Status add(const uint8_t* vals, size_t* count) override {
101
766k
        return add_internal<false>(vals, count);
102
766k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
57.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
57.8k
        return add_internal<false>(vals, count);
102
57.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
11.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.5k
        return add_internal<false>(vals, count);
102
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
485k
    Status add(const uint8_t* vals, size_t* count) override {
101
485k
        return add_internal<false>(vals, count);
102
485k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
75.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
75.9k
        return add_internal<false>(vals, count);
102
75.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
19.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
19.2k
        return add_internal<false>(vals, count);
102
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
12.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
12.1k
        return add_internal<false>(vals, count);
102
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
17.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
17.0k
        return add_internal<false>(vals, count);
102
17.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
191
    Status add(const uint8_t* vals, size_t* count) override {
101
191
        return add_internal<false>(vals, count);
102
191
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
78.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
78.8k
        return add_internal<false>(vals, count);
102
78.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
54.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
54.0k
        return add_internal<false>(vals, count);
102
54.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
380
    Status add(const uint8_t* vals, size_t* count) override {
101
380
        return add_internal<false>(vals, count);
102
380
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
6.91k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.91k
        return add_internal<false>(vals, count);
102
6.91k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
99
    Status add(const uint8_t* vals, size_t* count) override {
101
99
        return add_internal<false>(vals, count);
102
99
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.28k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.28k
        return add_internal<false>(vals, count);
102
5.28k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
34.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
34.5k
        return add_internal<false>(vals, count);
102
34.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
19.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
19.7k
        return add_internal<false>(vals, count);
102
19.7k
    }
_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
25.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
25.7k
        return add_internal<false>(vals, count);
102
25.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
3.13k
    Status add(const uint8_t* vals, size_t* count) override {
101
3.13k
        return add_internal<false>(vals, count);
102
3.13k
    }
103
104
174M
    Status single_add(const uint8_t* vals, size_t* count) {
105
174M
        return add_internal<true>(vals, count);
106
174M
    }
107
108
    template <bool single>
109
174M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
174M
        DCHECK(!_finished);
111
174M
        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
174M
        uint32_t to_add = cast_set<UInt32>(
127
174M
                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
174M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
174M
        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
174M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
177M
        _count += to_add;
135
177M
        _remain_element_capacity -= to_add;
136
177M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
177M
        *num_written = to_add;
139
177M
        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
175M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
175M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
175M
                        *reinterpret_cast<const uint32_t*>(vals);
150
175M
                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
175M
        }
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
177M
        return Status::OK();
160
174M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
766k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
766k
        DCHECK(!_finished);
111
766k
        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
766k
        uint32_t to_add = cast_set<UInt32>(
127
766k
                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
766k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
766k
        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
766k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
766k
        _count += to_add;
135
766k
        _remain_element_capacity -= to_add;
136
766k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
766k
        *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
766k
        memcpy(&_data[orig_size], vals, to_add_size);
159
766k
        return Status::OK();
160
766k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
173M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
173M
        DCHECK(!_finished);
111
173M
        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
173M
        uint32_t to_add = cast_set<UInt32>(
127
173M
                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
173M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
173M
        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
173M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
175M
        _count += to_add;
135
175M
        _remain_element_capacity -= to_add;
136
175M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
175M
        *num_written = to_add;
139
175M
        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
175M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
175M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
175M
                        *reinterpret_cast<const uint32_t*>(vals);
150
175M
                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
175M
        }
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
175M
        return Status::OK();
160
173M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
57.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
57.8k
        DCHECK(!_finished);
111
57.8k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
57.8k
        uint32_t to_add = cast_set<UInt32>(
127
57.8k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
57.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
57.8k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
57.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
57.8k
        _count += to_add;
135
57.8k
        _remain_element_capacity -= to_add;
136
57.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
57.8k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
57.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
57.8k
        return Status::OK();
160
57.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.5k
        DCHECK(!_finished);
111
11.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
11.5k
        uint32_t to_add = cast_set<UInt32>(
127
11.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
11.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.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
11.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.5k
        _count += to_add;
135
11.5k
        _remain_element_capacity -= to_add;
136
11.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.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
11.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.5k
        return Status::OK();
160
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
486k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
486k
        DCHECK(!_finished);
111
486k
        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
486k
        uint32_t to_add = cast_set<UInt32>(
127
486k
                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
486k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
486k
        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
486k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
486k
        _count += to_add;
135
486k
        _remain_element_capacity -= to_add;
136
486k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
486k
        *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
486k
        memcpy(&_data[orig_size], vals, to_add_size);
159
486k
        return Status::OK();
160
486k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
75.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
75.9k
        DCHECK(!_finished);
111
75.9k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
75.9k
        uint32_t to_add = cast_set<UInt32>(
127
75.9k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
75.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
75.9k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
75.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
75.9k
        _count += to_add;
135
75.9k
        _remain_element_capacity -= to_add;
136
75.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
75.9k
        *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
75.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
75.9k
        return Status::OK();
160
75.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
19.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
19.2k
        DCHECK(!_finished);
111
19.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
19.2k
        uint32_t to_add = cast_set<UInt32>(
127
19.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
19.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
19.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
19.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
19.2k
        _count += to_add;
135
19.2k
        _remain_element_capacity -= to_add;
136
19.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
19.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
19.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
19.2k
        return Status::OK();
160
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
12.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
12.1k
        DCHECK(!_finished);
111
12.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
12.1k
        uint32_t to_add = cast_set<UInt32>(
127
12.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
12.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
12.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
12.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
12.1k
        _count += to_add;
135
12.1k
        _remain_element_capacity -= to_add;
136
12.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
12.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
12.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
12.1k
        return Status::OK();
160
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
17.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
17.0k
        DCHECK(!_finished);
111
17.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
17.0k
        uint32_t to_add = cast_set<UInt32>(
127
17.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
17.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
17.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
17.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
17.0k
        _count += to_add;
135
17.0k
        _remain_element_capacity -= to_add;
136
17.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
17.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
17.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
17.0k
        return Status::OK();
160
17.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
191
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
191
        DCHECK(!_finished);
111
191
        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
191
        uint32_t to_add = cast_set<UInt32>(
127
191
                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
191
        int to_add_size = to_add * SIZE_OF_TYPE;
130
191
        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
191
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
191
        _count += to_add;
135
191
        _remain_element_capacity -= to_add;
136
191
        _raw_data_size += to_add_size;
137
        // return added number through count
138
191
        *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
191
        memcpy(&_data[orig_size], vals, to_add_size);
159
191
        return Status::OK();
160
191
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
78.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
78.8k
        DCHECK(!_finished);
111
78.8k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
78.8k
        uint32_t to_add = cast_set<UInt32>(
127
78.8k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
78.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
78.8k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
78.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
78.8k
        _count += to_add;
135
78.8k
        _remain_element_capacity -= to_add;
136
78.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
78.8k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
78.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
78.8k
        return Status::OK();
160
78.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
54.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
54.0k
        DCHECK(!_finished);
111
54.0k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
54.0k
        uint32_t to_add = cast_set<UInt32>(
127
54.0k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
54.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
54.0k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
54.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
54.0k
        _count += to_add;
135
54.0k
        _remain_element_capacity -= to_add;
136
54.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
54.0k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
54.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
54.0k
        return Status::OK();
160
54.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
380
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
380
        DCHECK(!_finished);
111
380
        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
380
        uint32_t to_add = cast_set<UInt32>(
127
380
                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
380
        int to_add_size = to_add * SIZE_OF_TYPE;
130
380
        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
380
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
380
        _count += to_add;
135
380
        _remain_element_capacity -= to_add;
136
380
        _raw_data_size += to_add_size;
137
        // return added number through count
138
380
        *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
380
        memcpy(&_data[orig_size], vals, to_add_size);
159
380
        return Status::OK();
160
380
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
6.90k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.90k
        DCHECK(!_finished);
111
6.90k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
6.90k
        uint32_t to_add = cast_set<UInt32>(
127
6.90k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
6.90k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.90k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
6.90k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.91k
        _count += to_add;
135
6.91k
        _remain_element_capacity -= to_add;
136
6.91k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.91k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
6.91k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.91k
        return Status::OK();
160
6.90k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
99
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
99
        DCHECK(!_finished);
111
99
        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
99
        uint32_t to_add = cast_set<UInt32>(
127
99
                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
99
        int to_add_size = to_add * SIZE_OF_TYPE;
130
99
        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
99
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
99
        _count += to_add;
135
99
        _remain_element_capacity -= to_add;
136
99
        _raw_data_size += to_add_size;
137
        // return added number through count
138
99
        *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
99
        memcpy(&_data[orig_size], vals, to_add_size);
159
99
        return Status::OK();
160
99
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.28k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.28k
        DCHECK(!_finished);
111
5.28k
        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.28k
        uint32_t to_add = cast_set<UInt32>(
127
5.28k
                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.28k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.28k
        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.28k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.28k
        _count += to_add;
135
5.28k
        _remain_element_capacity -= to_add;
136
5.28k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.28k
        *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.28k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.28k
        return Status::OK();
160
5.28k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
34.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
34.5k
        DCHECK(!_finished);
111
34.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
34.5k
        uint32_t to_add = cast_set<UInt32>(
127
34.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
34.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
34.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
34.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
34.5k
        _count += to_add;
135
34.5k
        _remain_element_capacity -= to_add;
136
34.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
34.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
34.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
34.5k
        return Status::OK();
160
34.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
19.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
19.7k
        DCHECK(!_finished);
111
19.7k
        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
19.7k
        uint32_t to_add = cast_set<UInt32>(
127
19.7k
                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
19.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
19.7k
        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
19.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
19.7k
        _count += to_add;
135
19.7k
        _remain_element_capacity -= to_add;
136
19.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
19.7k
        *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
19.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
19.7k
        return Status::OK();
160
19.7k
    }
_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
25.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
25.7k
        DCHECK(!_finished);
111
25.7k
        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
25.7k
        uint32_t to_add = cast_set<UInt32>(
127
25.7k
                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
25.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
25.7k
        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
25.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
25.7k
        _count += to_add;
135
25.7k
        _remain_element_capacity -= to_add;
136
25.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
25.7k
        *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
25.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
25.7k
        return Status::OK();
160
25.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
3.13k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
3.13k
        DCHECK(!_finished);
111
3.13k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
3.13k
        uint32_t to_add = cast_set<UInt32>(
127
3.13k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
3.13k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
3.13k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
3.13k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
3.13k
        _count += to_add;
135
3.13k
        _remain_element_capacity -= to_add;
136
3.13k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
3.13k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
3.13k
        memcpy(&_data[orig_size], vals, to_add_size);
159
3.13k
        return Status::OK();
160
3.13k
    }
161
162
790k
    Status finish(OwnedSlice* slice) override {
163
790k
        if (_count > 0) {
164
743k
            _first_value = cell(0);
165
743k
            _last_value = cell(_count - 1);
166
743k
        }
167
790k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
790k
        return Status::OK();
169
790k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
366k
    Status finish(OwnedSlice* slice) override {
163
366k
        if (_count > 0) {
164
332k
            _first_value = cell(0);
165
332k
            _last_value = cell(_count - 1);
166
332k
        }
167
366k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
366k
        return Status::OK();
169
366k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
56.1k
    Status finish(OwnedSlice* slice) override {
163
56.1k
        if (_count > 0) {
164
55.6k
            _first_value = cell(0);
165
55.6k
            _last_value = cell(_count - 1);
166
55.6k
        }
167
56.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
56.1k
        return Status::OK();
169
56.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
8.56k
    Status finish(OwnedSlice* slice) override {
163
8.56k
        if (_count > 0) {
164
8.40k
            _first_value = cell(0);
165
8.40k
            _last_value = cell(_count - 1);
166
8.40k
        }
167
8.56k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
8.56k
        return Status::OK();
169
8.56k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
109k
    Status finish(OwnedSlice* slice) override {
163
109k
        if (_count > 0) {
164
107k
            _first_value = cell(0);
165
107k
            _last_value = cell(_count - 1);
166
107k
        }
167
109k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
109k
        return Status::OK();
169
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
75.2k
    Status finish(OwnedSlice* slice) override {
163
75.2k
        if (_count > 0) {
164
75.2k
            _first_value = cell(0);
165
75.2k
            _last_value = cell(_count - 1);
166
75.2k
        }
167
75.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
75.2k
        return Status::OK();
169
75.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.7k
    Status finish(OwnedSlice* slice) override {
163
11.7k
        if (_count > 0) {
164
11.3k
            _first_value = cell(0);
165
11.3k
            _last_value = cell(_count - 1);
166
11.3k
        }
167
11.7k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.7k
        return Status::OK();
169
11.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.5k
    Status finish(OwnedSlice* slice) override {
163
11.5k
        if (_count > 0) {
164
11.0k
            _first_value = cell(0);
165
11.0k
            _last_value = cell(_count - 1);
166
11.0k
        }
167
11.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.5k
        return Status::OK();
169
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
14.8k
    Status finish(OwnedSlice* slice) override {
163
14.8k
        if (_count > 0) {
164
14.3k
            _first_value = cell(0);
165
14.3k
            _last_value = cell(_count - 1);
166
14.3k
        }
167
14.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
14.8k
        return Status::OK();
169
14.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
196
    Status finish(OwnedSlice* slice) override {
163
196
        if (_count > 0) {
164
191
            _first_value = cell(0);
165
191
            _last_value = cell(_count - 1);
166
191
        }
167
196
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
196
        return Status::OK();
169
196
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
37.5k
    Status finish(OwnedSlice* slice) override {
163
37.5k
        if (_count > 0) {
164
36.5k
            _first_value = cell(0);
165
36.5k
            _last_value = cell(_count - 1);
166
36.5k
        }
167
37.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
37.5k
        return Status::OK();
169
37.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
43.3k
    Status finish(OwnedSlice* slice) override {
163
43.3k
        if (_count > 0) {
164
41.8k
            _first_value = cell(0);
165
41.8k
            _last_value = cell(_count - 1);
166
41.8k
        }
167
43.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
43.3k
        return Status::OK();
169
43.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
470
    Status finish(OwnedSlice* slice) override {
163
470
        if (_count > 0) {
164
370
            _first_value = cell(0);
165
370
            _last_value = cell(_count - 1);
166
370
        }
167
470
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
470
        return Status::OK();
169
470
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.09k
    Status finish(OwnedSlice* slice) override {
163
7.09k
        if (_count > 0) {
164
6.90k
            _first_value = cell(0);
165
6.90k
            _last_value = cell(_count - 1);
166
6.90k
        }
167
7.09k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.10k
        return Status::OK();
169
7.09k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
107
    Status finish(OwnedSlice* slice) override {
163
107
        if (_count > 0) {
164
99
            _first_value = cell(0);
165
99
            _last_value = cell(_count - 1);
166
99
        }
167
107
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
107
        return Status::OK();
169
107
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.73k
    Status finish(OwnedSlice* slice) override {
163
9.73k
        if (_count > 0) {
164
4.76k
            _first_value = cell(0);
165
4.76k
            _last_value = cell(_count - 1);
166
4.76k
        }
167
9.73k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.73k
        return Status::OK();
169
9.73k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.2k
    Status finish(OwnedSlice* slice) override {
163
19.2k
        if (_count > 0) {
164
18.2k
            _first_value = cell(0);
165
18.2k
            _last_value = cell(_count - 1);
166
18.2k
        }
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.4k
    Status finish(OwnedSlice* slice) override {
163
16.4k
        if (_count > 0) {
164
15.8k
            _first_value = cell(0);
165
15.8k
            _last_value = cell(_count - 1);
166
15.8k
        }
167
16.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.4k
        return Status::OK();
169
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.06k
    Status finish(OwnedSlice* slice) override {
163
1.06k
        if (_count > 0) {
164
1.01k
            _first_value = cell(0);
165
1.01k
            _last_value = cell(_count - 1);
166
1.01k
        }
167
1.06k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.06k
        return Status::OK();
169
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
711
    Status finish(OwnedSlice* slice) override {
163
711
        if (_count > 0) {
164
661
            _first_value = cell(0);
165
661
            _last_value = cell(_count - 1);
166
661
        }
167
711
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
711
        return Status::OK();
169
711
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
626
    Status finish(OwnedSlice* slice) override {
163
626
        if (_count > 0) {
164
591
            _first_value = cell(0);
165
591
            _last_value = cell(_count - 1);
166
591
        }
167
626
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
626
        return Status::OK();
169
626
    }
170
171
1.91M
    Status reset() override {
172
1.91M
        RETURN_IF_CATCH_EXCEPTION({
173
1.91M
            size_t block_size = _options.data_page_size;
174
1.91M
            _count = 0;
175
1.91M
            _raw_data_size = 0;
176
1.91M
            _data.clear();
177
1.91M
            _data.reserve(block_size);
178
1.91M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.91M
                    << "buffer must be naturally-aligned";
180
1.91M
            _buffer.clear();
181
1.91M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.91M
            _finished = false;
183
1.91M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.91M
        });
185
1.91M
        return Status::OK();
186
1.91M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.07M
    Status reset() override {
172
1.07M
        RETURN_IF_CATCH_EXCEPTION({
173
1.07M
            size_t block_size = _options.data_page_size;
174
1.07M
            _count = 0;
175
1.07M
            _raw_data_size = 0;
176
1.07M
            _data.clear();
177
1.07M
            _data.reserve(block_size);
178
1.07M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.07M
                    << "buffer must be naturally-aligned";
180
1.07M
            _buffer.clear();
181
1.07M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.07M
            _finished = false;
183
1.07M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.07M
        });
185
1.07M
        return Status::OK();
186
1.07M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
113k
    Status reset() override {
172
113k
        RETURN_IF_CATCH_EXCEPTION({
173
113k
            size_t block_size = _options.data_page_size;
174
113k
            _count = 0;
175
113k
            _raw_data_size = 0;
176
113k
            _data.clear();
177
113k
            _data.reserve(block_size);
178
113k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
113k
                    << "buffer must be naturally-aligned";
180
113k
            _buffer.clear();
181
113k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
113k
            _finished = false;
183
113k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
113k
        });
185
113k
        return Status::OK();
186
113k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
17.5k
    Status reset() override {
172
17.5k
        RETURN_IF_CATCH_EXCEPTION({
173
17.5k
            size_t block_size = _options.data_page_size;
174
17.5k
            _count = 0;
175
17.5k
            _raw_data_size = 0;
176
17.5k
            _data.clear();
177
17.5k
            _data.reserve(block_size);
178
17.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
17.5k
                    << "buffer must be naturally-aligned";
180
17.5k
            _buffer.clear();
181
17.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
17.5k
            _finished = false;
183
17.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
17.5k
        });
185
17.6k
        return Status::OK();
186
17.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
214k
    Status reset() override {
172
214k
        RETURN_IF_CATCH_EXCEPTION({
173
214k
            size_t block_size = _options.data_page_size;
174
214k
            _count = 0;
175
214k
            _raw_data_size = 0;
176
214k
            _data.clear();
177
214k
            _data.reserve(block_size);
178
214k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
214k
                    << "buffer must be naturally-aligned";
180
214k
            _buffer.clear();
181
214k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
214k
            _finished = false;
183
214k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
214k
        });
185
214k
        return Status::OK();
186
214k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
150k
    Status reset() override {
172
150k
        RETURN_IF_CATCH_EXCEPTION({
173
150k
            size_t block_size = _options.data_page_size;
174
150k
            _count = 0;
175
150k
            _raw_data_size = 0;
176
150k
            _data.clear();
177
150k
            _data.reserve(block_size);
178
150k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
150k
                    << "buffer must be naturally-aligned";
180
150k
            _buffer.clear();
181
150k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
150k
            _finished = false;
183
150k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
150k
        });
185
150k
        return Status::OK();
186
150k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
23.6k
    Status reset() override {
172
23.6k
        RETURN_IF_CATCH_EXCEPTION({
173
23.6k
            size_t block_size = _options.data_page_size;
174
23.6k
            _count = 0;
175
23.6k
            _raw_data_size = 0;
176
23.6k
            _data.clear();
177
23.6k
            _data.reserve(block_size);
178
23.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
23.6k
                    << "buffer must be naturally-aligned";
180
23.6k
            _buffer.clear();
181
23.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
23.6k
            _finished = false;
183
23.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
23.6k
        });
185
23.7k
        return Status::OK();
186
23.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
23.8k
    Status reset() override {
172
23.8k
        RETURN_IF_CATCH_EXCEPTION({
173
23.8k
            size_t block_size = _options.data_page_size;
174
23.8k
            _count = 0;
175
23.8k
            _raw_data_size = 0;
176
23.8k
            _data.clear();
177
23.8k
            _data.reserve(block_size);
178
23.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
23.8k
                    << "buffer must be naturally-aligned";
180
23.8k
            _buffer.clear();
181
23.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
23.8k
            _finished = false;
183
23.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
23.8k
        });
185
23.8k
        return Status::OK();
186
23.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
29.6k
    Status reset() override {
172
29.6k
        RETURN_IF_CATCH_EXCEPTION({
173
29.6k
            size_t block_size = _options.data_page_size;
174
29.6k
            _count = 0;
175
29.6k
            _raw_data_size = 0;
176
29.6k
            _data.clear();
177
29.6k
            _data.reserve(block_size);
178
29.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
29.6k
                    << "buffer must be naturally-aligned";
180
29.6k
            _buffer.clear();
181
29.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
29.6k
            _finished = false;
183
29.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
29.6k
        });
185
29.6k
        return Status::OK();
186
29.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
380
    Status reset() override {
172
380
        RETURN_IF_CATCH_EXCEPTION({
173
380
            size_t block_size = _options.data_page_size;
174
380
            _count = 0;
175
380
            _raw_data_size = 0;
176
380
            _data.clear();
177
380
            _data.reserve(block_size);
178
380
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
380
                    << "buffer must be naturally-aligned";
180
380
            _buffer.clear();
181
380
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
380
            _finished = false;
183
380
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
380
        });
185
380
        return Status::OK();
186
380
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
74.3k
    Status reset() override {
172
74.3k
        RETURN_IF_CATCH_EXCEPTION({
173
74.3k
            size_t block_size = _options.data_page_size;
174
74.3k
            _count = 0;
175
74.3k
            _raw_data_size = 0;
176
74.3k
            _data.clear();
177
74.3k
            _data.reserve(block_size);
178
74.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
74.3k
                    << "buffer must be naturally-aligned";
180
74.3k
            _buffer.clear();
181
74.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
74.3k
            _finished = false;
183
74.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
74.3k
        });
185
74.4k
        return Status::OK();
186
74.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
87.7k
    Status reset() override {
172
87.7k
        RETURN_IF_CATCH_EXCEPTION({
173
87.7k
            size_t block_size = _options.data_page_size;
174
87.7k
            _count = 0;
175
87.7k
            _raw_data_size = 0;
176
87.7k
            _data.clear();
177
87.7k
            _data.reserve(block_size);
178
87.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
87.7k
                    << "buffer must be naturally-aligned";
180
87.7k
            _buffer.clear();
181
87.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
87.7k
            _finished = false;
183
87.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
87.7k
        });
185
87.7k
        return Status::OK();
186
87.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
784
    Status reset() override {
172
784
        RETURN_IF_CATCH_EXCEPTION({
173
784
            size_t block_size = _options.data_page_size;
174
784
            _count = 0;
175
784
            _raw_data_size = 0;
176
784
            _data.clear();
177
784
            _data.reserve(block_size);
178
784
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
784
                    << "buffer must be naturally-aligned";
180
784
            _buffer.clear();
181
784
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
784
            _finished = false;
183
784
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
784
        });
185
786
        return Status::OK();
186
784
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
171
14.0k
    Status reset() override {
172
14.0k
        RETURN_IF_CATCH_EXCEPTION({
173
14.0k
            size_t block_size = _options.data_page_size;
174
14.0k
            _count = 0;
175
14.0k
            _raw_data_size = 0;
176
14.0k
            _data.clear();
177
14.0k
            _data.reserve(block_size);
178
14.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14.0k
                    << "buffer must be naturally-aligned";
180
14.0k
            _buffer.clear();
181
14.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14.0k
            _finished = false;
183
14.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14.0k
        });
185
14.2k
        return Status::OK();
186
14.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
301
    Status reset() override {
172
301
        RETURN_IF_CATCH_EXCEPTION({
173
301
            size_t block_size = _options.data_page_size;
174
301
            _count = 0;
175
301
            _raw_data_size = 0;
176
301
            _data.clear();
177
301
            _data.reserve(block_size);
178
301
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
301
                    << "buffer must be naturally-aligned";
180
301
            _buffer.clear();
181
301
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
301
            _finished = false;
183
301
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
301
        });
185
301
        return Status::OK();
186
301
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
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_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
32.7k
    Status reset() override {
172
32.7k
        RETURN_IF_CATCH_EXCEPTION({
173
32.7k
            size_t block_size = _options.data_page_size;
174
32.7k
            _count = 0;
175
32.7k
            _raw_data_size = 0;
176
32.7k
            _data.clear();
177
32.7k
            _data.reserve(block_size);
178
32.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
32.7k
                    << "buffer must be naturally-aligned";
180
32.7k
            _buffer.clear();
181
32.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
32.7k
            _finished = false;
183
32.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
32.7k
        });
185
32.7k
        return Status::OK();
186
32.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.22k
    Status reset() override {
172
2.22k
        RETURN_IF_CATCH_EXCEPTION({
173
2.22k
            size_t block_size = _options.data_page_size;
174
2.22k
            _count = 0;
175
2.22k
            _raw_data_size = 0;
176
2.22k
            _data.clear();
177
2.22k
            _data.reserve(block_size);
178
2.22k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.22k
                    << "buffer must be naturally-aligned";
180
2.22k
            _buffer.clear();
181
2.22k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.22k
            _finished = false;
183
2.22k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.22k
        });
185
2.22k
        return Status::OK();
186
2.22k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.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.33k
    Status reset() override {
172
1.33k
        RETURN_IF_CATCH_EXCEPTION({
173
1.33k
            size_t block_size = _options.data_page_size;
174
1.33k
            _count = 0;
175
1.33k
            _raw_data_size = 0;
176
1.33k
            _data.clear();
177
1.33k
            _data.reserve(block_size);
178
1.33k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.33k
                    << "buffer must be naturally-aligned";
180
1.33k
            _buffer.clear();
181
1.33k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.33k
            _finished = false;
183
1.33k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.33k
        });
185
1.33k
        return Status::OK();
186
1.33k
    }
187
188
2.40M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
2.40M
    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
45.1k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
23.0k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
4.99k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
963
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
5.14k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
2.14k
    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
755
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
799
    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.68k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.50k
    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
157
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
315
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.16k
    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
497k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
73.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
56.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
8.56k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
109k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
75.2k
    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.7k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
11.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
14.8k
    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
196
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
37.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
43.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
470
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.10k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
107
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.73k
    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.4k
    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
711
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
626
    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
804k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
388k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
57.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.03k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
105k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
75.1k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.9k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
14.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
184
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
36.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
44.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
314
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.00k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
194
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.74k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
16.2k
            : _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
798
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
709
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
790k
    OwnedSlice _finish(int final_size_of_type) {
216
790k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
790k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
790k
        int padding_elems = num_elems_after_padding - _count;
221
790k
        int padding_bytes = padding_elems * final_size_of_type;
222
22.1M
        for (int i = 0; i < padding_bytes; i++) {
223
21.3M
            _data.push_back(0);
224
21.3M
        }
225
226
        // reserve enough place for compression
227
790k
        _buffer.resize(
228
790k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
790k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
790k
        int64_t bytes =
232
790k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
790k
                                         num_elems_after_padding, final_size_of_type, 0);
234
790k
        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
790k
        encode_fixed32_le(&_buffer[0], _count);
244
790k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
790k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
790k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
790k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
790k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
790k
        return _buffer.build();
251
790k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
366k
    OwnedSlice _finish(int final_size_of_type) {
216
366k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
366k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
366k
        int padding_elems = num_elems_after_padding - _count;
221
366k
        int padding_bytes = padding_elems * final_size_of_type;
222
6.83M
        for (int i = 0; i < padding_bytes; i++) {
223
6.47M
            _data.push_back(0);
224
6.47M
        }
225
226
        // reserve enough place for compression
227
366k
        _buffer.resize(
228
366k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
366k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
366k
        int64_t bytes =
232
366k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
366k
                                         num_elems_after_padding, final_size_of_type, 0);
234
366k
        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
366k
        encode_fixed32_le(&_buffer[0], _count);
244
366k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
366k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
366k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
366k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
366k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
366k
        return _buffer.build();
251
366k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
56.1k
    OwnedSlice _finish(int final_size_of_type) {
216
56.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
56.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
56.1k
        int padding_elems = num_elems_after_padding - _count;
221
56.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
356k
        for (int i = 0; i < padding_bytes; i++) {
223
300k
            _data.push_back(0);
224
300k
        }
225
226
        // reserve enough place for compression
227
56.1k
        _buffer.resize(
228
56.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
56.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
56.1k
        int64_t bytes =
232
56.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
56.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
56.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
56.1k
        encode_fixed32_le(&_buffer[0], _count);
244
56.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
56.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
56.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
56.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
56.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
56.1k
        return _buffer.build();
251
56.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
8.56k
    OwnedSlice _finish(int final_size_of_type) {
216
8.56k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
8.56k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
8.56k
        int padding_elems = num_elems_after_padding - _count;
221
8.56k
        int padding_bytes = padding_elems * final_size_of_type;
222
85.2k
        for (int i = 0; i < padding_bytes; i++) {
223
76.7k
            _data.push_back(0);
224
76.7k
        }
225
226
        // reserve enough place for compression
227
8.56k
        _buffer.resize(
228
8.56k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
8.56k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
8.56k
        int64_t bytes =
232
8.56k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
8.56k
                                         num_elems_after_padding, final_size_of_type, 0);
234
8.56k
        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
8.56k
        encode_fixed32_le(&_buffer[0], _count);
244
8.56k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
8.56k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
8.56k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
8.56k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
8.56k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
8.56k
        return _buffer.build();
251
8.56k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
109k
    OwnedSlice _finish(int final_size_of_type) {
216
109k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
109k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
109k
        int padding_elems = num_elems_after_padding - _count;
221
109k
        int padding_bytes = padding_elems * final_size_of_type;
222
4.62M
        for (int i = 0; i < padding_bytes; i++) {
223
4.51M
            _data.push_back(0);
224
4.51M
        }
225
226
        // reserve enough place for compression
227
109k
        _buffer.resize(
228
109k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
109k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
109k
        int64_t bytes =
232
109k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
109k
                                         num_elems_after_padding, final_size_of_type, 0);
234
109k
        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
109k
        encode_fixed32_le(&_buffer[0], _count);
244
109k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
109k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
109k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
109k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
109k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
109k
        return _buffer.build();
251
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
75.2k
    OwnedSlice _finish(int final_size_of_type) {
216
75.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
75.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
75.2k
        int padding_elems = num_elems_after_padding - _count;
221
75.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.61M
        for (int i = 0; i < padding_bytes; i++) {
223
3.53M
            _data.push_back(0);
224
3.53M
        }
225
226
        // reserve enough place for compression
227
75.2k
        _buffer.resize(
228
75.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
75.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
75.2k
        int64_t bytes =
232
75.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
75.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
75.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
75.2k
        encode_fixed32_le(&_buffer[0], _count);
244
75.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
75.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
75.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
75.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
75.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
75.2k
        return _buffer.build();
251
75.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
11.7k
    OwnedSlice _finish(int final_size_of_type) {
216
11.7k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.7k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.7k
        int padding_elems = num_elems_after_padding - _count;
221
11.7k
        int padding_bytes = padding_elems * final_size_of_type;
222
743k
        for (int i = 0; i < padding_bytes; i++) {
223
731k
            _data.push_back(0);
224
731k
        }
225
226
        // reserve enough place for compression
227
11.7k
        _buffer.resize(
228
11.7k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.7k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.7k
        int64_t bytes =
232
11.7k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.7k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.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
11.7k
        encode_fixed32_le(&_buffer[0], _count);
244
11.7k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.7k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.7k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.7k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.7k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.7k
        return _buffer.build();
251
11.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
11.5k
    OwnedSlice _finish(int final_size_of_type) {
216
11.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.5k
        int padding_elems = num_elems_after_padding - _count;
221
11.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
250k
        for (int i = 0; i < padding_bytes; i++) {
223
239k
            _data.push_back(0);
224
239k
        }
225
226
        // reserve enough place for compression
227
11.5k
        _buffer.resize(
228
11.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.5k
        int64_t bytes =
232
11.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.5k
        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.5k
        encode_fixed32_le(&_buffer[0], _count);
244
11.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.5k
        return _buffer.build();
251
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
14.8k
    OwnedSlice _finish(int final_size_of_type) {
216
14.8k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
14.8k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
14.8k
        int padding_elems = num_elems_after_padding - _count;
221
14.8k
        int padding_bytes = padding_elems * final_size_of_type;
222
607k
        for (int i = 0; i < padding_bytes; i++) {
223
592k
            _data.push_back(0);
224
592k
        }
225
226
        // reserve enough place for compression
227
14.8k
        _buffer.resize(
228
14.8k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
14.8k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
14.8k
        int64_t bytes =
232
14.8k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
14.8k
                                         num_elems_after_padding, final_size_of_type, 0);
234
14.8k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
14.8k
        encode_fixed32_le(&_buffer[0], _count);
244
14.8k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
14.8k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
14.8k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
14.8k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
14.8k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
14.8k
        return _buffer.build();
251
14.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
196
    OwnedSlice _finish(int final_size_of_type) {
216
196
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
196
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
196
        int padding_elems = num_elems_after_padding - _count;
221
196
        int padding_bytes = padding_elems * final_size_of_type;
222
2.68k
        for (int i = 0; i < padding_bytes; i++) {
223
2.49k
            _data.push_back(0);
224
2.49k
        }
225
226
        // reserve enough place for compression
227
196
        _buffer.resize(
228
196
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
196
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
196
        int64_t bytes =
232
196
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
196
                                         num_elems_after_padding, final_size_of_type, 0);
234
196
        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
196
        encode_fixed32_le(&_buffer[0], _count);
244
196
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
196
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
196
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
196
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
196
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
196
        return _buffer.build();
251
196
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
37.5k
    OwnedSlice _finish(int final_size_of_type) {
216
37.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
37.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
37.5k
        int padding_elems = num_elems_after_padding - _count;
221
37.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
803k
        for (int i = 0; i < padding_bytes; i++) {
223
765k
            _data.push_back(0);
224
765k
        }
225
226
        // reserve enough place for compression
227
37.5k
        _buffer.resize(
228
37.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
37.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
37.5k
        int64_t bytes =
232
37.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
37.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
37.5k
        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.5k
        encode_fixed32_le(&_buffer[0], _count);
244
37.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
37.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
37.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
37.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
37.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
37.5k
        return _buffer.build();
251
37.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
43.3k
    OwnedSlice _finish(int final_size_of_type) {
216
43.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
43.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
43.3k
        int padding_elems = num_elems_after_padding - _count;
221
43.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.83M
        for (int i = 0; i < padding_bytes; i++) {
223
1.79M
            _data.push_back(0);
224
1.79M
        }
225
226
        // reserve enough place for compression
227
43.3k
        _buffer.resize(
228
43.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
43.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
43.3k
        int64_t bytes =
232
43.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
43.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
43.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
43.3k
        encode_fixed32_le(&_buffer[0], _count);
244
43.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
43.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
43.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
43.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
43.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
43.3k
        return _buffer.build();
251
43.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
470
    OwnedSlice _finish(int final_size_of_type) {
216
470
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
470
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
470
        int padding_elems = num_elems_after_padding - _count;
221
470
        int padding_bytes = padding_elems * final_size_of_type;
222
7.99k
        for (int i = 0; i < padding_bytes; i++) {
223
7.52k
            _data.push_back(0);
224
7.52k
        }
225
226
        // reserve enough place for compression
227
470
        _buffer.resize(
228
470
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
470
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
470
        int64_t bytes =
232
470
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
470
                                         num_elems_after_padding, final_size_of_type, 0);
234
470
        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
470
        encode_fixed32_le(&_buffer[0], _count);
244
470
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
470
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
470
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
470
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
470
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
470
        return _buffer.build();
251
470
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.10k
    OwnedSlice _finish(int final_size_of_type) {
216
7.10k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.10k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.10k
        int padding_elems = num_elems_after_padding - _count;
221
7.10k
        int padding_bytes = padding_elems * final_size_of_type;
222
372k
        for (int i = 0; i < padding_bytes; i++) {
223
365k
            _data.push_back(0);
224
365k
        }
225
226
        // reserve enough place for compression
227
7.10k
        _buffer.resize(
228
7.10k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.10k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.10k
        int64_t bytes =
232
7.10k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.10k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.10k
        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.10k
        encode_fixed32_le(&_buffer[0], _count);
244
7.10k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.10k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.10k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.10k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.10k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.10k
        return _buffer.build();
251
7.10k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
107
    OwnedSlice _finish(int final_size_of_type) {
216
107
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
107
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
107
        int padding_elems = num_elems_after_padding - _count;
221
107
        int padding_bytes = padding_elems * final_size_of_type;
222
6.63k
        for (int i = 0; i < padding_bytes; i++) {
223
6.52k
            _data.push_back(0);
224
6.52k
        }
225
226
        // reserve enough place for compression
227
107
        _buffer.resize(
228
107
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
107
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
107
        int64_t bytes =
232
107
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
107
                                         num_elems_after_padding, final_size_of_type, 0);
234
107
        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
107
        encode_fixed32_le(&_buffer[0], _count);
244
107
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
107
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
107
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
107
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
107
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
107
        return _buffer.build();
251
107
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.73k
    OwnedSlice _finish(int final_size_of_type) {
216
9.73k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.73k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.73k
        int padding_elems = num_elems_after_padding - _count;
221
9.73k
        int padding_bytes = padding_elems * final_size_of_type;
222
118k
        for (int i = 0; i < padding_bytes; i++) {
223
108k
            _data.push_back(0);
224
108k
        }
225
226
        // reserve enough place for compression
227
9.73k
        _buffer.resize(
228
9.73k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.73k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.73k
        int64_t bytes =
232
9.73k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.73k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.73k
        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.73k
        encode_fixed32_le(&_buffer[0], _count);
244
9.73k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.73k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.73k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.73k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.73k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.73k
        return _buffer.build();
251
9.73k
    }
_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
498k
        for (int i = 0; i < padding_bytes; i++) {
223
479k
            _data.push_back(0);
224
479k
        }
225
226
        // reserve enough place for compression
227
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.4k
    OwnedSlice _finish(int final_size_of_type) {
216
16.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.4k
        int padding_elems = num_elems_after_padding - _count;
221
16.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.13M
        for (int i = 0; i < padding_bytes; i++) {
223
1.11M
            _data.push_back(0);
224
1.11M
        }
225
226
        // reserve enough place for compression
227
16.4k
        _buffer.resize(
228
16.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.4k
        int64_t bytes =
232
16.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.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
16.4k
        encode_fixed32_le(&_buffer[0], _count);
244
16.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.4k
        return _buffer.build();
251
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
162k
        for (int i = 0; i < padding_bytes; i++) {
223
161k
            _data.push_back(0);
224
161k
        }
225
226
        // reserve enough place for compression
227
1.06k
        _buffer.resize(
228
1.06k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.06k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.06k
        int64_t bytes =
232
1.06k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.06k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.06k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
1.06k
        encode_fixed32_le(&_buffer[0], _count);
244
1.06k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.06k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.06k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.06k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.06k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.06k
        return _buffer.build();
251
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
711
    OwnedSlice _finish(int final_size_of_type) {
216
711
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
711
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
711
        int padding_elems = num_elems_after_padding - _count;
221
711
        int padding_bytes = padding_elems * final_size_of_type;
222
14.9k
        for (int i = 0; i < padding_bytes; i++) {
223
14.2k
            _data.push_back(0);
224
14.2k
        }
225
226
        // reserve enough place for compression
227
711
        _buffer.resize(
228
711
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
711
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
711
        int64_t bytes =
232
711
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
711
                                         num_elems_after_padding, final_size_of_type, 0);
234
711
        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
711
        encode_fixed32_le(&_buffer[0], _count);
244
711
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
711
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
711
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
711
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
711
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
711
        return _buffer.build();
251
711
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
626
    OwnedSlice _finish(int final_size_of_type) {
216
626
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
626
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
626
        int padding_elems = num_elems_after_padding - _count;
221
626
        int padding_bytes = padding_elems * final_size_of_type;
222
50.9k
        for (int i = 0; i < padding_bytes; i++) {
223
50.3k
            _data.push_back(0);
224
50.3k
        }
225
226
        // reserve enough place for compression
227
626
        _buffer.resize(
228
626
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
626
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
626
        int64_t bytes =
232
626
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
626
                                         num_elems_after_padding, final_size_of_type, 0);
234
626
        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
626
        encode_fixed32_le(&_buffer[0], _count);
244
626
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
626
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
626
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
626
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
626
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
626
        return _buffer.build();
251
626
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.48M
    CppType cell(int idx) const {
256
1.48M
        DCHECK_GE(idx, 0);
257
1.48M
        CppType ret;
258
1.48M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.48M
        return ret;
260
1.48M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
665k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
665k
        CppType ret;
258
665k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
665k
        return ret;
260
665k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
111k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
111k
        CppType ret;
258
111k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
111k
        return ret;
260
111k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
16.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
16.8k
        CppType ret;
258
16.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
16.8k
        return ret;
260
16.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
214k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
214k
        CppType ret;
258
214k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
214k
        return ret;
260
214k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
150k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
150k
        CppType ret;
258
150k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
150k
        return ret;
260
150k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
22.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
22.6k
        CppType ret;
258
22.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
22.6k
        return ret;
260
22.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
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_9FieldTypeE11EE4cellEi
Line
Count
Source
255
28.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
28.7k
        CppType ret;
258
28.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
28.7k
        return ret;
260
28.7k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
382
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
382
        CppType ret;
258
382
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
382
        return ret;
260
382
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
73.0k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
73.0k
        CppType ret;
258
73.0k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
73.0k
        return ret;
260
73.0k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
83.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
83.6k
        CppType ret;
258
83.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
83.6k
        return ret;
260
83.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
740
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
740
        CppType ret;
258
740
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
740
        return ret;
260
740
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
13.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.8k
        CppType ret;
258
13.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.8k
        return ret;
260
13.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
198
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
198
        CppType ret;
258
198
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
198
        return ret;
260
198
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.53k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.53k
        CppType ret;
258
9.53k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.53k
        return ret;
260
9.53k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
36.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
36.5k
        CppType ret;
258
36.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
36.5k
        return ret;
260
36.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.7k
        CppType ret;
258
31.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.7k
        return ret;
260
31.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.02k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.02k
        CppType ret;
258
2.02k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.02k
        return ret;
260
2.02k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.32k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.32k
        CppType ret;
258
1.32k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.32k
        return ret;
260
1.32k
    }
_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.78M
                                       int& size_of_element) {
277
2.78M
    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.78M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.78M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.78M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.78M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.78M
    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.78M
    switch (size_of_element) {
295
218k
    case 1:
296
257k
    case 2:
297
260k
    case 3:
298
1.75M
    case 4:
299
2.67M
    case 8:
300
2.68M
    case 12:
301
2.78M
    case 16:
302
2.79M
    case 32:
303
2.79M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.78M
    }
307
2.79M
    return Status::OK();
308
2.78M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.39M
            : _data(data),
315
1.39M
              _options(options),
316
1.39M
              _parsed(false),
317
1.39M
              _num_elements(0),
318
1.39M
              _num_element_after_padding(0),
319
1.39M
              _size_of_element(0),
320
1.39M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
652k
            : _data(data),
315
652k
              _options(options),
316
652k
              _parsed(false),
317
652k
              _num_elements(0),
318
652k
              _num_element_after_padding(0),
319
652k
              _size_of_element(0),
320
652k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
109k
            : _data(data),
315
109k
              _options(options),
316
109k
              _parsed(false),
317
109k
              _num_elements(0),
318
109k
              _num_element_after_padding(0),
319
109k
              _size_of_element(0),
320
109k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.6k
            : _data(data),
315
19.6k
              _options(options),
316
19.6k
              _parsed(false),
317
19.6k
              _num_elements(0),
318
19.6k
              _num_element_after_padding(0),
319
19.6k
              _size_of_element(0),
320
19.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
204k
            : _data(data),
315
204k
              _options(options),
316
204k
              _parsed(false),
317
204k
              _num_elements(0),
318
204k
              _num_element_after_padding(0),
319
204k
              _size_of_element(0),
320
204k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
98.5k
            : _data(data),
315
98.5k
              _options(options),
316
98.5k
              _parsed(false),
317
98.5k
              _num_elements(0),
318
98.5k
              _num_element_after_padding(0),
319
98.5k
              _size_of_element(0),
320
98.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
20.7k
            : _data(data),
315
20.7k
              _options(options),
316
20.7k
              _parsed(false),
317
20.7k
              _num_elements(0),
318
20.7k
              _num_element_after_padding(0),
319
20.7k
              _size_of_element(0),
320
20.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
20.2k
            : _data(data),
315
20.2k
              _options(options),
316
20.2k
              _parsed(false),
317
20.2k
              _num_elements(0),
318
20.2k
              _num_element_after_padding(0),
319
20.2k
              _size_of_element(0),
320
20.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
31.0k
            : _data(data),
315
31.0k
              _options(options),
316
31.0k
              _parsed(false),
317
31.0k
              _num_elements(0),
318
31.0k
              _num_element_after_padding(0),
319
31.0k
              _size_of_element(0),
320
31.0k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.64k
            : _data(data),
315
1.64k
              _options(options),
316
1.64k
              _parsed(false),
317
1.64k
              _num_elements(0),
318
1.64k
              _num_element_after_padding(0),
319
1.64k
              _size_of_element(0),
320
1.64k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
59.7k
            : _data(data),
315
59.7k
              _options(options),
316
59.7k
              _parsed(false),
317
59.7k
              _num_elements(0),
318
59.7k
              _num_element_after_padding(0),
319
59.7k
              _size_of_element(0),
320
59.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
68.3k
            : _data(data),
315
68.3k
              _options(options),
316
68.3k
              _parsed(false),
317
68.3k
              _num_elements(0),
318
68.3k
              _num_element_after_padding(0),
319
68.3k
              _size_of_element(0),
320
68.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.40k
            : _data(data),
315
2.40k
              _options(options),
316
2.40k
              _parsed(false),
317
2.40k
              _num_elements(0),
318
2.40k
              _num_element_after_padding(0),
319
2.40k
              _size_of_element(0),
320
2.40k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.8k
            : _data(data),
315
14.8k
              _options(options),
316
14.8k
              _parsed(false),
317
14.8k
              _num_elements(0),
318
14.8k
              _num_element_after_padding(0),
319
14.8k
              _size_of_element(0),
320
14.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.39k
            : _data(data),
315
1.39k
              _options(options),
316
1.39k
              _parsed(false),
317
1.39k
              _num_elements(0),
318
1.39k
              _num_element_after_padding(0),
319
1.39k
              _size_of_element(0),
320
1.39k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.2k
            : _data(data),
315
15.2k
              _options(options),
316
15.2k
              _parsed(false),
317
15.2k
              _num_elements(0),
318
15.2k
              _num_element_after_padding(0),
319
15.2k
              _size_of_element(0),
320
15.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
41.5k
            : _data(data),
315
41.5k
              _options(options),
316
41.5k
              _parsed(false),
317
41.5k
              _num_elements(0),
318
41.5k
              _num_element_after_padding(0),
319
41.5k
              _size_of_element(0),
320
41.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
31.3k
            : _data(data),
315
31.3k
              _options(options),
316
31.3k
              _parsed(false),
317
31.3k
              _num_elements(0),
318
31.3k
              _num_element_after_padding(0),
319
31.3k
              _size_of_element(0),
320
31.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.76k
            : _data(data),
315
1.76k
              _options(options),
316
1.76k
              _parsed(false),
317
1.76k
              _num_elements(0),
318
1.76k
              _num_element_after_padding(0),
319
1.76k
              _size_of_element(0),
320
1.76k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.20k
            : _data(data),
315
1.20k
              _options(options),
316
1.20k
              _parsed(false),
317
1.20k
              _num_elements(0),
318
1.20k
              _num_element_after_padding(0),
319
1.20k
              _size_of_element(0),
320
1.20k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.16k
            : _data(data),
315
1.16k
              _options(options),
316
1.16k
              _parsed(false),
317
1.16k
              _num_elements(0),
318
1.16k
              _num_element_after_padding(0),
319
1.16k
              _size_of_element(0),
320
1.16k
              _cur_index(0) {}
321
322
1.39M
    Status init() override {
323
1.39M
        CHECK(!_parsed);
324
1.39M
        size_t unused;
325
1.39M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.39M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.39M
        if (_data.size !=
329
1.39M
            _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.39M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.39M
                     _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.39M
        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.39M
        _parsed = true;
349
1.39M
        return Status::OK();
350
1.39M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
652k
    Status init() override {
323
652k
        CHECK(!_parsed);
324
652k
        size_t unused;
325
652k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
652k
                                                 _num_element_after_padding, _size_of_element));
327
328
652k
        if (_data.size !=
329
652k
            _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
652k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
652k
                     _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
652k
        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
652k
        _parsed = true;
349
652k
        return Status::OK();
350
652k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
109k
    Status init() override {
323
109k
        CHECK(!_parsed);
324
109k
        size_t unused;
325
109k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
109k
                                                 _num_element_after_padding, _size_of_element));
327
328
109k
        if (_data.size !=
329
109k
            _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
109k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
109k
                     _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
109k
        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
109k
        _parsed = true;
349
109k
        return Status::OK();
350
109k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
19.6k
    Status init() override {
323
19.6k
        CHECK(!_parsed);
324
19.6k
        size_t unused;
325
19.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.6k
        if (_data.size !=
329
19.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
19.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.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
19.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
19.6k
        _parsed = true;
349
19.6k
        return Status::OK();
350
19.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
204k
    Status init() override {
323
204k
        CHECK(!_parsed);
324
204k
        size_t unused;
325
204k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
204k
                                                 _num_element_after_padding, _size_of_element));
327
328
204k
        if (_data.size !=
329
204k
            _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
204k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
204k
                     _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
204k
        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
204k
        _parsed = true;
349
204k
        return Status::OK();
350
204k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
98.4k
    Status init() override {
323
98.4k
        CHECK(!_parsed);
324
98.4k
        size_t unused;
325
98.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
98.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
98.4k
        if (_data.size !=
329
98.4k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
98.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
98.4k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
98.4k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
98.4k
        _parsed = true;
349
98.4k
        return Status::OK();
350
98.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
20.7k
    Status init() override {
323
20.7k
        CHECK(!_parsed);
324
20.7k
        size_t unused;
325
20.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
20.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
20.7k
        if (_data.size !=
329
20.7k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
20.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
20.7k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
20.7k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
20.7k
        _parsed = true;
349
20.7k
        return Status::OK();
350
20.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
20.1k
    Status init() override {
323
20.1k
        CHECK(!_parsed);
324
20.1k
        size_t unused;
325
20.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
20.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
20.1k
        if (_data.size !=
329
20.1k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
20.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
20.1k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
20.1k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
20.1k
        _parsed = true;
349
20.1k
        return Status::OK();
350
20.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
30.9k
    Status init() override {
323
30.9k
        CHECK(!_parsed);
324
30.9k
        size_t unused;
325
30.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.9k
        if (_data.size !=
329
30.9k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
30.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.9k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
30.9k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
30.9k
        _parsed = true;
349
30.9k
        return Status::OK();
350
30.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
1.64k
    Status init() override {
323
1.64k
        CHECK(!_parsed);
324
1.64k
        size_t unused;
325
1.64k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.64k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.64k
        if (_data.size !=
329
1.64k
            _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.64k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.64k
                     _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.64k
        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.64k
        _parsed = true;
349
1.64k
        return Status::OK();
350
1.64k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
59.6k
    Status init() override {
323
59.6k
        CHECK(!_parsed);
324
59.6k
        size_t unused;
325
59.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
59.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
59.6k
        if (_data.size !=
329
59.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
59.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
59.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
59.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
59.6k
        _parsed = true;
349
59.6k
        return Status::OK();
350
59.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
68.3k
    Status init() override {
323
68.3k
        CHECK(!_parsed);
324
68.3k
        size_t unused;
325
68.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
68.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
68.3k
        if (_data.size !=
329
68.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
68.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
68.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
68.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
68.3k
        _parsed = true;
349
68.3k
        return Status::OK();
350
68.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.40k
    Status init() override {
323
2.40k
        CHECK(!_parsed);
324
2.40k
        size_t unused;
325
2.40k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.40k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.40k
        if (_data.size !=
329
2.40k
            _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.40k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.40k
                     _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.40k
        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.40k
        _parsed = true;
349
2.40k
        return Status::OK();
350
2.40k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
14.8k
    Status init() override {
323
14.8k
        CHECK(!_parsed);
324
14.8k
        size_t unused;
325
14.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.8k
        if (_data.size !=
329
14.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
14.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
14.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
14.8k
        _parsed = true;
349
14.8k
        return Status::OK();
350
14.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.38k
    Status init() override {
323
1.38k
        CHECK(!_parsed);
324
1.38k
        size_t unused;
325
1.38k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.38k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.38k
        if (_data.size !=
329
1.38k
            _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.38k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.38k
                     _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.38k
        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.38k
        _parsed = true;
349
1.38k
        return Status::OK();
350
1.38k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.2k
    Status init() override {
323
15.2k
        CHECK(!_parsed);
324
15.2k
        size_t unused;
325
15.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.2k
        if (_data.size !=
329
15.2k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
15.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.2k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
15.2k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
15.2k
        _parsed = true;
349
15.2k
        return Status::OK();
350
15.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
41.5k
    Status init() override {
323
41.5k
        CHECK(!_parsed);
324
41.5k
        size_t unused;
325
41.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
41.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
41.5k
        if (_data.size !=
329
41.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
41.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
41.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
41.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
41.5k
        _parsed = true;
349
41.5k
        return Status::OK();
350
41.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
31.3k
    Status init() override {
323
31.3k
        CHECK(!_parsed);
324
31.3k
        size_t unused;
325
31.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
31.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
31.3k
        if (_data.size !=
329
31.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
31.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
31.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
31.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
31.3k
        _parsed = true;
349
31.3k
        return Status::OK();
350
31.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.75k
    Status init() override {
323
1.75k
        CHECK(!_parsed);
324
1.75k
        size_t unused;
325
1.75k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.75k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.75k
        if (_data.size !=
329
1.75k
            _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.75k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.75k
                     _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.75k
        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.75k
        _parsed = true;
349
1.75k
        return Status::OK();
350
1.75k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.20k
    Status init() override {
323
1.20k
        CHECK(!_parsed);
324
1.20k
        size_t unused;
325
1.20k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.20k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.20k
        if (_data.size !=
329
1.20k
            _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.20k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.20k
                     _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.20k
        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.20k
        _parsed = true;
349
1.20k
        return Status::OK();
350
1.20k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.16k
    Status init() override {
323
1.16k
        CHECK(!_parsed);
324
1.16k
        size_t unused;
325
1.16k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.16k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.16k
        if (_data.size !=
329
1.16k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.16k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.16k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.16k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.16k
        _parsed = true;
349
1.16k
        return Status::OK();
350
1.16k
    }
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.42M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.42M
        if (_num_elements == 0) [[unlikely]] {
361
10.2k
            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.2k
        }
366
367
1.42M
        DCHECK_LE(pos, _num_elements);
368
1.42M
        _cur_index = pos;
369
1.42M
        return Status::OK();
370
1.42M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
635k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
635k
        if (_num_elements == 0) [[unlikely]] {
361
4.54k
            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.54k
        }
366
367
635k
        DCHECK_LE(pos, _num_elements);
368
635k
        _cur_index = pos;
369
635k
        return Status::OK();
370
635k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
89.1k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
89.1k
        if (_num_elements == 0) [[unlikely]] {
361
443
            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
443
        }
366
367
89.1k
        DCHECK_LE(pos, _num_elements);
368
89.1k
        _cur_index = pos;
369
89.1k
        return Status::OK();
370
89.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
21.2k
    Status seek_to_position_in_page(size_t pos) override {
359
21.2k
        DCHECK(_parsed) << "Must call init()";
360
21.2k
        if (_num_elements == 0) [[unlikely]] {
361
1.35k
            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.35k
        }
366
367
21.2k
        DCHECK_LE(pos, _num_elements);
368
21.2k
        _cur_index = pos;
369
21.2k
        return Status::OK();
370
21.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
176k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
176k
        if (_num_elements == 0) [[unlikely]] {
361
684
            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
684
        }
366
367
176k
        DCHECK_LE(pos, _num_elements);
368
176k
        _cur_index = pos;
369
176k
        return Status::OK();
370
176k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
10.6k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
10.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
10.6k
        DCHECK_LE(pos, _num_elements);
368
10.6k
        _cur_index = pos;
369
10.6k
        return Status::OK();
370
10.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
13.0k
    Status seek_to_position_in_page(size_t pos) override {
359
13.0k
        DCHECK(_parsed) << "Must call init()";
360
13.0k
        if (_num_elements == 0) [[unlikely]] {
361
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
13.0k
        DCHECK_LE(pos, _num_elements);
368
13.0k
        _cur_index = pos;
369
13.0k
        return Status::OK();
370
13.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
18.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.5k
        DCHECK(_parsed) << "Must call init()";
360
18.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
18.5k
        DCHECK_LE(pos, _num_elements);
368
18.5k
        _cur_index = pos;
369
18.5k
        return Status::OK();
370
18.5k
    }
_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
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
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
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
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
323k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
323k
        if (_num_elements == 0) [[unlikely]] {
361
487
            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
487
        }
366
367
323k
        DCHECK_LE(pos, _num_elements);
368
323k
        _cur_index = pos;
369
323k
        return Status::OK();
370
323k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
56.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
56.5k
        if (_num_elements == 0) [[unlikely]] {
361
17
            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
17
        }
366
367
56.5k
        DCHECK_LE(pos, _num_elements);
368
56.5k
        _cur_index = pos;
369
56.5k
        return Status::OK();
370
56.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
8.37k
    Status seek_to_position_in_page(size_t pos) override {
359
8.37k
        DCHECK(_parsed) << "Must call init()";
360
8.37k
        if (_num_elements == 0) [[unlikely]] {
361
8
            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
8
        }
366
367
8.37k
        DCHECK_LE(pos, _num_elements);
368
8.37k
        _cur_index = pos;
369
8.37k
        return Status::OK();
370
8.37k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.68k
    Status seek_to_position_in_page(size_t pos) override {
359
6.68k
        DCHECK(_parsed) << "Must call init()";
360
6.68k
        if (_num_elements == 0) [[unlikely]] {
361
361
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
361
        }
366
367
6.68k
        DCHECK_LE(pos, _num_elements);
368
6.68k
        _cur_index = pos;
369
6.68k
        return Status::OK();
370
6.68k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
106
    Status seek_to_position_in_page(size_t pos) override {
359
106
        DCHECK(_parsed) << "Must call init()";
360
106
        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
106
        DCHECK_LE(pos, _num_elements);
368
106
        _cur_index = pos;
369
106
        return Status::OK();
370
106
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
767
    Status seek_to_position_in_page(size_t pos) override {
359
767
        DCHECK(_parsed) << "Must call init()";
360
767
        if (_num_elements == 0) [[unlikely]] {
361
29
            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
29
        }
366
367
767
        DCHECK_LE(pos, _num_elements);
368
767
        _cur_index = pos;
369
767
        return Status::OK();
370
767
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.1k
    Status seek_to_position_in_page(size_t pos) override {
359
17.1k
        DCHECK(_parsed) << "Must call init()";
360
17.1k
        if (_num_elements == 0) [[unlikely]] {
361
1.70k
            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.70k
        }
366
367
17.1k
        DCHECK_LE(pos, _num_elements);
368
17.1k
        _cur_index = pos;
369
17.1k
        return Status::OK();
370
17.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
15.7k
    Status seek_to_position_in_page(size_t pos) override {
359
15.7k
        DCHECK(_parsed) << "Must call init()";
360
15.7k
        if (_num_elements == 0) [[unlikely]] {
361
549
            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
549
        }
366
367
15.7k
        DCHECK_LE(pos, _num_elements);
368
15.7k
        _cur_index = pos;
369
15.7k
        return Status::OK();
370
15.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.97k
    Status seek_to_position_in_page(size_t pos) override {
359
1.97k
        DCHECK(_parsed) << "Must call init()";
360
1.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
1.97k
        DCHECK_LE(pos, _num_elements);
368
1.97k
        _cur_index = pos;
369
1.97k
        return Status::OK();
370
1.97k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
73
    Status seek_to_position_in_page(size_t pos) override {
359
73
        DCHECK(_parsed) << "Must call init()";
360
73
        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
73
        DCHECK_LE(pos, _num_elements);
368
73
        _cur_index = pos;
369
73
        return Status::OK();
370
73
    }
_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.61M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.61M
        DCHECK(_parsed);
413
2.61M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.61M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.61M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.61M
        *n = max_fetch;
422
2.61M
        if constexpr (forward_index) {
423
2.04M
            _cur_index += max_fetch;
424
2.04M
        }
425
426
2.61M
        return Status::OK();
427
2.61M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
529k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
529k
        DCHECK(_parsed);
413
530k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
529k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
529k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
529k
        *n = max_fetch;
422
529k
        if constexpr (forward_index) {
423
529k
            _cur_index += max_fetch;
424
529k
        }
425
426
529k
        return Status::OK();
427
529k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
382k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
382k
        DCHECK(_parsed);
413
383k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
382k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
382k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
382k
        *n = max_fetch;
422
382k
        if constexpr (forward_index) {
423
382k
            _cur_index += max_fetch;
424
382k
        }
425
426
382k
        return Status::OK();
427
382k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
16.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
16.7k
        DCHECK(_parsed);
413
16.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
16.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
16.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
16.7k
        *n = max_fetch;
422
16.7k
        if constexpr (forward_index) {
423
16.7k
            _cur_index += max_fetch;
424
16.7k
        }
425
426
16.7k
        return Status::OK();
427
16.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
109k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
109k
        DCHECK(_parsed);
413
109k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
109k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
109k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
109k
        *n = max_fetch;
422
109k
        if constexpr (forward_index) {
423
109k
            _cur_index += max_fetch;
424
109k
        }
425
426
109k
        return Status::OK();
427
109k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
341k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
341k
        DCHECK(_parsed);
413
341k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
341k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
341k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
341k
        *n = max_fetch;
422
341k
        if constexpr (forward_index) {
423
341k
            _cur_index += max_fetch;
424
341k
        }
425
426
341k
        return Status::OK();
427
341k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
570k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
570k
        DCHECK(_parsed);
413
570k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
570k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
570k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
570k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
570k
        return Status::OK();
427
570k
    }
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
25.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
25.6k
        DCHECK(_parsed);
413
25.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
25.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
25.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
25.6k
        *n = max_fetch;
422
25.6k
        if constexpr (forward_index) {
423
25.6k
            _cur_index += max_fetch;
424
25.6k
        }
425
426
25.6k
        return Status::OK();
427
25.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
14.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.8k
        DCHECK(_parsed);
413
14.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.8k
        *n = max_fetch;
422
14.8k
        if constexpr (forward_index) {
423
14.8k
            _cur_index += max_fetch;
424
14.8k
        }
425
426
14.8k
        return Status::OK();
427
14.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
30.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
30.3k
        DCHECK(_parsed);
413
30.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
30.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
30.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
30.3k
        *n = max_fetch;
422
30.3k
        if constexpr (forward_index) {
423
30.3k
            _cur_index += max_fetch;
424
30.3k
        }
425
426
30.3k
        return Status::OK();
427
30.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.84k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.84k
        DCHECK(_parsed);
413
3.84k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.84k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.84k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.84k
        *n = max_fetch;
422
3.84k
        if constexpr (forward_index) {
423
3.84k
            _cur_index += max_fetch;
424
3.84k
        }
425
426
3.84k
        return Status::OK();
427
3.84k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
415k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
415k
        DCHECK(_parsed);
413
415k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
415k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
415k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
415k
        *n = max_fetch;
422
415k
        if constexpr (forward_index) {
423
415k
            _cur_index += max_fetch;
424
415k
        }
425
426
415k
        return Status::OK();
427
415k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
77.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
77.5k
        DCHECK(_parsed);
413
77.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
77.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
77.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
77.5k
        *n = max_fetch;
422
77.5k
        if constexpr (forward_index) {
423
77.5k
            _cur_index += max_fetch;
424
77.5k
        }
425
426
77.5k
        return Status::OK();
427
77.5k
    }
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.09k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.09k
        DCHECK(_parsed);
413
1.09k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.09k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.09k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.09k
        *n = max_fetch;
422
1.09k
        if constexpr (forward_index) {
423
1.09k
            _cur_index += max_fetch;
424
1.09k
        }
425
426
1.09k
        return Status::OK();
427
1.09k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
6.97k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.97k
        DCHECK(_parsed);
413
6.97k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.97k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.97k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.97k
        *n = max_fetch;
422
6.97k
        if constexpr (forward_index) {
423
6.97k
            _cur_index += max_fetch;
424
6.97k
        }
425
426
6.97k
        return Status::OK();
427
6.97k
    }
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.29k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.29k
        DCHECK(_parsed);
413
1.29k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.29k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.29k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.29k
        *n = max_fetch;
422
1.29k
        if constexpr (forward_index) {
423
1.29k
            _cur_index += max_fetch;
424
1.29k
        }
425
426
1.29k
        return Status::OK();
427
1.29k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
8.63k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.63k
        DCHECK(_parsed);
413
8.63k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.63k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.63k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.63k
        *n = max_fetch;
422
8.63k
        if constexpr (forward_index) {
423
8.63k
            _cur_index += max_fetch;
424
8.63k
        }
425
426
8.63k
        return Status::OK();
427
8.63k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
42.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
42.0k
        DCHECK(_parsed);
413
42.0k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
42.0k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
42.0k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
42.0k
        *n = max_fetch;
422
42.0k
        if constexpr (forward_index) {
423
42.0k
            _cur_index += max_fetch;
424
42.0k
        }
425
426
42.0k
        return Status::OK();
427
42.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
23.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
23.9k
        DCHECK(_parsed);
413
23.9k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
23.9k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
23.9k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
23.9k
        *n = max_fetch;
422
23.9k
        if constexpr (forward_index) {
423
23.9k
            _cur_index += max_fetch;
424
23.9k
        }
425
426
23.9k
        return Status::OK();
427
23.9k
    }
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.19k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.19k
        DCHECK(_parsed);
413
3.19k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.19k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.19k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.19k
        *n = max_fetch;
422
3.19k
        if constexpr (forward_index) {
423
3.19k
            _cur_index += max_fetch;
424
3.19k
        }
425
426
3.19k
        return Status::OK();
427
3.19k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.25k
        DCHECK(_parsed);
413
3.25k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.25k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.25k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.25k
        *n = max_fetch;
422
3.25k
        if constexpr (forward_index) {
423
3.25k
            _cur_index += max_fetch;
424
3.25k
        }
425
426
3.25k
        return Status::OK();
427
3.25k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.25k
        DCHECK(_parsed);
413
3.25k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.25k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.25k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.25k
        *n = max_fetch;
422
3.25k
        if constexpr (forward_index) {
423
3.25k
            _cur_index += max_fetch;
424
3.25k
        }
425
426
3.25k
        return Status::OK();
427
3.25k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
2.04M
    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
382k
    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
16.8k
    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
109k
    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
341k
    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
25.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
14.8k
    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
30.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.84k
    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
415k
    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
77.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.09k
    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
6.97k
    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.29k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
8.63k
    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
42.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
23.9k
    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.19k
    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
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.26k
    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
411k
                          MutableColumnPtr& dst) override {
433
411k
        DCHECK(_parsed);
434
411k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
411k
        auto total = *n;
440
411k
        auto read_count = 0;
441
411k
        _buffer.resize(total);
442
128M
        for (size_t i = 0; i < total; ++i) {
443
128M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
128M
            if (UNLIKELY(ord >= _num_elements)) {
445
9.31k
                break;
446
9.31k
            }
447
448
128M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
128M
        }
450
451
411k
        if (LIKELY(read_count > 0)) {
452
411k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
411k
        }
454
455
411k
        *n = read_count;
456
411k
        return Status::OK();
457
411k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
89.2k
                          MutableColumnPtr& dst) override {
433
89.2k
        DCHECK(_parsed);
434
89.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
89.2k
        auto total = *n;
440
89.2k
        auto read_count = 0;
441
89.2k
        _buffer.resize(total);
442
36.4M
        for (size_t i = 0; i < total; ++i) {
443
36.3M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
36.3M
            if (UNLIKELY(ord >= _num_elements)) {
445
907
                break;
446
907
            }
447
448
36.3M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
36.3M
        }
450
451
89.2k
        if (LIKELY(read_count > 0)) {
452
89.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
89.2k
        }
454
455
89.2k
        *n = read_count;
456
89.2k
        return Status::OK();
457
89.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
35.4k
                          MutableColumnPtr& dst) override {
433
35.4k
        DCHECK(_parsed);
434
35.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
35.4k
        auto total = *n;
440
35.4k
        auto read_count = 0;
441
35.4k
        _buffer.resize(total);
442
3.52M
        for (size_t i = 0; i < total; ++i) {
443
3.48M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
3.48M
            if (UNLIKELY(ord >= _num_elements)) {
445
11
                break;
446
11
            }
447
448
3.48M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
3.48M
        }
450
451
35.4k
        if (LIKELY(read_count > 0)) {
452
35.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
35.4k
        }
454
455
35.4k
        *n = read_count;
456
35.4k
        return Status::OK();
457
35.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
9.38k
                          MutableColumnPtr& dst) override {
433
9.38k
        DCHECK(_parsed);
434
9.38k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
9.38k
        auto total = *n;
440
9.38k
        auto read_count = 0;
441
9.38k
        _buffer.resize(total);
442
717k
        for (size_t i = 0; i < total; ++i) {
443
708k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
708k
            if (UNLIKELY(ord >= _num_elements)) {
445
12
                break;
446
12
            }
447
448
708k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
708k
        }
450
451
9.38k
        if (LIKELY(read_count > 0)) {
452
9.38k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
9.38k
        }
454
455
9.38k
        *n = read_count;
456
9.38k
        return Status::OK();
457
9.38k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
75.6k
                          MutableColumnPtr& dst) override {
433
75.6k
        DCHECK(_parsed);
434
75.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
75.6k
        auto total = *n;
440
75.6k
        auto read_count = 0;
441
75.6k
        _buffer.resize(total);
442
33.8M
        for (size_t i = 0; i < total; ++i) {
443
33.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
33.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.44k
                break;
446
1.44k
            }
447
448
33.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
33.7M
        }
450
451
75.6k
        if (LIKELY(read_count > 0)) {
452
75.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
75.6k
        }
454
455
75.6k
        *n = read_count;
456
75.6k
        return Status::OK();
457
75.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
39.6k
                          MutableColumnPtr& dst) override {
433
39.6k
        DCHECK(_parsed);
434
39.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
39.6k
        auto total = *n;
440
39.6k
        auto read_count = 0;
441
39.6k
        _buffer.resize(total);
442
956k
        for (size_t i = 0; i < total; ++i) {
443
916k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
916k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
916k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
916k
        }
450
451
39.6k
        if (LIKELY(read_count > 0)) {
452
39.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
39.6k
        }
454
455
39.6k
        *n = read_count;
456
39.6k
        return Status::OK();
457
39.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
9.95k
                          MutableColumnPtr& dst) override {
433
9.95k
        DCHECK(_parsed);
434
9.95k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
9.95k
        auto total = *n;
440
9.95k
        auto read_count = 0;
441
9.95k
        _buffer.resize(total);
442
1.90M
        for (size_t i = 0; i < total; ++i) {
443
1.89M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.89M
            if (UNLIKELY(ord >= _num_elements)) {
445
228
                break;
446
228
            }
447
448
1.89M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.89M
        }
450
451
9.95k
        if (LIKELY(read_count > 0)) {
452
9.95k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
9.95k
        }
454
455
9.95k
        *n = read_count;
456
9.95k
        return Status::OK();
457
9.95k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.7k
                          MutableColumnPtr& dst) override {
433
10.7k
        DCHECK(_parsed);
434
10.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.7k
        auto total = *n;
440
10.7k
        auto read_count = 0;
441
10.7k
        _buffer.resize(total);
442
1.18M
        for (size_t i = 0; i < total; ++i) {
443
1.17M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.17M
            if (UNLIKELY(ord >= _num_elements)) {
445
27
                break;
446
27
            }
447
448
1.17M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.17M
        }
450
451
10.7k
        if (LIKELY(read_count > 0)) {
452
10.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.7k
        }
454
455
10.7k
        *n = read_count;
456
10.7k
        return Status::OK();
457
10.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
14.7k
                          MutableColumnPtr& dst) override {
433
14.7k
        DCHECK(_parsed);
434
14.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
14.7k
        auto total = *n;
440
14.7k
        auto read_count = 0;
441
14.7k
        _buffer.resize(total);
442
1.71M
        for (size_t i = 0; i < total; ++i) {
443
1.69M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.69M
            if (UNLIKELY(ord >= _num_elements)) {
445
535
                break;
446
535
            }
447
448
1.69M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.69M
        }
450
451
14.7k
        if (LIKELY(read_count > 0)) {
452
14.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
14.7k
        }
454
455
14.7k
        *n = read_count;
456
14.7k
        return Status::OK();
457
14.7k
    }
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.15k
                          MutableColumnPtr& dst) override {
433
2.15k
        DCHECK(_parsed);
434
2.15k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.15k
        auto total = *n;
440
2.15k
        auto read_count = 0;
441
2.15k
        _buffer.resize(total);
442
557k
        for (size_t i = 0; i < total; ++i) {
443
554k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
554k
            if (UNLIKELY(ord >= _num_elements)) {
445
14
                break;
446
14
            }
447
448
554k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
554k
        }
450
451
2.15k
        if (LIKELY(read_count > 0)) {
452
2.15k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.15k
        }
454
455
2.15k
        *n = read_count;
456
2.15k
        return Status::OK();
457
2.15k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.2k
                          MutableColumnPtr& dst) override {
433
30.2k
        DCHECK(_parsed);
434
30.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.2k
        auto total = *n;
440
30.2k
        auto read_count = 0;
441
30.2k
        _buffer.resize(total);
442
7.19M
        for (size_t i = 0; i < total; ++i) {
443
7.16M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.16M
            if (UNLIKELY(ord >= _num_elements)) {
445
786
                break;
446
786
            }
447
448
7.16M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.16M
        }
450
451
30.2k
        if (LIKELY(read_count > 0)) {
452
30.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.2k
        }
454
455
30.2k
        *n = read_count;
456
30.2k
        return Status::OK();
457
30.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
31.9k
                          MutableColumnPtr& dst) override {
433
31.9k
        DCHECK(_parsed);
434
31.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.9k
        auto total = *n;
440
31.9k
        auto read_count = 0;
441
31.9k
        _buffer.resize(total);
442
7.44M
        for (size_t i = 0; i < total; ++i) {
443
7.41M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.41M
            if (UNLIKELY(ord >= _num_elements)) {
445
81
                break;
446
81
            }
447
448
7.41M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.41M
        }
450
451
31.9k
        if (LIKELY(read_count > 0)) {
452
31.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.9k
        }
454
455
31.9k
        *n = read_count;
456
31.9k
        return Status::OK();
457
31.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.41k
                          MutableColumnPtr& dst) override {
433
2.41k
        DCHECK(_parsed);
434
2.41k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.41k
        auto total = *n;
440
2.41k
        auto read_count = 0;
441
2.41k
        _buffer.resize(total);
442
545k
        for (size_t i = 0; i < total; ++i) {
443
542k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
542k
            if (UNLIKELY(ord >= _num_elements)) {
445
73
                break;
446
73
            }
447
448
542k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
542k
        }
450
451
2.41k
        if (LIKELY(read_count > 0)) {
452
2.41k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.41k
        }
454
455
2.41k
        *n = read_count;
456
2.41k
        return Status::OK();
457
2.41k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.7k
                          MutableColumnPtr& dst) override {
433
11.7k
        DCHECK(_parsed);
434
11.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.7k
        auto total = *n;
440
11.7k
        auto read_count = 0;
441
11.7k
        _buffer.resize(total);
442
25.0k
        for (size_t i = 0; i < total; ++i) {
443
13.2k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.2k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.2k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.2k
        }
450
451
11.7k
        if (LIKELY(read_count > 0)) {
452
11.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.7k
        }
454
455
11.7k
        *n = read_count;
456
11.7k
        return Status::OK();
457
11.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
156
                          MutableColumnPtr& dst) override {
433
156
        DCHECK(_parsed);
434
156
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
156
        auto total = *n;
440
156
        auto read_count = 0;
441
156
        _buffer.resize(total);
442
320
        for (size_t i = 0; i < total; ++i) {
443
164
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
164
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
164
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
164
        }
450
451
156
        if (LIKELY(read_count > 0)) {
452
156
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
156
        }
454
455
156
        *n = read_count;
456
156
        return Status::OK();
457
156
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.59k
                          MutableColumnPtr& dst) override {
433
4.59k
        DCHECK(_parsed);
434
4.59k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.59k
        auto total = *n;
440
4.59k
        auto read_count = 0;
441
4.59k
        _buffer.resize(total);
442
18.9k
        for (size_t i = 0; i < total; ++i) {
443
14.3k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.3k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.3k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.3k
        }
450
451
4.59k
        if (LIKELY(read_count > 0)) {
452
4.59k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.59k
        }
454
455
4.59k
        *n = read_count;
456
4.59k
        return Status::OK();
457
4.59k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
25.8k
                          MutableColumnPtr& dst) override {
433
25.8k
        DCHECK(_parsed);
434
25.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
25.8k
        auto total = *n;
440
25.8k
        auto read_count = 0;
441
25.8k
        _buffer.resize(total);
442
22.0M
        for (size_t i = 0; i < total; ++i) {
443
22.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
22.0M
            if (UNLIKELY(ord >= _num_elements)) {
445
4.79k
                break;
446
4.79k
            }
447
448
22.0M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
22.0M
        }
450
451
25.8k
        if (LIKELY(read_count > 0)) {
452
25.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
25.8k
        }
454
455
25.8k
        *n = read_count;
456
25.8k
        return Status::OK();
457
25.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
16.0k
                          MutableColumnPtr& dst) override {
433
16.0k
        DCHECK(_parsed);
434
16.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
16.0k
        auto total = *n;
440
16.0k
        auto read_count = 0;
441
16.0k
        _buffer.resize(total);
442
10.6M
        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
398
                break;
446
398
            }
447
448
10.6M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.6M
        }
450
451
16.0k
        if (LIKELY(read_count > 0)) {
452
16.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
16.0k
        }
454
455
16.0k
        *n = read_count;
456
16.0k
        return Status::OK();
457
16.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
965
                          MutableColumnPtr& dst) override {
433
965
        DCHECK(_parsed);
434
965
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
965
        auto total = *n;
440
965
        auto read_count = 0;
441
965
        _buffer.resize(total);
442
2.78k
        for (size_t i = 0; i < total; ++i) {
443
1.81k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.81k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.81k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.81k
        }
450
451
966
        if (LIKELY(read_count > 0)) {
452
966
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
966
        }
454
455
965
        *n = read_count;
456
965
        return Status::OK();
457
965
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
479
                          MutableColumnPtr& dst) override {
433
479
        DCHECK(_parsed);
434
479
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
479
        auto total = *n;
440
479
        auto read_count = 0;
441
479
        _buffer.resize(total);
442
1.20k
        for (size_t i = 0; i < total; ++i) {
443
723
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
723
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
723
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
723
        }
450
451
479
        if (LIKELY(read_count > 0)) {
452
479
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
479
        }
454
455
479
        *n = read_count;
456
479
        return Status::OK();
457
479
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
412
                          MutableColumnPtr& dst) override {
433
412
        DCHECK(_parsed);
434
412
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
412
        auto total = *n;
440
412
        auto read_count = 0;
441
412
        _buffer.resize(total);
442
1.33k
        for (size_t i = 0; i < total; ++i) {
443
927
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
927
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
927
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
927
        }
450
451
412
        if (LIKELY(read_count > 0)) {
452
412
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
412
        }
454
455
412
        *n = read_count;
456
412
        return Status::OK();
457
412
    }
458
459
570k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
570k
        return next_batch<false>(n, dst);
461
570k
    }
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
570k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
570k
        return next_batch<false>(n, dst);
461
570k
    }
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
499k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
215k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
17.5k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
16.2k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
135k
    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
5.88k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
16.3k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
10.9k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
7.57k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
22.1k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
28.3k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
6.55k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
1.01k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
15
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.43k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
2.54k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
9.52k
    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
56
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
104
    size_t current_index() const override { return _cur_index; }
466
467
131M
    char* get_data(size_t index) const {
468
131M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
131M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
37.5M
    char* get_data(size_t index) const {
468
37.5M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
37.5M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
3.86M
    char* get_data(size_t index) const {
468
3.86M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.86M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
725k
    char* get_data(size_t index) const {
468
725k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
725k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
33.9M
    char* get_data(size_t index) const {
468
33.9M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
33.9M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
1.82M
    char* get_data(size_t index) const {
468
1.82M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.82M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
1.92M
    char* get_data(size_t index) const {
468
1.92M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.92M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.18M
    char* get_data(size_t index) const {
468
1.18M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.18M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
1.72M
    char* get_data(size_t index) const {
468
1.72M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.72M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
558k
    char* get_data(size_t index) const {
468
558k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
558k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
7.58M
    char* get_data(size_t index) const {
468
7.58M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.58M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
7.49M
    char* get_data(size_t index) const {
468
7.49M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.49M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
543k
    char* get_data(size_t index) const {
468
543k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
543k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
20.2k
    char* get_data(size_t index) const {
468
20.2k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
20.2k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.45k
    char* get_data(size_t index) const {
468
1.45k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.45k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
23.0k
    char* get_data(size_t index) const {
468
23.0k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
23.0k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
22.0M
    char* get_data(size_t index) const {
468
22.0M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.0M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
10.6M
    char* get_data(size_t index) const {
468
10.6M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.6M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
5.01k
    char* get_data(size_t index) const {
468
5.01k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5.01k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
3.97k
    char* get_data(size_t index) const {
468
3.97k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.97k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
4.18k
    char* get_data(size_t index) const {
468
4.18k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.18k
    }
470
471
private:
472
    void _copy_next_values(size_t n, void* data) {
473
        memcpy(data, get_data(_cur_index), n * SIZE_OF_TYPE);
474
    }
475
476
    using CppType = typename TypeTraits<Type>::CppType;
477
478
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
479
480
    Slice _data;
481
    PageDecoderOptions _options;
482
    bool _parsed;
483
    size_t _num_elements;
484
    size_t _num_element_after_padding;
485
486
    int _size_of_element;
487
    size_t _cur_index;
488
489
    std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer;
490
491
    friend class BinaryDictPageDecoder;
492
};
493
494
#include "common/compile_check_end.h"
495
} // namespace segment_v2
496
} // namespace doris