Coverage Report

Created: 2026-03-24 18:55

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
820k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
364k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
60.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
11.0k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
146k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
69.1k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
13.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
11.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
14.2k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
185
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
36.3k
    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
284
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
6.97k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
202
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.57k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.1k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
15.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.16k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
796
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
706
    Status init() override { return reset(); }
97
98
146M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
145M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
60.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
12.9k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
531k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
69.1k
    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
20.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
11.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
16.2k
    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
192
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
79.0k
    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
337
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.88k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
102
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.15k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
35.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
19.3k
    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.12k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.70M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.70M
        return add_internal<false>(vals, count);
102
1.70M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
748k
    Status add(const uint8_t* vals, size_t* count) override {
101
748k
        return add_internal<false>(vals, count);
102
748k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
60.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
60.8k
        return add_internal<false>(vals, count);
102
60.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
12.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
12.9k
        return add_internal<false>(vals, count);
102
12.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
531k
    Status add(const uint8_t* vals, size_t* count) override {
101
531k
        return add_internal<false>(vals, count);
102
531k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
69.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
69.1k
        return add_internal<false>(vals, count);
102
69.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
20.4k
    Status add(const uint8_t* vals, size_t* count) override {
101
20.4k
        return add_internal<false>(vals, count);
102
20.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
11.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.6k
        return add_internal<false>(vals, count);
102
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
16.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
16.2k
        return add_internal<false>(vals, count);
102
16.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
192
    Status add(const uint8_t* vals, size_t* count) override {
101
192
        return add_internal<false>(vals, count);
102
192
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
79.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
79.0k
        return add_internal<false>(vals, count);
102
79.0k
    }
_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
338
    Status add(const uint8_t* vals, size_t* count) override {
101
338
        return add_internal<false>(vals, count);
102
338
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
6.88k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.88k
        return add_internal<false>(vals, count);
102
6.88k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
102
    Status add(const uint8_t* vals, size_t* count) override {
101
102
        return add_internal<false>(vals, count);
102
102
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.15k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.15k
        return add_internal<false>(vals, count);
102
5.15k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
35.4k
    Status add(const uint8_t* vals, size_t* count) override {
101
35.4k
        return add_internal<false>(vals, count);
102
35.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
19.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
19.3k
        return add_internal<false>(vals, count);
102
19.3k
    }
_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.12k
    Status add(const uint8_t* vals, size_t* count) override {
101
3.12k
        return add_internal<false>(vals, count);
102
3.12k
    }
103
104
145M
    Status single_add(const uint8_t* vals, size_t* count) {
105
145M
        return add_internal<true>(vals, count);
106
145M
    }
107
108
    template <bool single>
109
146M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
146M
        DCHECK(!_finished);
111
146M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
146M
        uint32_t to_add = cast_set<UInt32>(
127
146M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
146M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
146M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
146M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
146M
        _count += to_add;
135
146M
        _remain_element_capacity -= to_add;
136
146M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
146M
        *num_written = to_add;
139
146M
        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
144M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
144M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
144M
                        *reinterpret_cast<const uint32_t*>(vals);
150
144M
                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
144M
        }
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
146M
        return Status::OK();
160
146M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
748k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
748k
        DCHECK(!_finished);
111
748k
        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
748k
        uint32_t to_add = cast_set<UInt32>(
127
748k
                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
748k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
748k
        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
748k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
748k
        _count += to_add;
135
748k
        _remain_element_capacity -= to_add;
136
748k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
748k
        *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
748k
        memcpy(&_data[orig_size], vals, to_add_size);
159
748k
        return Status::OK();
160
748k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
144M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
144M
        DCHECK(!_finished);
111
144M
        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
144M
        uint32_t to_add = cast_set<UInt32>(
127
144M
                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
144M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
144M
        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
144M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
144M
        _count += to_add;
135
144M
        _remain_element_capacity -= to_add;
136
144M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
144M
        *num_written = to_add;
139
144M
        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
144M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
144M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
144M
                        *reinterpret_cast<const uint32_t*>(vals);
150
144M
                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
144M
        }
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
144M
        return Status::OK();
160
144M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
60.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
60.8k
        DCHECK(!_finished);
111
60.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
60.8k
        uint32_t to_add = cast_set<UInt32>(
127
60.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
60.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
60.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
60.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
60.8k
        _count += to_add;
135
60.8k
        _remain_element_capacity -= to_add;
136
60.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
60.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
60.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
60.8k
        return Status::OK();
160
60.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
12.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
12.9k
        DCHECK(!_finished);
111
12.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
12.9k
        uint32_t to_add = cast_set<UInt32>(
127
12.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
12.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
12.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
12.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
12.9k
        _count += to_add;
135
12.9k
        _remain_element_capacity -= to_add;
136
12.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
12.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
12.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
12.9k
        return Status::OK();
160
12.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
531k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
531k
        DCHECK(!_finished);
111
531k
        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
531k
        uint32_t to_add = cast_set<UInt32>(
127
531k
                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
531k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
531k
        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
531k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
531k
        _count += to_add;
135
531k
        _remain_element_capacity -= to_add;
136
531k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
531k
        *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
531k
        memcpy(&_data[orig_size], vals, to_add_size);
159
531k
        return Status::OK();
160
531k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
69.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
69.1k
        DCHECK(!_finished);
111
69.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
69.1k
        uint32_t to_add = cast_set<UInt32>(
127
69.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
69.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
69.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
69.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
69.0k
        _count += to_add;
135
69.0k
        _remain_element_capacity -= to_add;
136
69.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
69.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
69.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
69.0k
        return Status::OK();
160
69.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
20.4k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
20.4k
        DCHECK(!_finished);
111
20.4k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
20.4k
        uint32_t to_add = cast_set<UInt32>(
127
20.4k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
20.4k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
20.4k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
20.4k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
20.4k
        _count += to_add;
135
20.4k
        _remain_element_capacity -= to_add;
136
20.4k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
20.4k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
20.4k
        memcpy(&_data[orig_size], vals, to_add_size);
159
20.4k
        return Status::OK();
160
20.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.6k
        DCHECK(!_finished);
111
11.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
11.6k
        uint32_t to_add = cast_set<UInt32>(
127
11.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
11.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
11.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.6k
        _count += to_add;
135
11.6k
        _remain_element_capacity -= to_add;
136
11.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
11.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.6k
        return Status::OK();
160
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
16.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
16.2k
        DCHECK(!_finished);
111
16.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
16.2k
        uint32_t to_add = cast_set<UInt32>(
127
16.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
16.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
16.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
16.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
16.2k
        _count += to_add;
135
16.2k
        _remain_element_capacity -= to_add;
136
16.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
16.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
16.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
16.2k
        return Status::OK();
160
16.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
192
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
192
        DCHECK(!_finished);
111
192
        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
192
        uint32_t to_add = cast_set<UInt32>(
127
192
                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
192
        int to_add_size = to_add * SIZE_OF_TYPE;
130
192
        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
192
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
192
        _count += to_add;
135
192
        _remain_element_capacity -= to_add;
136
192
        _raw_data_size += to_add_size;
137
        // return added number through count
138
192
        *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
192
        memcpy(&_data[orig_size], vals, to_add_size);
159
192
        return Status::OK();
160
192
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
79.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
79.0k
        DCHECK(!_finished);
111
79.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
79.0k
        uint32_t to_add = cast_set<UInt32>(
127
79.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
79.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
79.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
79.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
79.0k
        _count += to_add;
135
79.0k
        _remain_element_capacity -= to_add;
136
79.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
79.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
79.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
79.0k
        return Status::OK();
160
79.0k
    }
_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
338
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
338
        DCHECK(!_finished);
111
338
        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
338
        uint32_t to_add = cast_set<UInt32>(
127
338
                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
338
        int to_add_size = to_add * SIZE_OF_TYPE;
130
338
        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
338
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
338
        _count += to_add;
135
338
        _remain_element_capacity -= to_add;
136
338
        _raw_data_size += to_add_size;
137
        // return added number through count
138
338
        *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
338
        memcpy(&_data[orig_size], vals, to_add_size);
159
338
        return Status::OK();
160
338
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
6.88k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.88k
        DCHECK(!_finished);
111
6.88k
        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.88k
        uint32_t to_add = cast_set<UInt32>(
127
6.88k
                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.88k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.88k
        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.88k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.88k
        _count += to_add;
135
6.88k
        _remain_element_capacity -= to_add;
136
6.88k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.88k
        *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.88k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.88k
        return Status::OK();
160
6.88k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
102
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
102
        DCHECK(!_finished);
111
102
        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
102
        uint32_t to_add = cast_set<UInt32>(
127
102
                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
102
        int to_add_size = to_add * SIZE_OF_TYPE;
130
102
        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
102
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
102
        _count += to_add;
135
102
        _remain_element_capacity -= to_add;
136
102
        _raw_data_size += to_add_size;
137
        // return added number through count
138
102
        *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
102
        memcpy(&_data[orig_size], vals, to_add_size);
159
102
        return Status::OK();
160
102
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.15k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.15k
        DCHECK(!_finished);
111
5.15k
        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.15k
        uint32_t to_add = cast_set<UInt32>(
127
5.15k
                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.15k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.15k
        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.15k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.15k
        _count += to_add;
135
5.15k
        _remain_element_capacity -= to_add;
136
5.15k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.15k
        *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.15k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.15k
        return Status::OK();
160
5.15k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
35.4k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
35.4k
        DCHECK(!_finished);
111
35.4k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
35.4k
        uint32_t to_add = cast_set<UInt32>(
127
35.4k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
35.4k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
35.4k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
35.4k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
35.4k
        _count += to_add;
135
35.4k
        _remain_element_capacity -= to_add;
136
35.4k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
35.4k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
35.4k
        memcpy(&_data[orig_size], vals, to_add_size);
159
35.4k
        return Status::OK();
160
35.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
19.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
19.3k
        DCHECK(!_finished);
111
19.3k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
19.3k
        uint32_t to_add = cast_set<UInt32>(
127
19.3k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
19.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
19.3k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
19.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
19.3k
        _count += to_add;
135
19.3k
        _remain_element_capacity -= to_add;
136
19.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
19.3k
        *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.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
19.3k
        return Status::OK();
160
19.3k
    }
_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.12k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
3.12k
        DCHECK(!_finished);
111
3.12k
        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.12k
        uint32_t to_add = cast_set<UInt32>(
127
3.12k
                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.12k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
3.12k
        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.12k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
3.12k
        _count += to_add;
135
3.12k
        _remain_element_capacity -= to_add;
136
3.12k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
3.12k
        *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.12k
        memcpy(&_data[orig_size], vals, to_add_size);
159
3.12k
        return Status::OK();
160
3.12k
    }
161
162
809k
    Status finish(OwnedSlice* slice) override {
163
809k
        if (_count > 0) {
164
762k
            _first_value = cell(0);
165
762k
            _last_value = cell(_count - 1);
166
762k
        }
167
809k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
809k
        return Status::OK();
169
809k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
349k
    Status finish(OwnedSlice* slice) override {
163
349k
        if (_count > 0) {
164
314k
            _first_value = cell(0);
165
314k
            _last_value = cell(_count - 1);
166
314k
        }
167
349k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
349k
        return Status::OK();
169
349k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
59.3k
    Status finish(OwnedSlice* slice) override {
163
59.3k
        if (_count > 0) {
164
58.8k
            _first_value = cell(0);
165
58.8k
            _last_value = cell(_count - 1);
166
58.8k
        }
167
59.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
59.3k
        return Status::OK();
169
59.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.1k
    Status finish(OwnedSlice* slice) override {
163
10.1k
        if (_count > 0) {
164
10.0k
            _first_value = cell(0);
165
10.0k
            _last_value = cell(_count - 1);
166
10.0k
        }
167
10.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.1k
        return Status::OK();
169
10.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
149k
    Status finish(OwnedSlice* slice) override {
163
149k
        if (_count > 0) {
164
147k
            _first_value = cell(0);
165
147k
            _last_value = cell(_count - 1);
166
147k
        }
167
149k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
149k
        return Status::OK();
169
149k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
68.7k
    Status finish(OwnedSlice* slice) override {
163
68.7k
        if (_count > 0) {
164
68.7k
            _first_value = cell(0);
165
68.7k
            _last_value = cell(_count - 1);
166
68.7k
        }
167
68.7k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
68.7k
        return Status::OK();
169
68.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
13.0k
    Status finish(OwnedSlice* slice) override {
163
13.0k
        if (_count > 0) {
164
12.6k
            _first_value = cell(0);
165
12.6k
            _last_value = cell(_count - 1);
166
12.6k
        }
167
13.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
13.0k
        return Status::OK();
169
13.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.9k
    Status finish(OwnedSlice* slice) override {
163
10.9k
        if (_count > 0) {
164
10.6k
            _first_value = cell(0);
165
10.6k
            _last_value = cell(_count - 1);
166
10.6k
        }
167
10.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.9k
        return Status::OK();
169
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
14.0k
    Status finish(OwnedSlice* slice) override {
163
14.0k
        if (_count > 0) {
164
13.7k
            _first_value = cell(0);
165
13.7k
            _last_value = cell(_count - 1);
166
13.7k
        }
167
14.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
14.0k
        return Status::OK();
169
14.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
197
    Status finish(OwnedSlice* slice) override {
163
197
        if (_count > 0) {
164
192
            _first_value = cell(0);
165
192
            _last_value = cell(_count - 1);
166
192
        }
167
197
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
197
        return Status::OK();
169
197
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
36.9k
    Status finish(OwnedSlice* slice) override {
163
36.9k
        if (_count > 0) {
164
36.0k
            _first_value = cell(0);
165
36.0k
            _last_value = cell(_count - 1);
166
36.0k
        }
167
36.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
37.0k
        return Status::OK();
169
36.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
43.3k
    Status finish(OwnedSlice* slice) override {
163
43.3k
        if (_count > 0) {
164
41.9k
            _first_value = cell(0);
165
41.9k
            _last_value = cell(_count - 1);
166
41.9k
        }
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
438
    Status finish(OwnedSlice* slice) override {
163
438
        if (_count > 0) {
164
338
            _first_value = cell(0);
165
338
            _last_value = cell(_count - 1);
166
338
        }
167
438
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
438
        return Status::OK();
169
438
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.07k
    Status finish(OwnedSlice* slice) override {
163
7.07k
        if (_count > 0) {
164
6.88k
            _first_value = cell(0);
165
6.88k
            _last_value = cell(_count - 1);
166
6.88k
        }
167
7.07k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.07k
        return Status::OK();
169
7.07k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
110
    Status finish(OwnedSlice* slice) override {
163
110
        if (_count > 0) {
164
102
            _first_value = cell(0);
165
102
            _last_value = cell(_count - 1);
166
102
        }
167
110
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
110
        return Status::OK();
169
110
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.56k
    Status finish(OwnedSlice* slice) override {
163
9.56k
        if (_count > 0) {
164
4.65k
            _first_value = cell(0);
165
4.65k
            _last_value = cell(_count - 1);
166
4.65k
        }
167
9.56k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.56k
        return Status::OK();
169
9.56k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
18.9k
    Status finish(OwnedSlice* slice) override {
163
18.9k
        if (_count > 0) {
164
18.0k
            _first_value = cell(0);
165
18.0k
            _last_value = cell(_count - 1);
166
18.0k
        }
167
18.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
18.9k
        return Status::OK();
169
18.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
15.9k
    Status finish(OwnedSlice* slice) override {
163
15.9k
        if (_count > 0) {
164
15.5k
            _first_value = cell(0);
165
15.5k
            _last_value = cell(_count - 1);
166
15.5k
        }
167
15.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
15.9k
        return Status::OK();
169
15.9k
    }
_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
705
    Status finish(OwnedSlice* slice) override {
163
705
        if (_count > 0) {
164
656
            _first_value = cell(0);
165
656
            _last_value = cell(_count - 1);
166
656
        }
167
705
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
705
        return Status::OK();
169
705
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
618
    Status finish(OwnedSlice* slice) override {
163
618
        if (_count > 0) {
164
584
            _first_value = cell(0);
165
584
            _last_value = cell(_count - 1);
166
584
        }
167
618
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
618
        return Status::OK();
169
618
    }
170
171
1.92M
    Status reset() override {
172
1.92M
        RETURN_IF_CATCH_EXCEPTION({
173
1.92M
            size_t block_size = _options.data_page_size;
174
1.92M
            _count = 0;
175
1.92M
            _raw_data_size = 0;
176
1.92M
            _data.clear();
177
1.92M
            _data.reserve(block_size);
178
1.92M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.92M
                    << "buffer must be naturally-aligned";
180
1.92M
            _buffer.clear();
181
1.92M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.92M
            _finished = false;
183
1.92M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.92M
        });
185
1.93M
        return Status::OK();
186
1.92M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.01M
    Status reset() override {
172
1.01M
        RETURN_IF_CATCH_EXCEPTION({
173
1.01M
            size_t block_size = _options.data_page_size;
174
1.01M
            _count = 0;
175
1.01M
            _raw_data_size = 0;
176
1.01M
            _data.clear();
177
1.01M
            _data.reserve(block_size);
178
1.01M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.01M
                    << "buffer must be naturally-aligned";
180
1.01M
            _buffer.clear();
181
1.01M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.01M
            _finished = false;
183
1.01M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.01M
        });
185
1.01M
        return Status::OK();
186
1.01M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
120k
    Status reset() override {
172
120k
        RETURN_IF_CATCH_EXCEPTION({
173
120k
            size_t block_size = _options.data_page_size;
174
120k
            _count = 0;
175
120k
            _raw_data_size = 0;
176
120k
            _data.clear();
177
120k
            _data.reserve(block_size);
178
120k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
120k
                    << "buffer must be naturally-aligned";
180
120k
            _buffer.clear();
181
120k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
120k
            _finished = false;
183
120k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
120k
        });
185
120k
        return Status::OK();
186
120k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
21.1k
    Status reset() override {
172
21.1k
        RETURN_IF_CATCH_EXCEPTION({
173
21.1k
            size_t block_size = _options.data_page_size;
174
21.1k
            _count = 0;
175
21.1k
            _raw_data_size = 0;
176
21.1k
            _data.clear();
177
21.1k
            _data.reserve(block_size);
178
21.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
21.1k
                    << "buffer must be naturally-aligned";
180
21.1k
            _buffer.clear();
181
21.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
21.1k
            _finished = false;
183
21.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
21.1k
        });
185
21.1k
        return Status::OK();
186
21.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
295k
    Status reset() override {
172
295k
        RETURN_IF_CATCH_EXCEPTION({
173
295k
            size_t block_size = _options.data_page_size;
174
295k
            _count = 0;
175
295k
            _raw_data_size = 0;
176
295k
            _data.clear();
177
295k
            _data.reserve(block_size);
178
295k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
295k
                    << "buffer must be naturally-aligned";
180
295k
            _buffer.clear();
181
295k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
295k
            _finished = false;
183
295k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
295k
        });
185
295k
        return Status::OK();
186
295k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
137k
    Status reset() override {
172
137k
        RETURN_IF_CATCH_EXCEPTION({
173
137k
            size_t block_size = _options.data_page_size;
174
137k
            _count = 0;
175
137k
            _raw_data_size = 0;
176
137k
            _data.clear();
177
137k
            _data.reserve(block_size);
178
137k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
137k
                    << "buffer must be naturally-aligned";
180
137k
            _buffer.clear();
181
137k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
137k
            _finished = false;
183
137k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
137k
        });
185
138k
        return Status::OK();
186
137k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
26.8k
    Status reset() override {
172
26.8k
        RETURN_IF_CATCH_EXCEPTION({
173
26.8k
            size_t block_size = _options.data_page_size;
174
26.8k
            _count = 0;
175
26.8k
            _raw_data_size = 0;
176
26.8k
            _data.clear();
177
26.8k
            _data.reserve(block_size);
178
26.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
26.8k
                    << "buffer must be naturally-aligned";
180
26.8k
            _buffer.clear();
181
26.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
26.8k
            _finished = false;
183
26.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
26.8k
        });
185
26.8k
        return Status::OK();
186
26.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
22.7k
    Status reset() override {
172
22.7k
        RETURN_IF_CATCH_EXCEPTION({
173
22.7k
            size_t block_size = _options.data_page_size;
174
22.7k
            _count = 0;
175
22.7k
            _raw_data_size = 0;
176
22.7k
            _data.clear();
177
22.7k
            _data.reserve(block_size);
178
22.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.7k
                    << "buffer must be naturally-aligned";
180
22.7k
            _buffer.clear();
181
22.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.7k
            _finished = false;
183
22.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.7k
        });
185
22.7k
        return Status::OK();
186
22.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
28.3k
    Status reset() override {
172
28.3k
        RETURN_IF_CATCH_EXCEPTION({
173
28.3k
            size_t block_size = _options.data_page_size;
174
28.3k
            _count = 0;
175
28.3k
            _raw_data_size = 0;
176
28.3k
            _data.clear();
177
28.3k
            _data.reserve(block_size);
178
28.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
28.3k
                    << "buffer must be naturally-aligned";
180
28.3k
            _buffer.clear();
181
28.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
28.3k
            _finished = false;
183
28.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
28.3k
        });
185
28.3k
        return Status::OK();
186
28.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
382
    Status reset() override {
172
382
        RETURN_IF_CATCH_EXCEPTION({
173
382
            size_t block_size = _options.data_page_size;
174
382
            _count = 0;
175
382
            _raw_data_size = 0;
176
382
            _data.clear();
177
382
            _data.reserve(block_size);
178
382
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
382
                    << "buffer must be naturally-aligned";
180
382
            _buffer.clear();
181
382
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
382
            _finished = false;
183
382
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
382
        });
185
382
        return Status::OK();
186
382
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
73.3k
    Status reset() override {
172
73.3k
        RETURN_IF_CATCH_EXCEPTION({
173
73.3k
            size_t block_size = _options.data_page_size;
174
73.3k
            _count = 0;
175
73.3k
            _raw_data_size = 0;
176
73.3k
            _data.clear();
177
73.3k
            _data.reserve(block_size);
178
73.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
73.3k
                    << "buffer must be naturally-aligned";
180
73.3k
            _buffer.clear();
181
73.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
73.3k
            _finished = false;
183
73.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
73.3k
        });
185
73.3k
        return Status::OK();
186
73.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
87.6k
    Status reset() override {
172
87.6k
        RETURN_IF_CATCH_EXCEPTION({
173
87.6k
            size_t block_size = _options.data_page_size;
174
87.6k
            _count = 0;
175
87.6k
            _raw_data_size = 0;
176
87.6k
            _data.clear();
177
87.6k
            _data.reserve(block_size);
178
87.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
87.6k
                    << "buffer must be naturally-aligned";
180
87.6k
            _buffer.clear();
181
87.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
87.6k
            _finished = false;
183
87.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
87.6k
        });
185
87.7k
        return Status::OK();
186
87.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
722
    Status reset() override {
172
722
        RETURN_IF_CATCH_EXCEPTION({
173
722
            size_t block_size = _options.data_page_size;
174
722
            _count = 0;
175
722
            _raw_data_size = 0;
176
722
            _data.clear();
177
722
            _data.reserve(block_size);
178
722
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
722
                    << "buffer must be naturally-aligned";
180
722
            _buffer.clear();
181
722
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
722
            _finished = false;
183
722
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
722
        });
185
722
        return Status::OK();
186
722
    }
_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.1k
        return Status::OK();
186
14.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
312
    Status reset() override {
172
312
        RETURN_IF_CATCH_EXCEPTION({
173
312
            size_t block_size = _options.data_page_size;
174
312
            _count = 0;
175
312
            _raw_data_size = 0;
176
312
            _data.clear();
177
312
            _data.reserve(block_size);
178
312
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
312
                    << "buffer must be naturally-aligned";
180
312
            _buffer.clear();
181
312
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
312
            _finished = false;
183
312
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
312
        });
185
312
        return Status::OK();
186
312
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.1k
    Status reset() override {
172
19.1k
        RETURN_IF_CATCH_EXCEPTION({
173
19.1k
            size_t block_size = _options.data_page_size;
174
19.1k
            _count = 0;
175
19.1k
            _raw_data_size = 0;
176
19.1k
            _data.clear();
177
19.1k
            _data.reserve(block_size);
178
19.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.1k
                    << "buffer must be naturally-aligned";
180
19.1k
            _buffer.clear();
181
19.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.1k
            _finished = false;
183
19.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.1k
        });
185
19.1k
        return Status::OK();
186
19.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.1k
    Status reset() override {
172
31.1k
        RETURN_IF_CATCH_EXCEPTION({
173
31.1k
            size_t block_size = _options.data_page_size;
174
31.1k
            _count = 0;
175
31.1k
            _raw_data_size = 0;
176
31.1k
            _data.clear();
177
31.1k
            _data.reserve(block_size);
178
31.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.1k
                    << "buffer must be naturally-aligned";
180
31.1k
            _buffer.clear();
181
31.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.1k
            _finished = false;
183
31.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.1k
        });
185
31.1k
        return Status::OK();
186
31.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
31.8k
    Status reset() override {
172
31.8k
        RETURN_IF_CATCH_EXCEPTION({
173
31.8k
            size_t block_size = _options.data_page_size;
174
31.8k
            _count = 0;
175
31.8k
            _raw_data_size = 0;
176
31.8k
            _data.clear();
177
31.8k
            _data.reserve(block_size);
178
31.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.8k
                    << "buffer must be naturally-aligned";
180
31.8k
            _buffer.clear();
181
31.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.8k
            _finished = false;
183
31.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.8k
        });
185
31.8k
        return Status::OK();
186
31.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.21k
    Status reset() override {
172
2.21k
        RETURN_IF_CATCH_EXCEPTION({
173
2.21k
            size_t block_size = _options.data_page_size;
174
2.21k
            _count = 0;
175
2.21k
            _raw_data_size = 0;
176
2.21k
            _data.clear();
177
2.21k
            _data.reserve(block_size);
178
2.21k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.21k
                    << "buffer must be naturally-aligned";
180
2.21k
            _buffer.clear();
181
2.21k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.21k
            _finished = false;
183
2.21k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.21k
        });
185
2.22k
        return Status::OK();
186
2.21k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.50k
    Status reset() override {
172
1.50k
        RETURN_IF_CATCH_EXCEPTION({
173
1.50k
            size_t block_size = _options.data_page_size;
174
1.50k
            _count = 0;
175
1.50k
            _raw_data_size = 0;
176
1.50k
            _data.clear();
177
1.50k
            _data.reserve(block_size);
178
1.50k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.50k
                    << "buffer must be naturally-aligned";
180
1.50k
            _buffer.clear();
181
1.50k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.50k
            _finished = false;
183
1.50k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.50k
        });
185
1.50k
        return Status::OK();
186
1.50k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.32k
    Status reset() override {
172
1.32k
        RETURN_IF_CATCH_EXCEPTION({
173
1.32k
            size_t block_size = _options.data_page_size;
174
1.32k
            _count = 0;
175
1.32k
            _raw_data_size = 0;
176
1.32k
            _data.clear();
177
1.32k
            _data.reserve(block_size);
178
1.32k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.32k
                    << "buffer must be naturally-aligned";
180
1.32k
            _buffer.clear();
181
1.32k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.32k
            _finished = false;
183
1.32k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.32k
        });
185
1.32k
        return Status::OK();
186
1.32k
    }
187
188
2.36M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
2.36M
    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
29.3k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
16.2k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
1.95k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
635
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
1.90k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
695
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
1.15k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
718
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
763
    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.56k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv
Line
Count
Source
190
125
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
291
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.10k
    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
525k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
64.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
59.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
10.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
149k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
68.7k
    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
13.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
10.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
14.0k
    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
197
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
36.9k
    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
438
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.07k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
110
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.56k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
18.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
15.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.06k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
705
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
618
    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
820k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
364k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
60.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
146k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
69.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
13.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
14.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
185
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
36.3k
            : _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
284
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
6.96k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
202
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.57k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.1k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
15.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.15k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
795
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
706
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
809k
    OwnedSlice _finish(int final_size_of_type) {
216
809k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
809k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
809k
        int padding_elems = num_elems_after_padding - _count;
221
809k
        int padding_bytes = padding_elems * final_size_of_type;
222
24.1M
        for (int i = 0; i < padding_bytes; i++) {
223
23.3M
            _data.push_back(0);
224
23.3M
        }
225
226
        // reserve enough place for compression
227
809k
        _buffer.resize(
228
809k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
809k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
809k
        int64_t bytes =
232
809k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
809k
                                         num_elems_after_padding, final_size_of_type, 0);
234
809k
        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
809k
        encode_fixed32_le(&_buffer[0], _count);
244
809k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
809k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
809k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
809k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
809k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
809k
        return _buffer.build();
251
809k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
349k
    OwnedSlice _finish(int final_size_of_type) {
216
349k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
349k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
349k
        int padding_elems = num_elems_after_padding - _count;
221
349k
        int padding_bytes = padding_elems * final_size_of_type;
222
6.67M
        for (int i = 0; i < padding_bytes; i++) {
223
6.33M
            _data.push_back(0);
224
6.33M
        }
225
226
        // reserve enough place for compression
227
349k
        _buffer.resize(
228
349k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
349k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
349k
        int64_t bytes =
232
349k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
349k
                                         num_elems_after_padding, final_size_of_type, 0);
234
349k
        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
349k
        encode_fixed32_le(&_buffer[0], _count);
244
349k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
349k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
349k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
349k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
349k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
349k
        return _buffer.build();
251
349k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
59.3k
    OwnedSlice _finish(int final_size_of_type) {
216
59.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
59.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
59.3k
        int padding_elems = num_elems_after_padding - _count;
221
59.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
386k
        for (int i = 0; i < padding_bytes; i++) {
223
327k
            _data.push_back(0);
224
327k
        }
225
226
        // reserve enough place for compression
227
59.3k
        _buffer.resize(
228
59.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
59.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
59.3k
        int64_t bytes =
232
59.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
59.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
59.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
59.3k
        encode_fixed32_le(&_buffer[0], _count);
244
59.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
59.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
59.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
59.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
59.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
59.3k
        return _buffer.build();
251
59.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
10.1k
    OwnedSlice _finish(int final_size_of_type) {
216
10.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.1k
        int padding_elems = num_elems_after_padding - _count;
221
10.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
104k
        for (int i = 0; i < padding_bytes; i++) {
223
94.0k
            _data.push_back(0);
224
94.0k
        }
225
226
        // reserve enough place for compression
227
10.1k
        _buffer.resize(
228
10.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.1k
        int64_t bytes =
232
10.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.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
10.1k
        encode_fixed32_le(&_buffer[0], _count);
244
10.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.1k
        return _buffer.build();
251
10.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
149k
    OwnedSlice _finish(int final_size_of_type) {
216
149k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
149k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
149k
        int padding_elems = num_elems_after_padding - _count;
221
149k
        int padding_bytes = padding_elems * final_size_of_type;
222
7.08M
        for (int i = 0; i < padding_bytes; i++) {
223
6.93M
            _data.push_back(0);
224
6.93M
        }
225
226
        // reserve enough place for compression
227
149k
        _buffer.resize(
228
149k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
149k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
149k
        int64_t bytes =
232
149k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
149k
                                         num_elems_after_padding, final_size_of_type, 0);
234
149k
        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
149k
        encode_fixed32_le(&_buffer[0], _count);
244
149k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
149k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
149k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
149k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
149k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
149k
        return _buffer.build();
251
149k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
68.7k
    OwnedSlice _finish(int final_size_of_type) {
216
68.7k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
68.7k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
68.7k
        int padding_elems = num_elems_after_padding - _count;
221
68.7k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.28M
        for (int i = 0; i < padding_bytes; i++) {
223
3.21M
            _data.push_back(0);
224
3.21M
        }
225
226
        // reserve enough place for compression
227
68.7k
        _buffer.resize(
228
68.7k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
68.7k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
68.7k
        int64_t bytes =
232
68.7k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
68.7k
                                         num_elems_after_padding, final_size_of_type, 0);
234
68.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
68.7k
        encode_fixed32_le(&_buffer[0], _count);
244
68.7k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
68.7k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
68.7k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
68.7k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
68.7k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
68.7k
        return _buffer.build();
251
68.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
13.0k
    OwnedSlice _finish(int final_size_of_type) {
216
13.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
13.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
13.0k
        int padding_elems = num_elems_after_padding - _count;
221
13.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
864k
        for (int i = 0; i < padding_bytes; i++) {
223
851k
            _data.push_back(0);
224
851k
        }
225
226
        // reserve enough place for compression
227
13.0k
        _buffer.resize(
228
13.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
13.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
13.0k
        int64_t bytes =
232
13.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
13.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
13.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
13.0k
        encode_fixed32_le(&_buffer[0], _count);
244
13.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
13.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
13.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
13.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
13.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
13.0k
        return _buffer.build();
251
13.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
10.9k
    OwnedSlice _finish(int final_size_of_type) {
216
10.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.9k
        int padding_elems = num_elems_after_padding - _count;
221
10.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
238k
        for (int i = 0; i < padding_bytes; i++) {
223
227k
            _data.push_back(0);
224
227k
        }
225
226
        // reserve enough place for compression
227
10.9k
        _buffer.resize(
228
10.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.9k
        int64_t bytes =
232
10.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
10.9k
        encode_fixed32_le(&_buffer[0], _count);
244
10.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.9k
        return _buffer.build();
251
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
14.0k
    OwnedSlice _finish(int final_size_of_type) {
216
14.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
14.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
14.0k
        int padding_elems = num_elems_after_padding - _count;
221
14.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
583k
        for (int i = 0; i < padding_bytes; i++) {
223
569k
            _data.push_back(0);
224
569k
        }
225
226
        // reserve enough place for compression
227
14.0k
        _buffer.resize(
228
14.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
14.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
14.0k
        int64_t bytes =
232
14.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
14.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
14.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
14.0k
        encode_fixed32_le(&_buffer[0], _count);
244
14.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
14.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
14.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
14.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
14.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
14.0k
        return _buffer.build();
251
14.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
197
    OwnedSlice _finish(int final_size_of_type) {
216
197
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
197
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
197
        int padding_elems = num_elems_after_padding - _count;
221
197
        int padding_bytes = padding_elems * final_size_of_type;
222
2.69k
        for (int i = 0; i < padding_bytes; i++) {
223
2.50k
            _data.push_back(0);
224
2.50k
        }
225
226
        // reserve enough place for compression
227
197
        _buffer.resize(
228
197
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
197
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
197
        int64_t bytes =
232
197
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
197
                                         num_elems_after_padding, final_size_of_type, 0);
234
197
        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
197
        encode_fixed32_le(&_buffer[0], _count);
244
197
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
197
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
197
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
197
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
197
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
197
        return _buffer.build();
251
197
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
36.9k
    OwnedSlice _finish(int final_size_of_type) {
216
36.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
36.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
36.9k
        int padding_elems = num_elems_after_padding - _count;
221
36.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
791k
        for (int i = 0; i < padding_bytes; i++) {
223
754k
            _data.push_back(0);
224
754k
        }
225
226
        // reserve enough place for compression
227
36.9k
        _buffer.resize(
228
36.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
36.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
36.9k
        int64_t bytes =
232
36.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
36.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
36.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
36.9k
        encode_fixed32_le(&_buffer[0], _count);
244
36.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
36.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
36.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
36.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
36.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
36.9k
        return _buffer.build();
251
36.9k
    }
_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.85M
        for (int i = 0; i < padding_bytes; i++) {
223
1.80M
            _data.push_back(0);
224
1.80M
        }
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
438
    OwnedSlice _finish(int final_size_of_type) {
216
438
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
438
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
438
        int padding_elems = num_elems_after_padding - _count;
221
438
        int padding_bytes = padding_elems * final_size_of_type;
222
6.98k
        for (int i = 0; i < padding_bytes; i++) {
223
6.55k
            _data.push_back(0);
224
6.55k
        }
225
226
        // reserve enough place for compression
227
438
        _buffer.resize(
228
438
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
438
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
438
        int64_t bytes =
232
438
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
438
                                         num_elems_after_padding, final_size_of_type, 0);
234
438
        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
438
        encode_fixed32_le(&_buffer[0], _count);
244
438
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
438
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
438
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
438
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
438
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
438
        return _buffer.build();
251
438
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.07k
    OwnedSlice _finish(int final_size_of_type) {
216
7.07k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.07k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.07k
        int padding_elems = num_elems_after_padding - _count;
221
7.07k
        int padding_bytes = padding_elems * final_size_of_type;
222
371k
        for (int i = 0; i < padding_bytes; i++) {
223
364k
            _data.push_back(0);
224
364k
        }
225
226
        // reserve enough place for compression
227
7.07k
        _buffer.resize(
228
7.07k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.07k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.07k
        int64_t bytes =
232
7.07k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.07k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.07k
        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.07k
        encode_fixed32_le(&_buffer[0], _count);
244
7.07k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.07k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.07k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.07k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.07k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.07k
        return _buffer.build();
251
7.07k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
110
    OwnedSlice _finish(int final_size_of_type) {
216
110
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
110
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
110
        int padding_elems = num_elems_after_padding - _count;
221
110
        int padding_bytes = padding_elems * final_size_of_type;
222
6.73k
        for (int i = 0; i < padding_bytes; i++) {
223
6.62k
            _data.push_back(0);
224
6.62k
        }
225
226
        // reserve enough place for compression
227
110
        _buffer.resize(
228
110
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
110
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
110
        int64_t bytes =
232
110
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
110
                                         num_elems_after_padding, final_size_of_type, 0);
234
110
        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
110
        encode_fixed32_le(&_buffer[0], _count);
244
110
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
110
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
110
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
110
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
110
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
110
        return _buffer.build();
251
110
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.56k
    OwnedSlice _finish(int final_size_of_type) {
216
9.56k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.56k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.56k
        int padding_elems = num_elems_after_padding - _count;
221
9.56k
        int padding_bytes = padding_elems * final_size_of_type;
222
114k
        for (int i = 0; i < padding_bytes; i++) {
223
105k
            _data.push_back(0);
224
105k
        }
225
226
        // reserve enough place for compression
227
9.56k
        _buffer.resize(
228
9.56k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.56k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.56k
        int64_t bytes =
232
9.56k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.56k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.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
9.56k
        encode_fixed32_le(&_buffer[0], _count);
244
9.56k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.56k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.56k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.56k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.56k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.56k
        return _buffer.build();
251
9.56k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
18.9k
    OwnedSlice _finish(int final_size_of_type) {
216
18.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
18.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
18.9k
        int padding_elems = num_elems_after_padding - _count;
221
18.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
496k
        for (int i = 0; i < padding_bytes; i++) {
223
477k
            _data.push_back(0);
224
477k
        }
225
226
        // reserve enough place for compression
227
18.9k
        _buffer.resize(
228
18.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
18.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
18.9k
        int64_t bytes =
232
18.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
18.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
18.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
18.9k
        encode_fixed32_le(&_buffer[0], _count);
244
18.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
18.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
18.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
18.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
18.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
18.9k
        return _buffer.build();
251
18.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
15.9k
    OwnedSlice _finish(int final_size_of_type) {
216
15.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
15.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
15.9k
        int padding_elems = num_elems_after_padding - _count;
221
15.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.09M
        for (int i = 0; i < padding_bytes; i++) {
223
1.07M
            _data.push_back(0);
224
1.07M
        }
225
226
        // reserve enough place for compression
227
15.9k
        _buffer.resize(
228
15.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
15.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
15.9k
        int64_t bytes =
232
15.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
15.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
15.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
15.9k
        encode_fixed32_le(&_buffer[0], _count);
244
15.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
15.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
15.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
15.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
15.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
15.9k
        return _buffer.build();
251
15.9k
    }
_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
705
    OwnedSlice _finish(int final_size_of_type) {
216
705
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
705
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
705
        int padding_elems = num_elems_after_padding - _count;
221
705
        int padding_bytes = padding_elems * final_size_of_type;
222
14.8k
        for (int i = 0; i < padding_bytes; i++) {
223
14.1k
            _data.push_back(0);
224
14.1k
        }
225
226
        // reserve enough place for compression
227
705
        _buffer.resize(
228
705
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
705
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
705
        int64_t bytes =
232
705
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
705
                                         num_elems_after_padding, final_size_of_type, 0);
234
705
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
705
        encode_fixed32_le(&_buffer[0], _count);
244
705
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
705
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
705
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
705
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
705
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
705
        return _buffer.build();
251
705
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
618
    OwnedSlice _finish(int final_size_of_type) {
216
618
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
618
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
618
        int padding_elems = num_elems_after_padding - _count;
221
618
        int padding_bytes = padding_elems * final_size_of_type;
222
50.1k
        for (int i = 0; i < padding_bytes; i++) {
223
49.5k
            _data.push_back(0);
224
49.5k
        }
225
226
        // reserve enough place for compression
227
618
        _buffer.resize(
228
618
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
618
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
618
        int64_t bytes =
232
618
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
618
                                         num_elems_after_padding, final_size_of_type, 0);
234
618
        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
618
        encode_fixed32_le(&_buffer[0], _count);
244
618
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
618
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
618
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
618
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
618
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
618
        return _buffer.build();
251
618
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.52M
    CppType cell(int idx) const {
256
1.52M
        DCHECK_GE(idx, 0);
257
1.52M
        CppType ret;
258
1.52M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.52M
        return ret;
260
1.52M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
629k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
629k
        CppType ret;
258
629k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
629k
        return ret;
260
629k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
117k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
117k
        CppType ret;
258
117k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
117k
        return ret;
260
117k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
20.0k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
20.0k
        CppType ret;
258
20.0k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
20.0k
        return ret;
260
20.0k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
294k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
294k
        CppType ret;
258
294k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
294k
        return ret;
260
294k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
137k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
137k
        CppType ret;
258
137k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
137k
        return ret;
260
137k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
25.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
25.3k
        CppType ret;
258
25.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
25.3k
        return ret;
260
25.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
21.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.2k
        CppType ret;
258
21.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.2k
        return ret;
260
21.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
27.4k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
27.4k
        CppType ret;
258
27.4k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
27.4k
        return ret;
260
27.4k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
384
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
384
        CppType ret;
258
384
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
384
        return ret;
260
384
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
72.0k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
72.0k
        CppType ret;
258
72.0k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
72.0k
        return ret;
260
72.0k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
83.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
83.8k
        CppType ret;
258
83.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
83.8k
        return ret;
260
83.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
676
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
676
        CppType ret;
258
676
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
676
        return ret;
260
676
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
13.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.7k
        CppType ret;
258
13.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.7k
        return ret;
260
13.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
204
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
204
        CppType ret;
258
204
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
204
        return ret;
260
204
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.30k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.30k
        CppType ret;
258
9.30k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.30k
        return ret;
260
9.30k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
36.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
36.1k
        CppType ret;
258
36.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
36.1k
        return ret;
260
36.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.0k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.0k
        CppType ret;
258
31.0k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.0k
        return ret;
260
31.0k
    }
_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.31k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.31k
        CppType ret;
258
1.31k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.31k
        return ret;
260
1.31k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.16k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.16k
        CppType ret;
258
1.16k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.16k
        return ret;
260
1.16k
    }
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.66M
                                       int& size_of_element) {
277
2.66M
    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.66M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.66M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.66M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.66M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.66M
    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.66M
    switch (size_of_element) {
295
180k
    case 1:
296
212k
    case 2:
297
216k
    case 3:
298
1.63M
    case 4:
299
2.56M
    case 8:
300
2.56M
    case 12:
301
2.66M
    case 16:
302
2.66M
    case 32:
303
2.66M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.66M
    }
307
2.66M
    return Status::OK();
308
2.66M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.33M
            : _data(data),
315
1.33M
              _options(options),
316
1.33M
              _parsed(false),
317
1.33M
              _num_elements(0),
318
1.33M
              _num_element_after_padding(0),
319
1.33M
              _size_of_element(0),
320
1.33M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
610k
            : _data(data),
315
610k
              _options(options),
316
610k
              _parsed(false),
317
610k
              _num_elements(0),
318
610k
              _num_element_after_padding(0),
319
610k
              _size_of_element(0),
320
610k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
90.2k
            : _data(data),
315
90.2k
              _options(options),
316
90.2k
              _parsed(false),
317
90.2k
              _num_elements(0),
318
90.2k
              _num_element_after_padding(0),
319
90.2k
              _size_of_element(0),
320
90.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.9k
            : _data(data),
315
15.9k
              _options(options),
316
15.9k
              _parsed(false),
317
15.9k
              _num_elements(0),
318
15.9k
              _num_element_after_padding(0),
319
15.9k
              _size_of_element(0),
320
15.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
214k
            : _data(data),
315
214k
              _options(options),
316
214k
              _parsed(false),
317
214k
              _num_elements(0),
318
214k
              _num_element_after_padding(0),
319
214k
              _size_of_element(0),
320
214k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
93.8k
            : _data(data),
315
93.8k
              _options(options),
316
93.8k
              _parsed(false),
317
93.8k
              _num_elements(0),
318
93.8k
              _num_element_after_padding(0),
319
93.8k
              _size_of_element(0),
320
93.8k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
17.9k
            : _data(data),
315
17.9k
              _options(options),
316
17.9k
              _parsed(false),
317
17.9k
              _num_elements(0),
318
17.9k
              _num_element_after_padding(0),
319
17.9k
              _size_of_element(0),
320
17.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.9k
            : _data(data),
315
19.9k
              _options(options),
316
19.9k
              _parsed(false),
317
19.9k
              _num_elements(0),
318
19.9k
              _num_element_after_padding(0),
319
19.9k
              _size_of_element(0),
320
19.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
28.8k
            : _data(data),
315
28.8k
              _options(options),
316
28.8k
              _parsed(false),
317
28.8k
              _num_elements(0),
318
28.8k
              _num_element_after_padding(0),
319
28.8k
              _size_of_element(0),
320
28.8k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.02k
            : _data(data),
315
2.02k
              _options(options),
316
2.02k
              _parsed(false),
317
2.02k
              _num_elements(0),
318
2.02k
              _num_element_after_padding(0),
319
2.02k
              _size_of_element(0),
320
2.02k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
61.2k
            : _data(data),
315
61.2k
              _options(options),
316
61.2k
              _parsed(false),
317
61.2k
              _num_elements(0),
318
61.2k
              _num_element_after_padding(0),
319
61.2k
              _size_of_element(0),
320
61.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
68.1k
            : _data(data),
315
68.1k
              _options(options),
316
68.1k
              _parsed(false),
317
68.1k
              _num_elements(0),
318
68.1k
              _num_element_after_padding(0),
319
68.1k
              _size_of_element(0),
320
68.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.56k
            : _data(data),
315
2.56k
              _options(options),
316
2.56k
              _parsed(false),
317
2.56k
              _num_elements(0),
318
2.56k
              _num_element_after_padding(0),
319
2.56k
              _size_of_element(0),
320
2.56k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.9k
            : _data(data),
315
14.9k
              _options(options),
316
14.9k
              _parsed(false),
317
14.9k
              _num_elements(0),
318
14.9k
              _num_element_after_padding(0),
319
14.9k
              _size_of_element(0),
320
14.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.40k
            : _data(data),
315
1.40k
              _options(options),
316
1.40k
              _parsed(false),
317
1.40k
              _num_elements(0),
318
1.40k
              _num_element_after_padding(0),
319
1.40k
              _size_of_element(0),
320
1.40k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.4k
            : _data(data),
315
15.4k
              _options(options),
316
15.4k
              _parsed(false),
317
15.4k
              _num_elements(0),
318
15.4k
              _num_element_after_padding(0),
319
15.4k
              _size_of_element(0),
320
15.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
40.1k
            : _data(data),
315
40.1k
              _options(options),
316
40.1k
              _parsed(false),
317
40.1k
              _num_elements(0),
318
40.1k
              _num_element_after_padding(0),
319
40.1k
              _size_of_element(0),
320
40.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
29.6k
            : _data(data),
315
29.6k
              _options(options),
316
29.6k
              _parsed(false),
317
29.6k
              _num_elements(0),
318
29.6k
              _num_element_after_padding(0),
319
29.6k
              _size_of_element(0),
320
29.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.81k
            : _data(data),
315
1.81k
              _options(options),
316
1.81k
              _parsed(false),
317
1.81k
              _num_elements(0),
318
1.81k
              _num_element_after_padding(0),
319
1.81k
              _size_of_element(0),
320
1.81k
              _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.15k
            : _data(data),
315
1.15k
              _options(options),
316
1.15k
              _parsed(false),
317
1.15k
              _num_elements(0),
318
1.15k
              _num_element_after_padding(0),
319
1.15k
              _size_of_element(0),
320
1.15k
              _cur_index(0) {}
321
322
1.33M
    Status init() override {
323
1.33M
        CHECK(!_parsed);
324
1.33M
        size_t unused;
325
1.33M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.33M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.33M
        if (_data.size !=
329
1.33M
            _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.33M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.33M
                     _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.33M
        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.33M
        _parsed = true;
349
1.33M
        return Status::OK();
350
1.33M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
610k
    Status init() override {
323
610k
        CHECK(!_parsed);
324
610k
        size_t unused;
325
610k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
610k
                                                 _num_element_after_padding, _size_of_element));
327
328
610k
        if (_data.size !=
329
610k
            _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
610k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
610k
                     _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
610k
        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
610k
        _parsed = true;
349
610k
        return Status::OK();
350
610k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
90.2k
    Status init() override {
323
90.2k
        CHECK(!_parsed);
324
90.2k
        size_t unused;
325
90.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
90.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
90.2k
        if (_data.size !=
329
90.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
90.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
90.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
90.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
90.2k
        _parsed = true;
349
90.2k
        return Status::OK();
350
90.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
15.9k
    Status init() override {
323
15.9k
        CHECK(!_parsed);
324
15.9k
        size_t unused;
325
15.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.9k
        if (_data.size !=
329
15.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
15.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.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
15.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
15.9k
        _parsed = true;
349
15.9k
        return Status::OK();
350
15.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
214k
    Status init() override {
323
214k
        CHECK(!_parsed);
324
214k
        size_t unused;
325
214k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
214k
                                                 _num_element_after_padding, _size_of_element));
327
328
214k
        if (_data.size !=
329
214k
            _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
214k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
214k
                     _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
214k
        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
214k
        _parsed = true;
349
214k
        return Status::OK();
350
214k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
93.7k
    Status init() override {
323
93.7k
        CHECK(!_parsed);
324
93.7k
        size_t unused;
325
93.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
93.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
93.7k
        if (_data.size !=
329
93.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
93.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
93.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
93.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
93.7k
        _parsed = true;
349
93.7k
        return Status::OK();
350
93.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
17.9k
    Status init() override {
323
17.9k
        CHECK(!_parsed);
324
17.9k
        size_t unused;
325
17.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
17.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
17.9k
        if (_data.size !=
329
17.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
17.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
17.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
17.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
17.9k
        _parsed = true;
349
17.9k
        return Status::OK();
350
17.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
19.9k
    Status init() override {
323
19.9k
        CHECK(!_parsed);
324
19.9k
        size_t unused;
325
19.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.9k
        if (_data.size !=
329
19.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
19.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.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
19.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
19.9k
        _parsed = true;
349
19.9k
        return Status::OK();
350
19.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
28.8k
    Status init() override {
323
28.8k
        CHECK(!_parsed);
324
28.8k
        size_t unused;
325
28.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
28.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
28.8k
        if (_data.size !=
329
28.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
28.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
28.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
28.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
28.8k
        _parsed = true;
349
28.8k
        return Status::OK();
350
28.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
2.02k
    Status init() override {
323
2.02k
        CHECK(!_parsed);
324
2.02k
        size_t unused;
325
2.02k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.02k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.02k
        if (_data.size !=
329
2.02k
            _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.02k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.02k
                     _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.02k
        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.02k
        _parsed = true;
349
2.02k
        return Status::OK();
350
2.02k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
61.2k
    Status init() override {
323
61.2k
        CHECK(!_parsed);
324
61.2k
        size_t unused;
325
61.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
61.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
61.2k
        if (_data.size !=
329
61.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
61.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
61.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
61.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
61.2k
        _parsed = true;
349
61.2k
        return Status::OK();
350
61.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
68.1k
    Status init() override {
323
68.1k
        CHECK(!_parsed);
324
68.1k
        size_t unused;
325
68.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
68.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
68.1k
        if (_data.size !=
329
68.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
68.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
68.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
68.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
68.1k
        _parsed = true;
349
68.1k
        return Status::OK();
350
68.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.55k
    Status init() override {
323
2.55k
        CHECK(!_parsed);
324
2.55k
        size_t unused;
325
2.55k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.55k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.55k
        if (_data.size !=
329
2.55k
            _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.55k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.55k
                     _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.55k
        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.55k
        _parsed = true;
349
2.55k
        return Status::OK();
350
2.55k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
14.9k
    Status init() override {
323
14.9k
        CHECK(!_parsed);
324
14.9k
        size_t unused;
325
14.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.9k
        if (_data.size !=
329
14.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
14.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.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
14.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
14.9k
        _parsed = true;
349
14.9k
        return Status::OK();
350
14.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.40k
    Status init() override {
323
1.40k
        CHECK(!_parsed);
324
1.40k
        size_t unused;
325
1.40k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.40k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.40k
        if (_data.size !=
329
1.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
1.40k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.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
1.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
1.40k
        _parsed = true;
349
1.40k
        return Status::OK();
350
1.40k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.4k
    Status init() override {
323
15.4k
        CHECK(!_parsed);
324
15.4k
        size_t unused;
325
15.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.4k
        if (_data.size !=
329
15.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
15.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.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
15.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
15.4k
        _parsed = true;
349
15.4k
        return Status::OK();
350
15.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
40.1k
    Status init() override {
323
40.1k
        CHECK(!_parsed);
324
40.1k
        size_t unused;
325
40.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
40.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
40.1k
        if (_data.size !=
329
40.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
40.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
40.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
40.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
40.1k
        _parsed = true;
349
40.1k
        return Status::OK();
350
40.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
29.5k
    Status init() override {
323
29.5k
        CHECK(!_parsed);
324
29.5k
        size_t unused;
325
29.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
29.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
29.5k
        if (_data.size !=
329
29.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
29.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
29.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
29.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
29.5k
        _parsed = true;
349
29.5k
        return Status::OK();
350
29.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.81k
    Status init() override {
323
1.81k
        CHECK(!_parsed);
324
1.81k
        size_t unused;
325
1.81k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.81k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.81k
        if (_data.size !=
329
1.81k
            _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.81k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.81k
                     _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.81k
        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.81k
        _parsed = true;
349
1.81k
        return Status::OK();
350
1.81k
    }
_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.15k
    Status init() override {
323
1.15k
        CHECK(!_parsed);
324
1.15k
        size_t unused;
325
1.15k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.15k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.15k
        if (_data.size !=
329
1.15k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.15k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.15k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.15k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.15k
        _parsed = true;
349
1.15k
        return Status::OK();
350
1.15k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
1.49M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.49M
        if (_num_elements == 0) [[unlikely]] {
361
4.57k
            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.57k
        }
366
367
1.49M
        DCHECK_LE(pos, _num_elements);
368
1.49M
        _cur_index = pos;
369
1.49M
        return Status::OK();
370
1.49M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
599k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
599k
        if (_num_elements == 0) [[unlikely]] {
361
1.94k
            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.94k
        }
366
367
599k
        DCHECK_LE(pos, _num_elements);
368
599k
        _cur_index = pos;
369
599k
        return Status::OK();
370
599k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
104k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
104k
        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
104k
        DCHECK_LE(pos, _num_elements);
368
104k
        _cur_index = pos;
369
104k
        return Status::OK();
370
104k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
18.0k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
18.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
18.0k
        DCHECK_LE(pos, _num_elements);
368
18.0k
        _cur_index = pos;
369
18.0k
        return Status::OK();
370
18.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
207k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
207k
        if (_num_elements == 0) [[unlikely]] {
361
933
            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
933
        }
366
367
207k
        DCHECK_LE(pos, _num_elements);
368
207k
        _cur_index = pos;
369
207k
        return Status::OK();
370
207k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
11.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
11.5k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
11.5k
        DCHECK_LE(pos, _num_elements);
368
11.5k
        _cur_index = pos;
369
11.5k
        return Status::OK();
370
11.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.7k
    Status seek_to_position_in_page(size_t pos) override {
359
12.7k
        DCHECK(_parsed) << "Must call init()";
360
12.7k
        if (_num_elements == 0) [[unlikely]] {
361
6
            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
6
        }
366
367
12.7k
        DCHECK_LE(pos, _num_elements);
368
12.7k
        _cur_index = pos;
369
12.7k
        return Status::OK();
370
12.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.5k
    Status seek_to_position_in_page(size_t pos) override {
359
16.5k
        DCHECK(_parsed) << "Must call init()";
360
16.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
16.5k
        DCHECK_LE(pos, _num_elements);
368
16.5k
        _cur_index = pos;
369
16.5k
        return Status::OK();
370
16.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
11.4k
    Status seek_to_position_in_page(size_t pos) override {
359
11.4k
        DCHECK(_parsed) << "Must call init()";
360
11.4k
        if (_num_elements == 0) [[unlikely]] {
361
5
            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
5
        }
366
367
11.4k
        DCHECK_LE(pos, _num_elements);
368
11.4k
        _cur_index = pos;
369
11.4k
        return Status::OK();
370
11.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
19.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
19.5k
        if (_num_elements == 0) [[unlikely]] {
361
4
            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
        }
366
367
19.5k
        DCHECK_LE(pos, _num_elements);
368
19.5k
        _cur_index = pos;
369
19.5k
        return Status::OK();
370
19.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
392k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
392k
        if (_num_elements == 0) [[unlikely]] {
361
777
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
777
        }
366
367
392k
        DCHECK_LE(pos, _num_elements);
368
392k
        _cur_index = pos;
369
392k
        return Status::OK();
370
392k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
52.6k
    Status seek_to_position_in_page(size_t pos) override {
359
52.6k
        DCHECK(_parsed) << "Must call init()";
360
52.6k
        if (_num_elements == 0) [[unlikely]] {
361
15
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
15
        }
366
367
52.6k
        DCHECK_LE(pos, _num_elements);
368
52.6k
        _cur_index = pos;
369
52.6k
        return Status::OK();
370
52.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.56k
    Status seek_to_position_in_page(size_t pos) override {
359
6.56k
        DCHECK(_parsed) << "Must call init()";
360
6.56k
        if (_num_elements == 0) [[unlikely]] {
361
16
            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
16
        }
366
367
6.56k
        DCHECK_LE(pos, _num_elements);
368
6.56k
        _cur_index = pos;
369
6.56k
        return Status::OK();
370
6.56k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.67k
    Status seek_to_position_in_page(size_t pos) override {
359
6.67k
        DCHECK(_parsed) << "Must call init()";
360
6.67k
        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.67k
        DCHECK_LE(pos, _num_elements);
368
6.67k
        _cur_index = pos;
369
6.67k
        return Status::OK();
370
6.67k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
138
    Status seek_to_position_in_page(size_t pos) override {
359
138
        DCHECK(_parsed) << "Must call init()";
360
138
        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
138
        DCHECK_LE(pos, _num_elements);
368
138
        _cur_index = pos;
369
138
        return Status::OK();
370
138
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
776
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
776
        if (_num_elements == 0) [[unlikely]] {
361
30
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
30
        }
366
367
776
        DCHECK_LE(pos, _num_elements);
368
776
        _cur_index = pos;
369
776
        return Status::OK();
370
776
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
15.6k
    Status seek_to_position_in_page(size_t pos) override {
359
15.6k
        DCHECK(_parsed) << "Must call init()";
360
15.6k
        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
15.6k
        DCHECK_LE(pos, _num_elements);
368
15.6k
        _cur_index = pos;
369
15.6k
        return Status::OK();
370
15.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.4k
    Status seek_to_position_in_page(size_t pos) override {
359
12.4k
        DCHECK(_parsed) << "Must call init()";
360
12.4k
        if (_num_elements == 0) [[unlikely]] {
361
10
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
10
        }
366
367
12.4k
        DCHECK_LE(pos, _num_elements);
368
12.4k
        _cur_index = pos;
369
12.4k
        return Status::OK();
370
12.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.94k
    Status seek_to_position_in_page(size_t pos) override {
359
1.94k
        DCHECK(_parsed) << "Must call init()";
360
1.94k
        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.94k
        DCHECK_LE(pos, _num_elements);
368
1.94k
        _cur_index = pos;
369
1.94k
        return Status::OK();
370
1.94k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
68
    Status seek_to_position_in_page(size_t pos) override {
359
68
        DCHECK(_parsed) << "Must call init()";
360
68
        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
68
        DCHECK_LE(pos, _num_elements);
368
68
        _cur_index = pos;
369
68
        return Status::OK();
370
68
    }
_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.60M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.60M
        DCHECK(_parsed);
413
2.60M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.60M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.60M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.60M
        *n = max_fetch;
422
2.60M
        if constexpr (forward_index) {
423
1.99M
            _cur_index += max_fetch;
424
1.99M
        }
425
426
2.60M
        return Status::OK();
427
2.60M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
336k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
336k
        DCHECK(_parsed);
413
336k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
336k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
336k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
336k
        *n = max_fetch;
422
336k
        if constexpr (forward_index) {
423
336k
            _cur_index += max_fetch;
424
336k
        }
425
426
336k
        return Status::OK();
427
336k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
420k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
420k
        DCHECK(_parsed);
413
420k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
420k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
420k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
420k
        *n = max_fetch;
422
420k
        if constexpr (forward_index) {
423
420k
            _cur_index += max_fetch;
424
420k
        }
425
426
420k
        return Status::OK();
427
420k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
13.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
13.2k
        DCHECK(_parsed);
413
13.2k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
13.2k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
13.2k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
13.2k
        *n = max_fetch;
422
13.2k
        if constexpr (forward_index) {
423
13.2k
            _cur_index += max_fetch;
424
13.2k
        }
425
426
13.2k
        return Status::OK();
427
13.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
118k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
118k
        DCHECK(_parsed);
413
118k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
118k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
118k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
118k
        *n = max_fetch;
422
118k
        if constexpr (forward_index) {
423
118k
            _cur_index += max_fetch;
424
118k
        }
425
426
118k
        return Status::OK();
427
118k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
357k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
357k
        DCHECK(_parsed);
413
357k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
357k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
357k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
357k
        *n = max_fetch;
422
357k
        if constexpr (forward_index) {
423
357k
            _cur_index += max_fetch;
424
357k
        }
425
426
357k
        return Status::OK();
427
357k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
611k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
611k
        DCHECK(_parsed);
413
612k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
611k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
611k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
611k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
611k
        return Status::OK();
427
611k
    }
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
20.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
20.5k
        DCHECK(_parsed);
413
20.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
20.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
20.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
20.5k
        *n = max_fetch;
422
20.5k
        if constexpr (forward_index) {
423
20.5k
            _cur_index += max_fetch;
424
20.5k
        }
425
426
20.5k
        return Status::OK();
427
20.5k
    }
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.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.6k
        DCHECK(_parsed);
413
14.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.6k
        *n = max_fetch;
422
14.6k
        if constexpr (forward_index) {
423
14.6k
            _cur_index += max_fetch;
424
14.6k
        }
425
426
14.6k
        return Status::OK();
427
14.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
27.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
27.7k
        DCHECK(_parsed);
413
27.7k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
27.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
27.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
27.7k
        *n = max_fetch;
422
27.7k
        if constexpr (forward_index) {
423
27.7k
            _cur_index += max_fetch;
424
27.7k
        }
425
426
27.7k
        return Status::OK();
427
27.7k
    }
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
13.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
13.8k
        DCHECK(_parsed);
413
13.9k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
13.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
13.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
13.8k
        *n = max_fetch;
422
13.8k
        if constexpr (forward_index) {
423
13.8k
            _cur_index += max_fetch;
424
13.8k
        }
425
426
13.8k
        return Status::OK();
427
13.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
498k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
498k
        DCHECK(_parsed);
413
498k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
498k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
498k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
498k
        *n = max_fetch;
422
498k
        if constexpr (forward_index) {
423
498k
            _cur_index += max_fetch;
424
498k
        }
425
426
498k
        return Status::OK();
427
498k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
74.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
74.9k
        DCHECK(_parsed);
413
74.9k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
74.9k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
74.9k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
74.9k
        *n = max_fetch;
422
74.9k
        if constexpr (forward_index) {
423
74.9k
            _cur_index += max_fetch;
424
74.9k
        }
425
426
74.9k
        return Status::OK();
427
74.9k
    }
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.48k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.48k
        DCHECK(_parsed);
413
1.48k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.48k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.48k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.48k
        *n = max_fetch;
422
1.48k
        if constexpr (forward_index) {
423
1.48k
            _cur_index += max_fetch;
424
1.48k
        }
425
426
1.48k
        return Status::OK();
427
1.48k
    }
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.90k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.90k
        DCHECK(_parsed);
413
6.90k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.90k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.90k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.90k
        *n = max_fetch;
422
6.90k
        if constexpr (forward_index) {
423
6.90k
            _cur_index += max_fetch;
424
6.90k
        }
425
426
6.90k
        return Status::OK();
427
6.90k
    }
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.35k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.35k
        DCHECK(_parsed);
413
1.35k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.35k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.35k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.35k
        *n = max_fetch;
422
1.35k
        if constexpr (forward_index) {
423
1.35k
            _cur_index += max_fetch;
424
1.35k
        }
425
426
1.35k
        return Status::OK();
427
1.35k
    }
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.61k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.61k
        DCHECK(_parsed);
413
8.61k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.61k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.61k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.61k
        *n = max_fetch;
422
8.61k
        if constexpr (forward_index) {
423
8.61k
            _cur_index += max_fetch;
424
8.61k
        }
425
426
8.61k
        return Status::OK();
427
8.61k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
44.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
44.1k
        DCHECK(_parsed);
413
44.1k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
44.1k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
44.1k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
44.1k
        *n = max_fetch;
422
44.1k
        if constexpr (forward_index) {
423
44.1k
            _cur_index += max_fetch;
424
44.1k
        }
425
426
44.1k
        return Status::OK();
427
44.1k
    }
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.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
23.6k
        DCHECK(_parsed);
413
23.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
23.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
23.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
23.6k
        *n = max_fetch;
422
23.6k
        if constexpr (forward_index) {
423
23.6k
            _cur_index += max_fetch;
424
23.6k
        }
425
426
23.6k
        return Status::OK();
427
23.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.21k
        DCHECK(_parsed);
413
3.21k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.21k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.21k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.21k
        *n = max_fetch;
422
3.21k
        if constexpr (forward_index) {
423
3.21k
            _cur_index += max_fetch;
424
3.21k
        }
425
426
3.21k
        return Status::OK();
427
3.21k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
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
1.99M
    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
335k
    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
420k
    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
13.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
118k
    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
357k
    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
20.5k
    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.6k
    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
27.7k
    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
13.9k
    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
497k
    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
74.9k
    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.48k
    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.90k
    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.35k
    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.61k
    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
44.1k
    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.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.21k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
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.25k
    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
378k
                          MutableColumnPtr& dst) override {
433
378k
        DCHECK(_parsed);
434
378k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
378k
        auto total = *n;
440
378k
        auto read_count = 0;
441
378k
        _buffer.resize(total);
442
97.6M
        for (size_t i = 0; i < total; ++i) {
443
97.2M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
97.2M
            if (UNLIKELY(ord >= _num_elements)) {
445
10.5k
                break;
446
10.5k
            }
447
448
97.2M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
97.2M
        }
450
451
378k
        if (LIKELY(read_count > 0)) {
452
378k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
378k
        }
454
455
378k
        *n = read_count;
456
378k
        return Status::OK();
457
378k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
67.8k
                          MutableColumnPtr& dst) override {
433
67.8k
        DCHECK(_parsed);
434
67.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
67.8k
        auto total = *n;
440
67.8k
        auto read_count = 0;
441
67.8k
        _buffer.resize(total);
442
20.3M
        for (size_t i = 0; i < total; ++i) {
443
20.2M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
20.2M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.98k
                break;
446
1.98k
            }
447
448
20.2M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
20.2M
        }
450
451
67.8k
        if (LIKELY(read_count > 0)) {
452
67.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
67.8k
        }
454
455
67.8k
        *n = read_count;
456
67.8k
        return Status::OK();
457
67.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.8k
                          MutableColumnPtr& dst) override {
433
30.8k
        DCHECK(_parsed);
434
30.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.8k
        auto total = *n;
440
30.8k
        auto read_count = 0;
441
30.8k
        _buffer.resize(total);
442
3.40M
        for (size_t i = 0; i < total; ++i) {
443
3.37M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
3.37M
            if (UNLIKELY(ord >= _num_elements)) {
445
95
                break;
446
95
            }
447
448
3.37M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
3.37M
        }
450
451
30.8k
        if (LIKELY(read_count > 0)) {
452
30.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.8k
        }
454
455
30.8k
        *n = read_count;
456
30.8k
        return Status::OK();
457
30.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
8.52k
                          MutableColumnPtr& dst) override {
433
8.52k
        DCHECK(_parsed);
434
8.52k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8.52k
        auto total = *n;
440
8.52k
        auto read_count = 0;
441
8.52k
        _buffer.resize(total);
442
711k
        for (size_t i = 0; i < total; ++i) {
443
702k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
702k
            if (UNLIKELY(ord >= _num_elements)) {
445
14
                break;
446
14
            }
447
448
702k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
702k
        }
450
451
8.52k
        if (LIKELY(read_count > 0)) {
452
8.52k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8.52k
        }
454
455
8.52k
        *n = read_count;
456
8.52k
        return Status::OK();
457
8.52k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
74.7k
                          MutableColumnPtr& dst) override {
433
74.7k
        DCHECK(_parsed);
434
74.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
74.7k
        auto total = *n;
440
74.7k
        auto read_count = 0;
441
74.7k
        _buffer.resize(total);
442
21.1M
        for (size_t i = 0; i < total; ++i) {
443
21.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
21.0M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.58k
                break;
446
1.58k
            }
447
448
21.0M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
21.0M
        }
450
451
74.7k
        if (LIKELY(read_count > 0)) {
452
74.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
74.7k
        }
454
455
74.7k
        *n = read_count;
456
74.7k
        return Status::OK();
457
74.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
33.8k
                          MutableColumnPtr& dst) override {
433
33.8k
        DCHECK(_parsed);
434
33.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
33.8k
        auto total = *n;
440
33.8k
        auto read_count = 0;
441
33.8k
        _buffer.resize(total);
442
1.14M
        for (size_t i = 0; i < total; ++i) {
443
1.11M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.11M
            if (UNLIKELY(ord >= _num_elements)) {
445
242
                break;
446
242
            }
447
448
1.11M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.11M
        }
450
451
33.8k
        if (LIKELY(read_count > 0)) {
452
33.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
33.8k
        }
454
455
33.8k
        *n = read_count;
456
33.8k
        return Status::OK();
457
33.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.0k
                          MutableColumnPtr& dst) override {
433
10.0k
        DCHECK(_parsed);
434
10.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.0k
        auto total = *n;
440
10.0k
        auto read_count = 0;
441
10.0k
        _buffer.resize(total);
442
1.65M
        for (size_t i = 0; i < total; ++i) {
443
1.64M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.64M
            if (UNLIKELY(ord >= _num_elements)) {
445
268
                break;
446
268
            }
447
448
1.64M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.64M
        }
450
451
10.0k
        if (LIKELY(read_count > 0)) {
452
10.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.0k
        }
454
455
10.0k
        *n = read_count;
456
10.0k
        return Status::OK();
457
10.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.6k
                          MutableColumnPtr& dst) override {
433
10.6k
        DCHECK(_parsed);
434
10.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.6k
        auto total = *n;
440
10.6k
        auto read_count = 0;
441
10.6k
        _buffer.resize(total);
442
1.14M
        for (size_t i = 0; i < total; ++i) {
443
1.13M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.13M
            if (UNLIKELY(ord >= _num_elements)) {
445
29
                break;
446
29
            }
447
448
1.13M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.13M
        }
450
451
10.6k
        if (LIKELY(read_count > 0)) {
452
10.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.6k
        }
454
455
10.6k
        *n = read_count;
456
10.6k
        return Status::OK();
457
10.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
14.1k
                          MutableColumnPtr& dst) override {
433
14.1k
        DCHECK(_parsed);
434
14.1k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
14.1k
        auto total = *n;
440
14.1k
        auto read_count = 0;
441
14.1k
        _buffer.resize(total);
442
1.11M
        for (size_t i = 0; i < total; ++i) {
443
1.09M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.09M
            if (UNLIKELY(ord >= _num_elements)) {
445
124
                break;
446
124
            }
447
448
1.09M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.09M
        }
450
451
14.1k
        if (LIKELY(read_count > 0)) {
452
14.1k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
14.1k
        }
454
455
14.1k
        *n = read_count;
456
14.1k
        return Status::OK();
457
14.1k
    }
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.31k
                          MutableColumnPtr& dst) override {
433
2.31k
        DCHECK(_parsed);
434
2.31k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.31k
        auto total = *n;
440
2.31k
        auto read_count = 0;
441
2.31k
        _buffer.resize(total);
442
565k
        for (size_t i = 0; i < total; ++i) {
443
562k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
562k
            if (UNLIKELY(ord >= _num_elements)) {
445
15
                break;
446
15
            }
447
448
562k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
562k
        }
450
451
2.32k
        if (LIKELY(read_count > 0)) {
452
2.32k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.32k
        }
454
455
2.31k
        *n = read_count;
456
2.31k
        return Status::OK();
457
2.31k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.5k
                          MutableColumnPtr& dst) override {
433
30.5k
        DCHECK(_parsed);
434
30.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.5k
        auto total = *n;
440
30.5k
        auto read_count = 0;
441
30.5k
        _buffer.resize(total);
442
7.96M
        for (size_t i = 0; i < total; ++i) {
443
7.93M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.93M
            if (UNLIKELY(ord >= _num_elements)) {
445
591
                break;
446
591
            }
447
448
7.93M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.93M
        }
450
451
30.5k
        if (LIKELY(read_count > 0)) {
452
30.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.5k
        }
454
455
30.5k
        *n = read_count;
456
30.5k
        return Status::OK();
457
30.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
32.3k
                          MutableColumnPtr& dst) override {
433
32.3k
        DCHECK(_parsed);
434
32.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
32.3k
        auto total = *n;
440
32.3k
        auto read_count = 0;
441
32.3k
        _buffer.resize(total);
442
7.35M
        for (size_t i = 0; i < total; ++i) {
443
7.32M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.32M
            if (UNLIKELY(ord >= _num_elements)) {
445
89
                break;
446
89
            }
447
448
7.32M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.32M
        }
450
451
32.3k
        if (LIKELY(read_count > 0)) {
452
32.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
32.3k
        }
454
455
32.3k
        *n = read_count;
456
32.3k
        return Status::OK();
457
32.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.43k
                          MutableColumnPtr& dst) override {
433
2.43k
        DCHECK(_parsed);
434
2.43k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.43k
        auto total = *n;
440
2.43k
        auto read_count = 0;
441
2.43k
        _buffer.resize(total);
442
569k
        for (size_t i = 0; i < total; ++i) {
443
566k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
566k
            if (UNLIKELY(ord >= _num_elements)) {
445
74
                break;
446
74
            }
447
448
566k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
566k
        }
450
451
2.43k
        if (LIKELY(read_count > 0)) {
452
2.43k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.43k
        }
454
455
2.43k
        *n = read_count;
456
2.43k
        return Status::OK();
457
2.43k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.9k
                          MutableColumnPtr& dst) override {
433
11.9k
        DCHECK(_parsed);
434
11.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.9k
        auto total = *n;
440
11.9k
        auto read_count = 0;
441
11.9k
        _buffer.resize(total);
442
25.3k
        for (size_t i = 0; i < total; ++i) {
443
13.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.4k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.4k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.4k
        }
450
451
11.9k
        if (LIKELY(read_count > 0)) {
452
11.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.9k
        }
454
455
11.9k
        *n = read_count;
456
11.9k
        return Status::OK();
457
11.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
147
                          MutableColumnPtr& dst) override {
433
147
        DCHECK(_parsed);
434
147
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
147
        auto total = *n;
440
147
        auto read_count = 0;
441
147
        _buffer.resize(total);
442
302
        for (size_t i = 0; i < total; ++i) {
443
155
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
155
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
155
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
155
        }
450
451
148
        if (LIKELY(read_count > 0)) {
452
148
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
148
        }
454
455
147
        *n = read_count;
456
147
        return Status::OK();
457
147
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.56k
                          MutableColumnPtr& dst) override {
433
4.56k
        DCHECK(_parsed);
434
4.56k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.56k
        auto total = *n;
440
4.56k
        auto read_count = 0;
441
4.56k
        _buffer.resize(total);
442
19.0k
        for (size_t i = 0; i < total; ++i) {
443
14.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.4k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.4k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.4k
        }
450
451
4.56k
        if (LIKELY(read_count > 0)) {
452
4.56k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.56k
        }
454
455
4.56k
        *n = read_count;
456
4.56k
        return Status::OK();
457
4.56k
    }
_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
20.1M
        for (size_t i = 0; i < total; ++i) {
443
20.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
20.0M
            if (UNLIKELY(ord >= _num_elements)) {
445
4.98k
                break;
446
4.98k
            }
447
448
20.0M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
20.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
15.5k
                          MutableColumnPtr& dst) override {
433
15.5k
        DCHECK(_parsed);
434
15.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.5k
        auto total = *n;
440
15.5k
        auto read_count = 0;
441
15.5k
        _buffer.resize(total);
442
10.4M
        for (size_t i = 0; i < total; ++i) {
443
10.3M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
10.3M
            if (UNLIKELY(ord >= _num_elements)) {
445
432
                break;
446
432
            }
447
448
10.3M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.3M
        }
450
451
15.5k
        if (LIKELY(read_count > 0)) {
452
15.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.5k
        }
454
455
15.5k
        *n = read_count;
456
15.5k
        return Status::OK();
457
15.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
968
                          MutableColumnPtr& dst) override {
433
968
        DCHECK(_parsed);
434
968
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
968
        auto total = *n;
440
968
        auto read_count = 0;
441
968
        _buffer.resize(total);
442
2.78k
        for (size_t i = 0; i < total; ++i) {
443
1.82k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.82k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.82k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.82k
        }
450
451
968
        if (LIKELY(read_count > 0)) {
452
968
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
968
        }
454
455
968
        *n = read_count;
456
968
        return Status::OK();
457
968
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
478
                          MutableColumnPtr& dst) override {
433
478
        DCHECK(_parsed);
434
478
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
478
        auto total = *n;
440
478
        auto read_count = 0;
441
478
        _buffer.resize(total);
442
1.19k
        for (size_t i = 0; i < total; ++i) {
443
721
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
721
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
721
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
721
        }
450
451
478
        if (LIKELY(read_count > 0)) {
452
478
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
478
        }
454
455
478
        *n = read_count;
456
478
        return Status::OK();
457
478
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
410
                          MutableColumnPtr& dst) override {
433
410
        DCHECK(_parsed);
434
410
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
410
        auto total = *n;
440
410
        auto read_count = 0;
441
410
        _buffer.resize(total);
442
1.33k
        for (size_t i = 0; i < total; ++i) {
443
926
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
926
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
926
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
926
        }
450
451
413
        if (LIKELY(read_count > 0)) {
452
413
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
413
        }
454
455
410
        *n = read_count;
456
410
        return Status::OK();
457
410
    }
458
459
612k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
612k
        return next_batch<false>(n, dst);
461
612k
    }
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
612k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
612k
        return next_batch<false>(n, dst);
461
612k
    }
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
485k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
196k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
15.0k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
13.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
148k
    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
6.60k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
14.3k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
9.81k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
9.14k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
27.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
26.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
4.72k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
1.00k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
17
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.44k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
544
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
6.31k
    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
49
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
101
    size_t current_index() const override { return _cur_index; }
466
467
100M
    char* get_data(size_t index) const {
468
100M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
100M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
21.3M
    char* get_data(size_t index) const {
468
21.3M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21.3M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
3.79M
    char* get_data(size_t index) const {
468
3.79M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.79M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
716k
    char* get_data(size_t index) const {
468
716k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
716k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
21.1M
    char* get_data(size_t index) const {
468
21.1M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21.1M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
2.08M
    char* get_data(size_t index) const {
468
2.08M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
2.08M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
1.66M
    char* get_data(size_t index) const {
468
1.66M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.66M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.15M
    char* get_data(size_t index) const {
468
1.15M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.15M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
1.12M
    char* get_data(size_t index) const {
468
1.12M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.12M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
576k
    char* get_data(size_t index) const {
468
576k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
576k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
8.43M
    char* get_data(size_t index) const {
468
8.43M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
8.43M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
7.39M
    char* get_data(size_t index) const {
468
7.39M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.39M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
568k
    char* get_data(size_t index) const {
468
568k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
568k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
20.3k
    char* get_data(size_t index) const {
468
20.3k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
20.3k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.50k
    char* get_data(size_t index) const {
468
1.50k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.50k
    }
_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
20.1M
    char* get_data(size_t index) const {
468
20.1M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
20.1M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
10.4M
    char* get_data(size_t index) const {
468
10.4M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.4M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
5.03k
    char* get_data(size_t index) const {
468
5.03k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5.03k
    }
_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