Coverage Report

Created: 2026-04-01 13:22

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
790k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
386k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
42.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
8.31k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
108k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
72.6k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
10.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
12.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
19.5k
    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.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
44.4k
    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
190
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.72k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
16.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.15k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
784
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
700
    Status init() override { return reset(); }
97
98
148M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
147M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
43.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
13.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
329k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
73.2k
    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
10.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
12.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
21.7k
    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
109k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
86.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
338
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.83k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
95
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.27k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
28.9k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
24.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Line
Count
Source
98
1.37k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Line
Count
Source
98
28.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
5.63k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.52M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.52M
        return add_internal<false>(vals, count);
102
1.52M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
718k
    Status add(const uint8_t* vals, size_t* count) override {
101
718k
        return add_internal<false>(vals, count);
102
718k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
43.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
43.5k
        return add_internal<false>(vals, count);
102
43.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
13.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
13.2k
        return add_internal<false>(vals, count);
102
13.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
329k
    Status add(const uint8_t* vals, size_t* count) override {
101
329k
        return add_internal<false>(vals, count);
102
329k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
73.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
73.2k
        return add_internal<false>(vals, count);
102
73.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
10.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
10.6k
        return add_internal<false>(vals, count);
102
10.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
12.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
12.1k
        return add_internal<false>(vals, count);
102
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
21.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
21.7k
        return add_internal<false>(vals, count);
102
21.7k
    }
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
109k
    Status add(const uint8_t* vals, size_t* count) override {
101
109k
        return add_internal<false>(vals, count);
102
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
86.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
86.6k
        return add_internal<false>(vals, count);
102
86.6k
    }
_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.83k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.83k
        return add_internal<false>(vals, count);
102
6.83k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
95
    Status add(const uint8_t* vals, size_t* count) override {
101
95
        return add_internal<false>(vals, count);
102
95
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.27k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.27k
        return add_internal<false>(vals, count);
102
5.27k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
28.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
28.9k
        return add_internal<false>(vals, count);
102
28.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
24.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
24.8k
        return add_internal<false>(vals, count);
102
24.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
100
1.36k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.36k
        return add_internal<false>(vals, count);
102
1.36k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
100
28.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
28.2k
        return add_internal<false>(vals, count);
102
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
5.63k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.63k
        return add_internal<false>(vals, count);
102
5.63k
    }
103
104
148M
    Status single_add(const uint8_t* vals, size_t* count) {
105
148M
        return add_internal<true>(vals, count);
106
148M
    }
107
108
    template <bool single>
109
149M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
149M
        DCHECK(!_finished);
111
149M
        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
149M
        uint32_t to_add = cast_set<UInt32>(
127
149M
                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
149M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
149M
        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
149M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
148M
        _count += to_add;
135
148M
        _remain_element_capacity -= to_add;
136
148M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
148M
        *num_written = to_add;
139
148M
        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
146M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
146M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
146M
                        *reinterpret_cast<const uint32_t*>(vals);
150
146M
                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
146M
        }
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
148M
        return Status::OK();
160
149M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
718k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
718k
        DCHECK(!_finished);
111
718k
        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
718k
        uint32_t to_add = cast_set<UInt32>(
127
718k
                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
718k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
718k
        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
718k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
718k
        _count += to_add;
135
718k
        _remain_element_capacity -= to_add;
136
718k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
718k
        *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
718k
        memcpy(&_data[orig_size], vals, to_add_size);
159
718k
        return Status::OK();
160
718k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
148M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
148M
        DCHECK(!_finished);
111
148M
        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
148M
        uint32_t to_add = cast_set<UInt32>(
127
148M
                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
148M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
148M
        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
148M
        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
146M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
146M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
146M
                        *reinterpret_cast<const uint32_t*>(vals);
150
146M
                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
146M
        }
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
148M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
43.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
43.5k
        DCHECK(!_finished);
111
43.5k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
43.5k
        uint32_t to_add = cast_set<UInt32>(
127
43.5k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
43.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
43.5k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
43.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
43.5k
        _count += to_add;
135
43.5k
        _remain_element_capacity -= to_add;
136
43.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
43.5k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
43.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
43.5k
        return Status::OK();
160
43.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
13.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
13.2k
        DCHECK(!_finished);
111
13.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
13.2k
        uint32_t to_add = cast_set<UInt32>(
127
13.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
13.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
13.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
13.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
13.2k
        _count += to_add;
135
13.2k
        _remain_element_capacity -= to_add;
136
13.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
13.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
13.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
13.2k
        return Status::OK();
160
13.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
329k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
329k
        DCHECK(!_finished);
111
329k
        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
329k
        uint32_t to_add = cast_set<UInt32>(
127
329k
                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
329k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
329k
        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
329k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
329k
        _count += to_add;
135
329k
        _remain_element_capacity -= to_add;
136
329k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
329k
        *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
329k
        memcpy(&_data[orig_size], vals, to_add_size);
159
329k
        return Status::OK();
160
329k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
73.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
73.2k
        DCHECK(!_finished);
111
73.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
73.2k
        uint32_t to_add = cast_set<UInt32>(
127
73.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
73.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
73.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
73.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
73.2k
        _count += to_add;
135
73.2k
        _remain_element_capacity -= to_add;
136
73.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
73.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
73.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
73.2k
        return Status::OK();
160
73.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
10.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
10.6k
        DCHECK(!_finished);
111
10.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
10.6k
        uint32_t to_add = cast_set<UInt32>(
127
10.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
10.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
10.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
10.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
10.6k
        _count += to_add;
135
10.6k
        _remain_element_capacity -= to_add;
136
10.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
10.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
10.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
10.6k
        return Status::OK();
160
10.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
12.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
12.1k
        DCHECK(!_finished);
111
12.1k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
12.1k
        uint32_t to_add = cast_set<UInt32>(
127
12.1k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
12.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
12.1k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
12.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
12.1k
        _count += to_add;
135
12.1k
        _remain_element_capacity -= to_add;
136
12.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
12.1k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
12.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
12.1k
        return Status::OK();
160
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
21.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
21.7k
        DCHECK(!_finished);
111
21.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
21.7k
        uint32_t to_add = cast_set<UInt32>(
127
21.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
21.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
21.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
21.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
21.7k
        _count += to_add;
135
21.7k
        _remain_element_capacity -= to_add;
136
21.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
21.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
21.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
21.7k
        return Status::OK();
160
21.7k
    }
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
109k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
109k
        DCHECK(!_finished);
111
109k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
109k
        uint32_t to_add = cast_set<UInt32>(
127
109k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
109k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
109k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
109k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
109k
        _count += to_add;
135
109k
        _remain_element_capacity -= to_add;
136
109k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
109k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
109k
        memcpy(&_data[orig_size], vals, to_add_size);
159
109k
        return Status::OK();
160
109k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
86.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
86.6k
        DCHECK(!_finished);
111
86.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
86.6k
        uint32_t to_add = cast_set<UInt32>(
127
86.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
86.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
86.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
86.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
86.6k
        _count += to_add;
135
86.6k
        _remain_element_capacity -= to_add;
136
86.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
86.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
86.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
86.6k
        return Status::OK();
160
86.6k
    }
_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.83k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.83k
        DCHECK(!_finished);
111
6.83k
        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.83k
        uint32_t to_add = cast_set<UInt32>(
127
6.83k
                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.83k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.83k
        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.83k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.83k
        _count += to_add;
135
6.83k
        _remain_element_capacity -= to_add;
136
6.83k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.83k
        *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.83k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.83k
        return Status::OK();
160
6.83k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
95
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
95
        DCHECK(!_finished);
111
95
        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
95
        uint32_t to_add = cast_set<UInt32>(
127
95
                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
95
        int to_add_size = to_add * SIZE_OF_TYPE;
130
95
        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
95
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
95
        _count += to_add;
135
95
        _remain_element_capacity -= to_add;
136
95
        _raw_data_size += to_add_size;
137
        // return added number through count
138
95
        *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
95
        memcpy(&_data[orig_size], vals, to_add_size);
159
95
        return Status::OK();
160
95
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.27k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.27k
        DCHECK(!_finished);
111
5.27k
        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.27k
        uint32_t to_add = cast_set<UInt32>(
127
5.27k
                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.27k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.27k
        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.27k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.27k
        _count += to_add;
135
5.27k
        _remain_element_capacity -= to_add;
136
5.27k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.27k
        *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.27k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.27k
        return Status::OK();
160
5.27k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
28.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
28.9k
        DCHECK(!_finished);
111
28.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
28.9k
        uint32_t to_add = cast_set<UInt32>(
127
28.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
28.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
28.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
28.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
28.9k
        _count += to_add;
135
28.9k
        _remain_element_capacity -= to_add;
136
28.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
28.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
28.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
28.9k
        return Status::OK();
160
28.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
24.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
24.8k
        DCHECK(!_finished);
111
24.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
24.8k
        uint32_t to_add = cast_set<UInt32>(
127
24.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
24.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
24.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
24.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
24.8k
        _count += to_add;
135
24.8k
        _remain_element_capacity -= to_add;
136
24.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
24.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
24.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
24.8k
        return Status::OK();
160
24.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.36k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.36k
        DCHECK(!_finished);
111
1.36k
        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.36k
        uint32_t to_add = cast_set<UInt32>(
127
1.36k
                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.36k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.36k
        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.36k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.36k
        _count += to_add;
135
1.36k
        _remain_element_capacity -= to_add;
136
1.36k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.36k
        *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.36k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.36k
        return Status::OK();
160
1.36k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
28.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
28.2k
        DCHECK(!_finished);
111
28.2k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
28.2k
        uint32_t to_add = cast_set<UInt32>(
127
28.2k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
28.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
28.2k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
28.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
28.2k
        _count += to_add;
135
28.2k
        _remain_element_capacity -= to_add;
136
28.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
28.2k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
28.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
28.2k
        return Status::OK();
160
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.63k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.63k
        DCHECK(!_finished);
111
5.63k
        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.63k
        uint32_t to_add = cast_set<UInt32>(
127
5.63k
                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.63k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.63k
        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.63k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.63k
        _count += to_add;
135
5.63k
        _remain_element_capacity -= to_add;
136
5.63k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.63k
        *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.63k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.63k
        return Status::OK();
160
5.63k
    }
161
162
781k
    Status finish(OwnedSlice* slice) override {
163
781k
        if (_count > 0) {
164
735k
            _first_value = cell(0);
165
735k
            _last_value = cell(_count - 1);
166
735k
        }
167
781k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
781k
        return Status::OK();
169
781k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
371k
    Status finish(OwnedSlice* slice) override {
163
371k
        if (_count > 0) {
164
338k
            _first_value = cell(0);
165
338k
            _last_value = cell(_count - 1);
166
338k
        }
167
371k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
371k
        return Status::OK();
169
371k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
41.9k
    Status finish(OwnedSlice* slice) override {
163
41.9k
        if (_count > 0) {
164
41.4k
            _first_value = cell(0);
165
41.4k
            _last_value = cell(_count - 1);
166
41.4k
        }
167
41.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
41.9k
        return Status::OK();
169
41.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.98k
    Status finish(OwnedSlice* slice) override {
163
7.98k
        if (_count > 0) {
164
7.76k
            _first_value = cell(0);
165
7.76k
            _last_value = cell(_count - 1);
166
7.76k
        }
167
7.98k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.98k
        return Status::OK();
169
7.98k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
110k
    Status finish(OwnedSlice* slice) override {
163
110k
        if (_count > 0) {
164
108k
            _first_value = cell(0);
165
108k
            _last_value = cell(_count - 1);
166
108k
        }
167
110k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
110k
        return Status::OK();
169
110k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
72.3k
    Status finish(OwnedSlice* slice) override {
163
72.3k
        if (_count > 0) {
164
72.3k
            _first_value = cell(0);
165
72.3k
            _last_value = cell(_count - 1);
166
72.3k
        }
167
72.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
72.3k
        return Status::OK();
169
72.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.8k
    Status finish(OwnedSlice* slice) override {
163
10.8k
        if (_count > 0) {
164
10.4k
            _first_value = cell(0);
165
10.4k
            _last_value = cell(_count - 1);
166
10.4k
        }
167
10.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.8k
        return Status::OK();
169
10.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.5k
    Status finish(OwnedSlice* slice) override {
163
11.5k
        if (_count > 0) {
164
11.1k
            _first_value = cell(0);
165
11.1k
            _last_value = cell(_count - 1);
166
11.1k
        }
167
11.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.5k
        return Status::OK();
169
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.5k
    Status finish(OwnedSlice* slice) override {
163
19.5k
        if (_count > 0) {
164
19.1k
            _first_value = cell(0);
165
19.1k
            _last_value = cell(_count - 1);
166
19.1k
        }
167
19.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.5k
        return Status::OK();
169
19.5k
    }
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
37.3k
    Status finish(OwnedSlice* slice) override {
163
37.3k
        if (_count > 0) {
164
36.3k
            _first_value = cell(0);
165
36.3k
            _last_value = cell(_count - 1);
166
36.3k
        }
167
37.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
37.3k
        return Status::OK();
169
37.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
43.4k
    Status finish(OwnedSlice* slice) override {
163
43.4k
        if (_count > 0) {
164
41.9k
            _first_value = cell(0);
165
41.9k
            _last_value = cell(_count - 1);
166
41.9k
        }
167
43.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
43.4k
        return Status::OK();
169
43.4k
    }
_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.02k
    Status finish(OwnedSlice* slice) override {
163
7.02k
        if (_count > 0) {
164
6.83k
            _first_value = cell(0);
165
6.83k
            _last_value = cell(_count - 1);
166
6.83k
        }
167
7.02k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.03k
        return Status::OK();
169
7.02k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
103
    Status finish(OwnedSlice* slice) override {
163
103
        if (_count > 0) {
164
95
            _first_value = cell(0);
165
95
            _last_value = cell(_count - 1);
166
95
        }
167
103
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
103
        return Status::OK();
169
103
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.72k
    Status finish(OwnedSlice* slice) override {
163
9.72k
        if (_count > 0) {
164
4.77k
            _first_value = cell(0);
165
4.77k
            _last_value = cell(_count - 1);
166
4.77k
        }
167
9.72k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.72k
        return Status::OK();
169
9.72k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
18.9k
    Status finish(OwnedSlice* slice) override {
163
18.9k
        if (_count > 0) {
164
17.9k
            _first_value = cell(0);
165
17.9k
            _last_value = cell(_count - 1);
166
17.9k
        }
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
16.4k
    Status finish(OwnedSlice* slice) override {
163
16.4k
        if (_count > 0) {
164
15.9k
            _first_value = cell(0);
165
15.9k
            _last_value = cell(_count - 1);
166
15.9k
        }
167
16.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.4k
        return Status::OK();
169
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.06k
    Status finish(OwnedSlice* slice) override {
163
1.06k
        if (_count > 0) {
164
1.00k
            _first_value = cell(0);
165
1.00k
            _last_value = cell(_count - 1);
166
1.00k
        }
167
1.06k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.06k
        return Status::OK();
169
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
699
    Status finish(OwnedSlice* slice) override {
163
699
        if (_count > 0) {
164
649
            _first_value = cell(0);
165
649
            _last_value = cell(_count - 1);
166
649
        }
167
699
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
699
        return Status::OK();
169
699
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
621
    Status finish(OwnedSlice* slice) override {
163
621
        if (_count > 0) {
164
586
            _first_value = cell(0);
165
586
            _last_value = cell(_count - 1);
166
586
        }
167
621
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
621
        return Status::OK();
169
621
    }
170
171
1.89M
    Status reset() override {
172
1.89M
        RETURN_IF_CATCH_EXCEPTION({
173
1.89M
            size_t block_size = _options.data_page_size;
174
1.89M
            _count = 0;
175
1.89M
            _raw_data_size = 0;
176
1.89M
            _data.clear();
177
1.89M
            _data.reserve(block_size);
178
1.89M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.89M
                    << "buffer must be naturally-aligned";
180
1.89M
            _buffer.clear();
181
1.89M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.89M
            _finished = false;
183
1.89M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.89M
        });
185
1.89M
        return Status::OK();
186
1.89M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.07M
    Status reset() override {
172
1.07M
        RETURN_IF_CATCH_EXCEPTION({
173
1.07M
            size_t block_size = _options.data_page_size;
174
1.07M
            _count = 0;
175
1.07M
            _raw_data_size = 0;
176
1.07M
            _data.clear();
177
1.07M
            _data.reserve(block_size);
178
1.07M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.07M
                    << "buffer must be naturally-aligned";
180
1.07M
            _buffer.clear();
181
1.07M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.07M
            _finished = false;
183
1.07M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.07M
        });
185
1.08M
        return Status::OK();
186
1.07M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
84.3k
    Status reset() override {
172
84.3k
        RETURN_IF_CATCH_EXCEPTION({
173
84.3k
            size_t block_size = _options.data_page_size;
174
84.3k
            _count = 0;
175
84.3k
            _raw_data_size = 0;
176
84.3k
            _data.clear();
177
84.3k
            _data.reserve(block_size);
178
84.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
84.3k
                    << "buffer must be naturally-aligned";
180
84.3k
            _buffer.clear();
181
84.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
84.3k
            _finished = false;
183
84.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
84.3k
        });
185
84.3k
        return Status::OK();
186
84.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
16.2k
    Status reset() override {
172
16.2k
        RETURN_IF_CATCH_EXCEPTION({
173
16.2k
            size_t block_size = _options.data_page_size;
174
16.2k
            _count = 0;
175
16.2k
            _raw_data_size = 0;
176
16.2k
            _data.clear();
177
16.2k
            _data.reserve(block_size);
178
16.2k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
16.2k
                    << "buffer must be naturally-aligned";
180
16.2k
            _buffer.clear();
181
16.2k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
16.2k
            _finished = false;
183
16.2k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
16.2k
        });
185
16.3k
        return Status::OK();
186
16.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
218k
    Status reset() override {
172
218k
        RETURN_IF_CATCH_EXCEPTION({
173
218k
            size_t block_size = _options.data_page_size;
174
218k
            _count = 0;
175
218k
            _raw_data_size = 0;
176
218k
            _data.clear();
177
218k
            _data.reserve(block_size);
178
218k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
218k
                    << "buffer must be naturally-aligned";
180
218k
            _buffer.clear();
181
218k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
218k
            _finished = false;
183
218k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
218k
        });
185
218k
        return Status::OK();
186
218k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
144k
    Status reset() override {
172
144k
        RETURN_IF_CATCH_EXCEPTION({
173
144k
            size_t block_size = _options.data_page_size;
174
144k
            _count = 0;
175
144k
            _raw_data_size = 0;
176
144k
            _data.clear();
177
144k
            _data.reserve(block_size);
178
144k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
144k
                    << "buffer must be naturally-aligned";
180
144k
            _buffer.clear();
181
144k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
144k
            _finished = false;
183
144k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
144k
        });
185
145k
        return Status::OK();
186
144k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
21.6k
    Status reset() override {
172
21.6k
        RETURN_IF_CATCH_EXCEPTION({
173
21.6k
            size_t block_size = _options.data_page_size;
174
21.6k
            _count = 0;
175
21.6k
            _raw_data_size = 0;
176
21.6k
            _data.clear();
177
21.6k
            _data.reserve(block_size);
178
21.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
21.6k
                    << "buffer must be naturally-aligned";
180
21.6k
            _buffer.clear();
181
21.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
21.6k
            _finished = false;
183
21.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
21.6k
        });
185
21.6k
        return Status::OK();
186
21.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
23.9k
    Status reset() override {
172
23.9k
        RETURN_IF_CATCH_EXCEPTION({
173
23.9k
            size_t block_size = _options.data_page_size;
174
23.9k
            _count = 0;
175
23.9k
            _raw_data_size = 0;
176
23.9k
            _data.clear();
177
23.9k
            _data.reserve(block_size);
178
23.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
23.9k
                    << "buffer must be naturally-aligned";
180
23.9k
            _buffer.clear();
181
23.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
23.9k
            _finished = false;
183
23.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
23.9k
        });
185
23.9k
        return Status::OK();
186
23.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
39.1k
    Status reset() override {
172
39.1k
        RETURN_IF_CATCH_EXCEPTION({
173
39.1k
            size_t block_size = _options.data_page_size;
174
39.1k
            _count = 0;
175
39.1k
            _raw_data_size = 0;
176
39.1k
            _data.clear();
177
39.1k
            _data.reserve(block_size);
178
39.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
39.1k
                    << "buffer must be naturally-aligned";
180
39.1k
            _buffer.clear();
181
39.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
39.1k
            _finished = false;
183
39.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
39.1k
        });
185
39.1k
        return Status::OK();
186
39.1k
    }
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
74.1k
    Status reset() override {
172
74.1k
        RETURN_IF_CATCH_EXCEPTION({
173
74.1k
            size_t block_size = _options.data_page_size;
174
74.1k
            _count = 0;
175
74.1k
            _raw_data_size = 0;
176
74.1k
            _data.clear();
177
74.1k
            _data.reserve(block_size);
178
74.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
74.1k
                    << "buffer must be naturally-aligned";
180
74.1k
            _buffer.clear();
181
74.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
74.1k
            _finished = false;
183
74.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
74.1k
        });
185
74.2k
        return Status::OK();
186
74.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
87.8k
    Status reset() override {
172
87.8k
        RETURN_IF_CATCH_EXCEPTION({
173
87.8k
            size_t block_size = _options.data_page_size;
174
87.8k
            _count = 0;
175
87.8k
            _raw_data_size = 0;
176
87.8k
            _data.clear();
177
87.8k
            _data.reserve(block_size);
178
87.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
87.8k
                    << "buffer must be naturally-aligned";
180
87.8k
            _buffer.clear();
181
87.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
87.8k
            _finished = false;
183
87.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
87.8k
        });
185
87.9k
        return Status::OK();
186
87.8k
    }
_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
13.9k
    Status reset() override {
172
13.9k
        RETURN_IF_CATCH_EXCEPTION({
173
13.9k
            size_t block_size = _options.data_page_size;
174
13.9k
            _count = 0;
175
13.9k
            _raw_data_size = 0;
176
13.9k
            _data.clear();
177
13.9k
            _data.reserve(block_size);
178
13.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
13.9k
                    << "buffer must be naturally-aligned";
180
13.9k
            _buffer.clear();
181
13.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
13.9k
            _finished = false;
183
13.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
13.9k
        });
185
14.0k
        return Status::OK();
186
13.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
293
    Status reset() override {
172
293
        RETURN_IF_CATCH_EXCEPTION({
173
293
            size_t block_size = _options.data_page_size;
174
293
            _count = 0;
175
293
            _raw_data_size = 0;
176
293
            _data.clear();
177
293
            _data.reserve(block_size);
178
293
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
293
                    << "buffer must be naturally-aligned";
180
293
            _buffer.clear();
181
293
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
293
            _finished = false;
183
293
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
293
        });
185
293
        return Status::OK();
186
293
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.4k
    Status reset() override {
172
19.4k
        RETURN_IF_CATCH_EXCEPTION({
173
19.4k
            size_t block_size = _options.data_page_size;
174
19.4k
            _count = 0;
175
19.4k
            _raw_data_size = 0;
176
19.4k
            _data.clear();
177
19.4k
            _data.reserve(block_size);
178
19.4k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.4k
                    << "buffer must be naturally-aligned";
180
19.4k
            _buffer.clear();
181
19.4k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.4k
            _finished = false;
183
19.4k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.4k
        });
185
19.4k
        return Status::OK();
186
19.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.2k
    Status reset() override {
172
31.2k
        RETURN_IF_CATCH_EXCEPTION({
173
31.2k
            size_t block_size = _options.data_page_size;
174
31.2k
            _count = 0;
175
31.2k
            _raw_data_size = 0;
176
31.2k
            _data.clear();
177
31.2k
            _data.reserve(block_size);
178
31.2k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.2k
                    << "buffer must be naturally-aligned";
180
31.2k
            _buffer.clear();
181
31.2k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.2k
            _finished = false;
183
31.2k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.2k
        });
185
31.2k
        return Status::OK();
186
31.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
32.7k
    Status reset() override {
172
32.7k
        RETURN_IF_CATCH_EXCEPTION({
173
32.7k
            size_t block_size = _options.data_page_size;
174
32.7k
            _count = 0;
175
32.7k
            _raw_data_size = 0;
176
32.7k
            _data.clear();
177
32.7k
            _data.reserve(block_size);
178
32.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
32.7k
                    << "buffer must be naturally-aligned";
180
32.7k
            _buffer.clear();
181
32.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
32.7k
            _finished = false;
183
32.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
32.7k
        });
185
32.7k
        return Status::OK();
186
32.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.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.21k
        return Status::OK();
186
2.21k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.48k
    Status reset() override {
172
1.48k
        RETURN_IF_CATCH_EXCEPTION({
173
1.48k
            size_t block_size = _options.data_page_size;
174
1.48k
            _count = 0;
175
1.48k
            _raw_data_size = 0;
176
1.48k
            _data.clear();
177
1.48k
            _data.reserve(block_size);
178
1.48k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.48k
                    << "buffer must be naturally-aligned";
180
1.48k
            _buffer.clear();
181
1.48k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.48k
            _finished = false;
183
1.48k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.48k
        });
185
1.48k
        return Status::OK();
186
1.48k
    }
_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
1.51M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
1.51M
    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
44.4k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
22.5k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
4.73k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
1.06k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
5.13k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
2.03k
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
1.45k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
783
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
799
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv
Line
Count
Source
190
1.69k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.54k
    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
153
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
315
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.17k
    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
476k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
65.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
41.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
7.98k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
110k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
72.3k
    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
10.8k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
11.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
19.5k
    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
37.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
43.4k
    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.02k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
103
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.72k
    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
16.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.06k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
699
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
621
    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
790k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
386k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
42.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
8.31k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
108k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
72.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
10.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
19.5k
            : _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.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
44.4k
            : _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.95k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
190
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.72k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
16.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.15k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
784
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
700
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
781k
    OwnedSlice _finish(int final_size_of_type) {
216
781k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
781k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
781k
        int padding_elems = num_elems_after_padding - _count;
221
781k
        int padding_bytes = padding_elems * final_size_of_type;
222
22.9M
        for (int i = 0; i < padding_bytes; i++) {
223
22.1M
            _data.push_back(0);
224
22.1M
        }
225
226
        // reserve enough place for compression
227
781k
        _buffer.resize(
228
781k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
781k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
781k
        int64_t bytes =
232
781k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
781k
                                         num_elems_after_padding, final_size_of_type, 0);
234
781k
        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
781k
        encode_fixed32_le(&_buffer[0], _count);
244
781k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
781k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
781k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
781k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
781k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
781k
        return _buffer.build();
251
781k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
371k
    OwnedSlice _finish(int final_size_of_type) {
216
371k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
371k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
371k
        int padding_elems = num_elems_after_padding - _count;
221
371k
        int padding_bytes = padding_elems * final_size_of_type;
222
7.13M
        for (int i = 0; i < padding_bytes; i++) {
223
6.75M
            _data.push_back(0);
224
6.75M
        }
225
226
        // reserve enough place for compression
227
371k
        _buffer.resize(
228
371k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
371k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
371k
        int64_t bytes =
232
371k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
371k
                                         num_elems_after_padding, final_size_of_type, 0);
234
371k
        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
371k
        encode_fixed32_le(&_buffer[0], _count);
244
371k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
371k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
371k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
371k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
371k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
371k
        return _buffer.build();
251
371k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
41.9k
    OwnedSlice _finish(int final_size_of_type) {
216
41.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
41.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
41.9k
        int padding_elems = num_elems_after_padding - _count;
221
41.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
260k
        for (int i = 0; i < padding_bytes; i++) {
223
218k
            _data.push_back(0);
224
218k
        }
225
226
        // reserve enough place for compression
227
41.9k
        _buffer.resize(
228
41.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
41.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
41.9k
        int64_t bytes =
232
41.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
41.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
41.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
41.9k
        encode_fixed32_le(&_buffer[0], _count);
244
41.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
41.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
41.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
41.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
41.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
41.9k
        return _buffer.build();
251
41.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
7.98k
    OwnedSlice _finish(int final_size_of_type) {
216
7.98k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.98k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.98k
        int padding_elems = num_elems_after_padding - _count;
221
7.98k
        int padding_bytes = padding_elems * final_size_of_type;
222
79.8k
        for (int i = 0; i < padding_bytes; i++) {
223
71.8k
            _data.push_back(0);
224
71.8k
        }
225
226
        // reserve enough place for compression
227
7.98k
        _buffer.resize(
228
7.98k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.98k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.98k
        int64_t bytes =
232
7.98k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.98k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.98k
        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.98k
        encode_fixed32_le(&_buffer[0], _count);
244
7.98k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.98k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.98k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.98k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.98k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.98k
        return _buffer.build();
251
7.98k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
110k
    OwnedSlice _finish(int final_size_of_type) {
216
110k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
110k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
110k
        int padding_elems = num_elems_after_padding - _count;
221
110k
        int padding_bytes = padding_elems * final_size_of_type;
222
5.21M
        for (int i = 0; i < padding_bytes; i++) {
223
5.10M
            _data.push_back(0);
224
5.10M
        }
225
226
        // reserve enough place for compression
227
110k
        _buffer.resize(
228
110k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
110k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
110k
        int64_t bytes =
232
110k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
110k
                                         num_elems_after_padding, final_size_of_type, 0);
234
110k
        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
110k
        encode_fixed32_le(&_buffer[0], _count);
244
110k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
110k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
110k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
110k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
110k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
110k
        return _buffer.build();
251
110k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
72.3k
    OwnedSlice _finish(int final_size_of_type) {
216
72.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
72.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
72.3k
        int padding_elems = num_elems_after_padding - _count;
221
72.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.46M
        for (int i = 0; i < padding_bytes; i++) {
223
3.39M
            _data.push_back(0);
224
3.39M
        }
225
226
        // reserve enough place for compression
227
72.3k
        _buffer.resize(
228
72.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
72.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
72.3k
        int64_t bytes =
232
72.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
72.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
72.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
72.3k
        encode_fixed32_le(&_buffer[0], _count);
244
72.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
72.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
72.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
72.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
72.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
72.3k
        return _buffer.build();
251
72.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
10.8k
    OwnedSlice _finish(int final_size_of_type) {
216
10.8k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.8k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.8k
        int padding_elems = num_elems_after_padding - _count;
221
10.8k
        int padding_bytes = padding_elems * final_size_of_type;
222
669k
        for (int i = 0; i < padding_bytes; i++) {
223
659k
            _data.push_back(0);
224
659k
        }
225
226
        // reserve enough place for compression
227
10.8k
        _buffer.resize(
228
10.8k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.8k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.8k
        int64_t bytes =
232
10.8k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.8k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.8k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
10.8k
        encode_fixed32_le(&_buffer[0], _count);
244
10.8k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.8k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.8k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.8k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.8k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.8k
        return _buffer.build();
251
10.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
11.5k
    OwnedSlice _finish(int final_size_of_type) {
216
11.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.5k
        int padding_elems = num_elems_after_padding - _count;
221
11.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
251k
        for (int i = 0; i < padding_bytes; i++) {
223
239k
            _data.push_back(0);
224
239k
        }
225
226
        // reserve enough place for compression
227
11.5k
        _buffer.resize(
228
11.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.5k
        int64_t bytes =
232
11.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.5k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.5k
        encode_fixed32_le(&_buffer[0], _count);
244
11.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.5k
        return _buffer.build();
251
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
19.5k
    OwnedSlice _finish(int final_size_of_type) {
216
19.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.5k
        int padding_elems = num_elems_after_padding - _count;
221
19.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
879k
        for (int i = 0; i < padding_bytes; i++) {
223
860k
            _data.push_back(0);
224
860k
        }
225
226
        // reserve enough place for compression
227
19.5k
        _buffer.resize(
228
19.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.5k
        int64_t bytes =
232
19.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.5k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.5k
        encode_fixed32_le(&_buffer[0], _count);
244
19.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.5k
        return _buffer.build();
251
19.5k
    }
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
37.3k
    OwnedSlice _finish(int final_size_of_type) {
216
37.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
37.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
37.3k
        int padding_elems = num_elems_after_padding - _count;
221
37.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
802k
        for (int i = 0; i < padding_bytes; i++) {
223
764k
            _data.push_back(0);
224
764k
        }
225
226
        // reserve enough place for compression
227
37.3k
        _buffer.resize(
228
37.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
37.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
37.3k
        int64_t bytes =
232
37.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
37.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
37.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
37.3k
        encode_fixed32_le(&_buffer[0], _count);
244
37.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
37.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
37.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
37.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
37.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
37.3k
        return _buffer.build();
251
37.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
43.4k
    OwnedSlice _finish(int final_size_of_type) {
216
43.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
43.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
43.4k
        int padding_elems = num_elems_after_padding - _count;
221
43.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.84M
        for (int i = 0; i < padding_bytes; i++) {
223
1.79M
            _data.push_back(0);
224
1.79M
        }
225
226
        // reserve enough place for compression
227
43.4k
        _buffer.resize(
228
43.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
43.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
43.4k
        int64_t bytes =
232
43.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
43.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
43.4k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
43.4k
        encode_fixed32_le(&_buffer[0], _count);
244
43.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
43.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
43.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
43.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
43.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
43.4k
        return _buffer.build();
251
43.4k
    }
_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.99k
        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.02k
    OwnedSlice _finish(int final_size_of_type) {
216
7.02k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.02k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.02k
        int padding_elems = num_elems_after_padding - _count;
221
7.02k
        int padding_bytes = padding_elems * final_size_of_type;
222
367k
        for (int i = 0; i < padding_bytes; i++) {
223
360k
            _data.push_back(0);
224
360k
        }
225
226
        // reserve enough place for compression
227
7.02k
        _buffer.resize(
228
7.02k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.02k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.02k
        int64_t bytes =
232
7.02k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.02k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.02k
        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.02k
        encode_fixed32_le(&_buffer[0], _count);
244
7.02k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.02k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.02k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.02k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.02k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.02k
        return _buffer.build();
251
7.02k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
103
    OwnedSlice _finish(int final_size_of_type) {
216
103
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
103
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
103
        int padding_elems = num_elems_after_padding - _count;
221
103
        int padding_bytes = padding_elems * final_size_of_type;
222
6.48k
        for (int i = 0; i < padding_bytes; i++) {
223
6.38k
            _data.push_back(0);
224
6.38k
        }
225
226
        // reserve enough place for compression
227
103
        _buffer.resize(
228
103
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
103
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
103
        int64_t bytes =
232
103
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
103
                                         num_elems_after_padding, final_size_of_type, 0);
234
103
        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
103
        encode_fixed32_le(&_buffer[0], _count);
244
103
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
103
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
103
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
103
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
103
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
103
        return _buffer.build();
251
103
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.72k
    OwnedSlice _finish(int final_size_of_type) {
216
9.72k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.72k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.72k
        int padding_elems = num_elems_after_padding - _count;
221
9.72k
        int padding_bytes = padding_elems * final_size_of_type;
222
118k
        for (int i = 0; i < padding_bytes; i++) {
223
109k
            _data.push_back(0);
224
109k
        }
225
226
        // reserve enough place for compression
227
9.72k
        _buffer.resize(
228
9.72k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.72k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.72k
        int64_t bytes =
232
9.72k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.72k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.72k
        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.72k
        encode_fixed32_le(&_buffer[0], _count);
244
9.72k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.72k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.72k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.72k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.72k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.72k
        return _buffer.build();
251
9.72k
    }
_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
497k
        for (int i = 0; i < padding_bytes; i++) {
223
478k
            _data.push_back(0);
224
478k
        }
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
16.4k
    OwnedSlice _finish(int final_size_of_type) {
216
16.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.4k
        int padding_elems = num_elems_after_padding - _count;
221
16.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.13M
        for (int i = 0; i < padding_bytes; i++) {
223
1.11M
            _data.push_back(0);
224
1.11M
        }
225
226
        // reserve enough place for compression
227
16.4k
        _buffer.resize(
228
16.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.4k
        int64_t bytes =
232
16.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.4k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
16.4k
        encode_fixed32_le(&_buffer[0], _count);
244
16.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.4k
        return _buffer.build();
251
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
162k
        for (int i = 0; i < padding_bytes; i++) {
223
160k
            _data.push_back(0);
224
160k
        }
225
226
        // reserve enough place for compression
227
1.06k
        _buffer.resize(
228
1.06k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.06k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.06k
        int64_t bytes =
232
1.06k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.06k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.06k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
1.06k
        encode_fixed32_le(&_buffer[0], _count);
244
1.06k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.06k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.06k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.06k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.06k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.06k
        return _buffer.build();
251
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
699
    OwnedSlice _finish(int final_size_of_type) {
216
699
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
699
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
699
        int padding_elems = num_elems_after_padding - _count;
221
699
        int padding_bytes = padding_elems * final_size_of_type;
222
14.6k
        for (int i = 0; i < padding_bytes; i++) {
223
13.9k
            _data.push_back(0);
224
13.9k
        }
225
226
        // reserve enough place for compression
227
699
        _buffer.resize(
228
699
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
699
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
699
        int64_t bytes =
232
699
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
699
                                         num_elems_after_padding, final_size_of_type, 0);
234
699
        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
699
        encode_fixed32_le(&_buffer[0], _count);
244
699
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
699
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
699
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
699
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
699
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
699
        return _buffer.build();
251
699
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
621
    OwnedSlice _finish(int final_size_of_type) {
216
621
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
621
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
621
        int padding_elems = num_elems_after_padding - _count;
221
621
        int padding_bytes = padding_elems * final_size_of_type;
222
49.8k
        for (int i = 0; i < padding_bytes; i++) {
223
49.2k
            _data.push_back(0);
224
49.2k
        }
225
226
        // reserve enough place for compression
227
621
        _buffer.resize(
228
621
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
621
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
621
        int64_t bytes =
232
621
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
621
                                         num_elems_after_padding, final_size_of_type, 0);
234
621
        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
621
        encode_fixed32_le(&_buffer[0], _count);
244
621
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
621
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
621
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
621
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
621
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
621
        return _buffer.build();
251
621
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.47M
    CppType cell(int idx) const {
256
1.47M
        DCHECK_GE(idx, 0);
257
1.47M
        CppType ret;
258
1.47M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.47M
        return ret;
260
1.47M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
676k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
676k
        CppType ret;
258
676k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
676k
        return ret;
260
676k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
82.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
82.8k
        CppType ret;
258
82.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
82.8k
        return ret;
260
82.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
15.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
15.5k
        CppType ret;
258
15.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
15.5k
        return ret;
260
15.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
217k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
217k
        CppType ret;
258
217k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
217k
        return ret;
260
217k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
144k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
144k
        CppType ret;
258
144k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
144k
        return ret;
260
144k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
20.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
20.8k
        CppType ret;
258
20.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
20.8k
        return ret;
260
20.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
22.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
22.2k
        CppType ret;
258
22.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
22.2k
        return ret;
260
22.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
38.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
38.2k
        CppType ret;
258
38.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
38.2k
        return ret;
260
38.2k
    }
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.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
72.7k
        CppType ret;
258
72.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
72.7k
        return ret;
260
72.7k
    }
_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.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.6k
        CppType ret;
258
13.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.6k
        return ret;
260
13.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
190
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
190
        CppType ret;
258
190
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
190
        return ret;
260
190
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.54k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.54k
        CppType ret;
258
9.54k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.54k
        return ret;
260
9.54k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
35.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
35.9k
        CppType ret;
258
35.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
35.9k
        return ret;
260
35.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.8k
        CppType ret;
258
31.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.8k
        return ret;
260
31.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.01k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.01k
        CppType ret;
258
2.01k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.01k
        return ret;
260
2.01k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.29k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.29k
        CppType ret;
258
1.29k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.29k
        return ret;
260
1.29k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.17k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.17k
        CppType ret;
258
1.17k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.17k
        return ret;
260
1.17k
    }
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.38M
                                       int& size_of_element) {
277
2.38M
    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.38M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.38M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.38M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.38M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.38M
    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.38M
    switch (size_of_element) {
295
140k
    case 1:
296
177k
    case 2:
297
180k
    case 3:
298
1.64M
    case 4:
299
2.28M
    case 8:
300
2.29M
    case 12:
301
2.38M
    case 16:
302
2.39M
    case 32:
303
2.39M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.38M
    }
307
2.38M
    return Status::OK();
308
2.38M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.19M
            : _data(data),
315
1.19M
              _options(options),
316
1.19M
              _parsed(false),
317
1.19M
              _num_elements(0),
318
1.19M
              _num_element_after_padding(0),
319
1.19M
              _size_of_element(0),
320
1.19M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
637k
            : _data(data),
315
637k
              _options(options),
316
637k
              _parsed(false),
317
637k
              _num_elements(0),
318
637k
              _num_element_after_padding(0),
319
637k
              _size_of_element(0),
320
637k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
70.2k
            : _data(data),
315
70.2k
              _options(options),
316
70.2k
              _parsed(false),
317
70.2k
              _num_elements(0),
318
70.2k
              _num_element_after_padding(0),
319
70.2k
              _size_of_element(0),
320
70.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
18.4k
            : _data(data),
315
18.4k
              _options(options),
316
18.4k
              _parsed(false),
317
18.4k
              _num_elements(0),
318
18.4k
              _num_element_after_padding(0),
319
18.4k
              _size_of_element(0),
320
18.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
72.4k
            : _data(data),
315
72.4k
              _options(options),
316
72.4k
              _parsed(false),
317
72.4k
              _num_elements(0),
318
72.4k
              _num_element_after_padding(0),
319
72.4k
              _size_of_element(0),
320
72.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
94.4k
            : _data(data),
315
94.4k
              _options(options),
316
94.4k
              _parsed(false),
317
94.4k
              _num_elements(0),
318
94.4k
              _num_element_after_padding(0),
319
94.4k
              _size_of_element(0),
320
94.4k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
16.3k
            : _data(data),
315
16.3k
              _options(options),
316
16.3k
              _parsed(false),
317
16.3k
              _num_elements(0),
318
16.3k
              _num_element_after_padding(0),
319
16.3k
              _size_of_element(0),
320
16.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.8k
            : _data(data),
315
19.8k
              _options(options),
316
19.8k
              _parsed(false),
317
19.8k
              _num_elements(0),
318
19.8k
              _num_element_after_padding(0),
319
19.8k
              _size_of_element(0),
320
19.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.3k
            : _data(data),
315
30.3k
              _options(options),
316
30.3k
              _parsed(false),
317
30.3k
              _num_elements(0),
318
30.3k
              _num_element_after_padding(0),
319
30.3k
              _size_of_element(0),
320
30.3k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.57k
            : _data(data),
315
1.57k
              _options(options),
316
1.57k
              _parsed(false),
317
1.57k
              _num_elements(0),
318
1.57k
              _num_element_after_padding(0),
319
1.57k
              _size_of_element(0),
320
1.57k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
58.7k
            : _data(data),
315
58.7k
              _options(options),
316
58.7k
              _parsed(false),
317
58.7k
              _num_elements(0),
318
58.7k
              _num_element_after_padding(0),
319
58.7k
              _size_of_element(0),
320
58.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
67.6k
            : _data(data),
315
67.6k
              _options(options),
316
67.6k
              _parsed(false),
317
67.6k
              _num_elements(0),
318
67.6k
              _num_element_after_padding(0),
319
67.6k
              _size_of_element(0),
320
67.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.24k
            : _data(data),
315
2.24k
              _options(options),
316
2.24k
              _parsed(false),
317
2.24k
              _num_elements(0),
318
2.24k
              _num_element_after_padding(0),
319
2.24k
              _size_of_element(0),
320
2.24k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.8k
            : _data(data),
315
14.8k
              _options(options),
316
14.8k
              _parsed(false),
317
14.8k
              _num_elements(0),
318
14.8k
              _num_element_after_padding(0),
319
14.8k
              _size_of_element(0),
320
14.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.43k
            : _data(data),
315
1.43k
              _options(options),
316
1.43k
              _parsed(false),
317
1.43k
              _num_elements(0),
318
1.43k
              _num_element_after_padding(0),
319
1.43k
              _size_of_element(0),
320
1.43k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.1k
            : _data(data),
315
15.1k
              _options(options),
316
15.1k
              _parsed(false),
317
15.1k
              _num_elements(0),
318
15.1k
              _num_element_after_padding(0),
319
15.1k
              _size_of_element(0),
320
15.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
39.7k
            : _data(data),
315
39.7k
              _options(options),
316
39.7k
              _parsed(false),
317
39.7k
              _num_elements(0),
318
39.7k
              _num_element_after_padding(0),
319
39.7k
              _size_of_element(0),
320
39.7k
              _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.74k
            : _data(data),
315
1.74k
              _options(options),
316
1.74k
              _parsed(false),
317
1.74k
              _num_elements(0),
318
1.74k
              _num_element_after_padding(0),
319
1.74k
              _size_of_element(0),
320
1.74k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.18k
            : _data(data),
315
1.18k
              _options(options),
316
1.18k
              _parsed(false),
317
1.18k
              _num_elements(0),
318
1.18k
              _num_element_after_padding(0),
319
1.18k
              _size_of_element(0),
320
1.18k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.15k
            : _data(data),
315
1.15k
              _options(options),
316
1.15k
              _parsed(false),
317
1.15k
              _num_elements(0),
318
1.15k
              _num_element_after_padding(0),
319
1.15k
              _size_of_element(0),
320
1.15k
              _cur_index(0) {}
321
322
1.19M
    Status init() override {
323
1.19M
        CHECK(!_parsed);
324
1.19M
        size_t unused;
325
1.19M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.19M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.19M
        if (_data.size !=
329
1.19M
            _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.19M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.19M
                     _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.19M
        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.19M
        _parsed = true;
349
1.19M
        return Status::OK();
350
1.19M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
637k
    Status init() override {
323
637k
        CHECK(!_parsed);
324
637k
        size_t unused;
325
637k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
637k
                                                 _num_element_after_padding, _size_of_element));
327
328
637k
        if (_data.size !=
329
637k
            _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
637k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
637k
                     _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
637k
        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
637k
        _parsed = true;
349
637k
        return Status::OK();
350
637k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
70.1k
    Status init() override {
323
70.1k
        CHECK(!_parsed);
324
70.1k
        size_t unused;
325
70.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
70.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
70.1k
        if (_data.size !=
329
70.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
70.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
70.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
70.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
70.1k
        _parsed = true;
349
70.1k
        return Status::OK();
350
70.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
18.4k
    Status init() override {
323
18.4k
        CHECK(!_parsed);
324
18.4k
        size_t unused;
325
18.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
18.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
18.4k
        if (_data.size !=
329
18.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
18.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
18.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
18.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
18.4k
        _parsed = true;
349
18.4k
        return Status::OK();
350
18.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
72.4k
    Status init() override {
323
72.4k
        CHECK(!_parsed);
324
72.4k
        size_t unused;
325
72.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
72.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
72.4k
        if (_data.size !=
329
72.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
72.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
72.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
72.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
72.4k
        _parsed = true;
349
72.4k
        return Status::OK();
350
72.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
94.3k
    Status init() override {
323
94.3k
        CHECK(!_parsed);
324
94.3k
        size_t unused;
325
94.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
94.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
94.3k
        if (_data.size !=
329
94.3k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
94.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
94.3k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
94.3k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
94.3k
        _parsed = true;
349
94.3k
        return Status::OK();
350
94.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
16.3k
    Status init() override {
323
16.3k
        CHECK(!_parsed);
324
16.3k
        size_t unused;
325
16.3k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
16.3k
                                                 _num_element_after_padding, _size_of_element));
327
328
16.3k
        if (_data.size !=
329
16.3k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
16.3k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
16.3k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
16.3k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
16.3k
        _parsed = true;
349
16.3k
        return Status::OK();
350
16.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
19.8k
    Status init() override {
323
19.8k
        CHECK(!_parsed);
324
19.8k
        size_t unused;
325
19.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.8k
        if (_data.size !=
329
19.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
19.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.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
19.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
19.8k
        _parsed = true;
349
19.8k
        return Status::OK();
350
19.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
30.2k
    Status init() override {
323
30.2k
        CHECK(!_parsed);
324
30.2k
        size_t unused;
325
30.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.2k
        if (_data.size !=
329
30.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
30.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.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
30.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
30.2k
        _parsed = true;
349
30.2k
        return Status::OK();
350
30.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
1.57k
    Status init() override {
323
1.57k
        CHECK(!_parsed);
324
1.57k
        size_t unused;
325
1.57k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.57k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.57k
        if (_data.size !=
329
1.57k
            _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.57k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.57k
                     _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.57k
        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.57k
        _parsed = true;
349
1.57k
        return Status::OK();
350
1.57k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
58.6k
    Status init() override {
323
58.6k
        CHECK(!_parsed);
324
58.6k
        size_t unused;
325
58.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
58.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
58.6k
        if (_data.size !=
329
58.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
58.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
58.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
58.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
58.6k
        _parsed = true;
349
58.6k
        return Status::OK();
350
58.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
67.5k
    Status init() override {
323
67.5k
        CHECK(!_parsed);
324
67.5k
        size_t unused;
325
67.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
67.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
67.5k
        if (_data.size !=
329
67.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
67.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
67.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
67.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
67.5k
        _parsed = true;
349
67.5k
        return Status::OK();
350
67.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.24k
    Status init() override {
323
2.24k
        CHECK(!_parsed);
324
2.24k
        size_t unused;
325
2.24k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.24k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.24k
        if (_data.size !=
329
2.24k
            _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.24k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.24k
                     _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.24k
        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.24k
        _parsed = true;
349
2.24k
        return Status::OK();
350
2.24k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
14.8k
    Status init() override {
323
14.8k
        CHECK(!_parsed);
324
14.8k
        size_t unused;
325
14.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.8k
        if (_data.size !=
329
14.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
14.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
14.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
14.8k
        _parsed = true;
349
14.8k
        return Status::OK();
350
14.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.41k
    Status init() override {
323
1.41k
        CHECK(!_parsed);
324
1.41k
        size_t unused;
325
1.41k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.41k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.41k
        if (_data.size !=
329
1.41k
            _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.41k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.41k
                     _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.41k
        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.41k
        _parsed = true;
349
1.41k
        return Status::OK();
350
1.41k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.0k
    Status init() override {
323
15.0k
        CHECK(!_parsed);
324
15.0k
        size_t unused;
325
15.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.0k
        if (_data.size !=
329
15.0k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
15.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.0k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
15.0k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
15.0k
        _parsed = true;
349
15.0k
        return Status::OK();
350
15.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
39.7k
    Status init() override {
323
39.7k
        CHECK(!_parsed);
324
39.7k
        size_t unused;
325
39.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
39.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
39.7k
        if (_data.size !=
329
39.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
39.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
39.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
39.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
39.7k
        _parsed = true;
349
39.7k
        return Status::OK();
350
39.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
29.6k
    Status init() override {
323
29.6k
        CHECK(!_parsed);
324
29.6k
        size_t unused;
325
29.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
29.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
29.6k
        if (_data.size !=
329
29.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
29.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
29.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
29.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
29.6k
        _parsed = true;
349
29.6k
        return Status::OK();
350
29.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.74k
    Status init() override {
323
1.74k
        CHECK(!_parsed);
324
1.74k
        size_t unused;
325
1.74k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.74k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.74k
        if (_data.size !=
329
1.74k
            _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.74k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.74k
                     _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.74k
        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.74k
        _parsed = true;
349
1.74k
        return Status::OK();
350
1.74k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.18k
    Status init() override {
323
1.18k
        CHECK(!_parsed);
324
1.18k
        size_t unused;
325
1.18k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.18k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.18k
        if (_data.size !=
329
1.18k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.18k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.18k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.18k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.18k
        _parsed = true;
349
1.18k
        return Status::OK();
350
1.18k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.15k
    Status init() override {
323
1.15k
        CHECK(!_parsed);
324
1.15k
        size_t unused;
325
1.15k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.15k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.15k
        if (_data.size !=
329
1.15k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.15k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.15k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.15k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.15k
        _parsed = true;
349
1.15k
        return Status::OK();
350
1.15k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
2.44M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
2.44M
        if (_num_elements == 0) [[unlikely]] {
361
6.60k
            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.60k
        }
366
367
2.44M
        DCHECK_LE(pos, _num_elements);
368
2.44M
        _cur_index = pos;
369
2.44M
        return Status::OK();
370
2.44M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.55M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.55M
        if (_num_elements == 0) [[unlikely]] {
361
3.23k
            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
3.23k
        }
366
367
1.55M
        DCHECK_LE(pos, _num_elements);
368
1.55M
        _cur_index = pos;
369
1.55M
        return Status::OK();
370
1.55M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
106k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
106k
        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
106k
        DCHECK_LE(pos, _num_elements);
368
106k
        _cur_index = pos;
369
106k
        return Status::OK();
370
106k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
20.4k
    Status seek_to_position_in_page(size_t pos) override {
359
20.4k
        DCHECK(_parsed) << "Must call init()";
360
20.4k
        if (_num_elements == 0) [[unlikely]] {
361
1.35k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
1.35k
        }
366
367
20.4k
        DCHECK_LE(pos, _num_elements);
368
20.4k
        _cur_index = pos;
369
20.4k
        return Status::OK();
370
20.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
292k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
292k
        if (_num_elements == 0) [[unlikely]] {
361
332
            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
332
        }
366
367
292k
        DCHECK_LE(pos, _num_elements);
368
292k
        _cur_index = pos;
369
292k
        return Status::OK();
370
292k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.2k
    Status seek_to_position_in_page(size_t pos) override {
359
17.2k
        DCHECK(_parsed) << "Must call init()";
360
17.2k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
17.2k
        DCHECK_LE(pos, _num_elements);
368
17.2k
        _cur_index = pos;
369
17.2k
        return Status::OK();
370
17.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
13.9k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
13.9k
        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
13.9k
        DCHECK_LE(pos, _num_elements);
368
13.9k
        _cur_index = pos;
369
13.9k
        return Status::OK();
370
13.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.7k
    Status seek_to_position_in_page(size_t pos) override {
359
16.7k
        DCHECK(_parsed) << "Must call init()";
360
16.7k
        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.7k
        DCHECK_LE(pos, _num_elements);
368
16.7k
        _cur_index = pos;
369
16.7k
        return Status::OK();
370
16.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
13.1k
    Status seek_to_position_in_page(size_t pos) override {
359
13.1k
        DCHECK(_parsed) << "Must call init()";
360
13.1k
        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
13.1k
        DCHECK_LE(pos, _num_elements);
368
13.1k
        _cur_index = pos;
369
13.1k
        return Status::OK();
370
13.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_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
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.4k
        DCHECK_LE(pos, _num_elements);
368
11.4k
        _cur_index = pos;
369
11.4k
        return Status::OK();
370
11.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
280k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
280k
        if (_num_elements == 0) [[unlikely]] {
361
778
            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
778
        }
366
367
280k
        DCHECK_LE(pos, _num_elements);
368
280k
        _cur_index = pos;
369
280k
        return Status::OK();
370
280k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
72.0k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
72.0k
        if (_num_elements == 0) [[unlikely]] {
361
17
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
17
        }
366
367
72.0k
        DCHECK_LE(pos, _num_elements);
368
72.0k
        _cur_index = pos;
369
72.0k
        return Status::OK();
370
72.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.78k
    Status seek_to_position_in_page(size_t pos) override {
359
6.78k
        DCHECK(_parsed) << "Must call init()";
360
6.78k
        if (_num_elements == 0) [[unlikely]] {
361
8
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
8
        }
366
367
6.78k
        DCHECK_LE(pos, _num_elements);
368
6.78k
        _cur_index = pos;
369
6.78k
        return Status::OK();
370
6.78k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.69k
    Status seek_to_position_in_page(size_t pos) override {
359
6.69k
        DCHECK(_parsed) << "Must call init()";
360
6.69k
        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.69k
        DCHECK_LE(pos, _num_elements);
368
6.69k
        _cur_index = pos;
369
6.69k
        return Status::OK();
370
6.69k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
130
    Status seek_to_position_in_page(size_t pos) override {
359
130
        DCHECK(_parsed) << "Must call init()";
360
130
        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
130
        DCHECK_LE(pos, _num_elements);
368
130
        _cur_index = pos;
369
130
        return Status::OK();
370
130
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
730
    Status seek_to_position_in_page(size_t pos) override {
359
730
        DCHECK(_parsed) << "Must call init()";
360
730
        if (_num_elements == 0) [[unlikely]] {
361
28
            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
28
        }
366
367
730
        DCHECK_LE(pos, _num_elements);
368
730
        _cur_index = pos;
369
730
        return Status::OK();
370
730
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.2k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
16.2k
        if (_num_elements == 0) [[unlikely]] {
361
12
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
12
        }
366
367
16.2k
        DCHECK_LE(pos, _num_elements);
368
16.2k
        _cur_index = pos;
369
16.2k
        return Status::OK();
370
16.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
14.8k
    Status seek_to_position_in_page(size_t pos) override {
359
14.8k
        DCHECK(_parsed) << "Must call init()";
360
14.8k
        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
14.8k
        DCHECK_LE(pos, _num_elements);
368
14.8k
        _cur_index = pos;
369
14.8k
        return Status::OK();
370
14.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.95k
    Status seek_to_position_in_page(size_t pos) override {
359
1.95k
        DCHECK(_parsed) << "Must call init()";
360
1.95k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
1.95k
        DCHECK_LE(pos, _num_elements);
368
1.95k
        _cur_index = pos;
369
1.95k
        return Status::OK();
370
1.95k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
72
    Status seek_to_position_in_page(size_t pos) override {
359
72
        DCHECK(_parsed) << "Must call init()";
360
72
        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
72
        DCHECK_LE(pos, _num_elements);
368
72
        _cur_index = pos;
369
72
        return Status::OK();
370
72
    }
_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.36M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.36M
        DCHECK(_parsed);
413
2.36M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.36M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.36M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.36M
        *n = max_fetch;
422
2.36M
        if constexpr (forward_index) {
423
1.81M
            _cur_index += max_fetch;
424
1.81M
        }
425
426
2.36M
        return Status::OK();
427
2.36M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
605k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
605k
        DCHECK(_parsed);
413
605k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
605k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
605k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
605k
        *n = max_fetch;
422
605k
        if constexpr (forward_index) {
423
605k
            _cur_index += max_fetch;
424
605k
        }
425
426
605k
        return Status::OK();
427
605k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
186k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
186k
        DCHECK(_parsed);
413
186k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
186k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
186k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
186k
        *n = max_fetch;
422
186k
        if constexpr (forward_index) {
423
186k
            _cur_index += max_fetch;
424
186k
        }
425
426
186k
        return Status::OK();
427
186k
    }
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.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
13.3k
        DCHECK(_parsed);
413
13.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
13.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
13.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
13.3k
        *n = max_fetch;
422
13.3k
        if constexpr (forward_index) {
423
13.3k
            _cur_index += max_fetch;
424
13.3k
        }
425
426
13.3k
        return Status::OK();
427
13.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
68.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
68.3k
        DCHECK(_parsed);
413
68.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
68.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
68.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
68.3k
        *n = max_fetch;
422
68.3k
        if constexpr (forward_index) {
423
68.3k
            _cur_index += max_fetch;
424
68.3k
        }
425
426
68.3k
        return Status::OK();
427
68.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
328k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
328k
        DCHECK(_parsed);
413
328k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
328k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
328k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
328k
        *n = max_fetch;
422
328k
        if constexpr (forward_index) {
423
328k
            _cur_index += max_fetch;
424
328k
        }
425
426
328k
        return Status::OK();
427
328k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
551k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
551k
        DCHECK(_parsed);
413
551k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
551k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
551k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
551k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
551k
        return Status::OK();
427
551k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
12.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
12.4k
        DCHECK(_parsed);
413
12.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
12.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
12.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
12.4k
        *n = max_fetch;
422
12.4k
        if constexpr (forward_index) {
423
12.4k
            _cur_index += max_fetch;
424
12.4k
        }
425
426
12.4k
        return Status::OK();
427
12.4k
    }
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.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.4k
        DCHECK(_parsed);
413
14.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.4k
        *n = max_fetch;
422
14.4k
        if constexpr (forward_index) {
423
14.4k
            _cur_index += max_fetch;
424
14.4k
        }
425
426
14.4k
        return Status::OK();
427
14.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
22.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
22.3k
        DCHECK(_parsed);
413
22.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
22.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
22.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
22.3k
        *n = max_fetch;
422
22.3k
        if constexpr (forward_index) {
423
22.3k
            _cur_index += max_fetch;
424
22.3k
        }
425
426
22.3k
        return Status::OK();
427
22.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.98k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.98k
        DCHECK(_parsed);
413
3.98k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.98k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.98k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.98k
        *n = max_fetch;
422
3.98k
        if constexpr (forward_index) {
423
3.98k
            _cur_index += max_fetch;
424
3.98k
        }
425
426
3.98k
        return Status::OK();
427
3.98k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
377k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
377k
        DCHECK(_parsed);
413
377k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
377k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
377k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
377k
        *n = max_fetch;
422
377k
        if constexpr (forward_index) {
423
377k
            _cur_index += max_fetch;
424
377k
        }
425
426
377k
        return Status::OK();
427
377k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
86.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
86.4k
        DCHECK(_parsed);
413
86.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
86.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
86.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
86.4k
        *n = max_fetch;
422
86.4k
        if constexpr (forward_index) {
423
86.4k
            _cur_index += max_fetch;
424
86.4k
        }
425
426
86.4k
        return Status::OK();
427
86.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.03k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.03k
        DCHECK(_parsed);
413
1.03k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.03k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.03k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.03k
        *n = max_fetch;
422
1.03k
        if constexpr (forward_index) {
423
1.03k
            _cur_index += max_fetch;
424
1.03k
        }
425
426
1.03k
        return Status::OK();
427
1.03k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
6.97k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.97k
        DCHECK(_parsed);
413
6.97k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.97k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.97k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.97k
        *n = max_fetch;
422
6.97k
        if constexpr (forward_index) {
423
6.97k
            _cur_index += max_fetch;
424
6.97k
        }
425
426
6.97k
        return Status::OK();
427
6.97k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.32k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.32k
        DCHECK(_parsed);
413
1.32k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.32k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.32k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.32k
        *n = max_fetch;
422
1.32k
        if constexpr (forward_index) {
423
1.32k
            _cur_index += max_fetch;
424
1.32k
        }
425
426
1.32k
        return Status::OK();
427
1.32k
    }
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.48k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.48k
        DCHECK(_parsed);
413
8.48k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.48k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.48k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.48k
        *n = max_fetch;
422
8.48k
        if constexpr (forward_index) {
423
8.48k
            _cur_index += max_fetch;
424
8.48k
        }
425
426
8.48k
        return Status::OK();
427
8.48k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
37.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
37.0k
        DCHECK(_parsed);
413
37.0k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
37.0k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
37.0k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
37.0k
        *n = max_fetch;
422
37.0k
        if constexpr (forward_index) {
423
37.0k
            _cur_index += max_fetch;
424
37.0k
        }
425
426
37.0k
        return Status::OK();
427
37.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
28.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
28.3k
        DCHECK(_parsed);
413
28.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
28.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
28.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
28.3k
        *n = max_fetch;
422
28.3k
        if constexpr (forward_index) {
423
28.3k
            _cur_index += max_fetch;
424
28.3k
        }
425
426
28.3k
        return Status::OK();
427
28.3k
    }
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.16k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.16k
        DCHECK(_parsed);
413
3.16k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.16k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.16k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.16k
        *n = max_fetch;
422
3.16k
        if constexpr (forward_index) {
423
3.16k
            _cur_index += max_fetch;
424
3.16k
        }
425
426
3.16k
        return Status::OK();
427
3.16k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.76k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.76k
        DCHECK(_parsed);
413
5.76k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.76k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.76k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.76k
        *n = max_fetch;
422
5.76k
        if constexpr (forward_index) {
423
5.76k
            _cur_index += max_fetch;
424
5.76k
        }
425
426
5.76k
        return Status::OK();
427
5.76k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.78k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.78k
        DCHECK(_parsed);
413
5.78k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.78k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.78k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.78k
        *n = max_fetch;
422
5.78k
        if constexpr (forward_index) {
423
5.78k
            _cur_index += max_fetch;
424
5.78k
        }
425
426
5.78k
        return Status::OK();
427
5.78k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
1.81M
    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
604k
    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
186k
    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.3k
    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
68.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
328k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
12.4k
    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.4k
    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
22.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.98k
    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
377k
    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
86.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.03k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
6.97k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.32k
    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.48k
    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
37.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
28.3k
    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.16k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.77k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.78k
    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
460k
                          MutableColumnPtr& dst) override {
433
460k
        DCHECK(_parsed);
434
460k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
460k
        auto total = *n;
440
460k
        auto read_count = 0;
441
460k
        _buffer.resize(total);
442
89.8M
        for (size_t i = 0; i < total; ++i) {
443
89.4M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
89.4M
            if (UNLIKELY(ord >= _num_elements)) {
445
11.8k
                break;
446
11.8k
            }
447
448
89.4M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
89.4M
        }
450
451
460k
        if (LIKELY(read_count > 0)) {
452
460k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
460k
        }
454
455
460k
        *n = read_count;
456
460k
        return Status::OK();
457
460k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
77.5k
                          MutableColumnPtr& dst) override {
433
77.5k
        DCHECK(_parsed);
434
77.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
77.5k
        auto total = *n;
440
77.5k
        auto read_count = 0;
441
77.5k
        _buffer.resize(total);
442
15.1M
        for (size_t i = 0; i < total; ++i) {
443
15.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
15.0M
            if (UNLIKELY(ord >= _num_elements)) {
445
2.49k
                break;
446
2.49k
            }
447
448
15.0M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
15.0M
        }
450
451
77.5k
        if (LIKELY(read_count > 0)) {
452
77.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
77.5k
        }
454
455
77.5k
        *n = read_count;
456
77.5k
        return Status::OK();
457
77.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
28.3k
                          MutableColumnPtr& dst) override {
433
28.3k
        DCHECK(_parsed);
434
28.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
28.3k
        auto total = *n;
440
28.3k
        auto read_count = 0;
441
28.3k
        _buffer.resize(total);
442
2.97M
        for (size_t i = 0; i < total; ++i) {
443
2.94M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
2.94M
            if (UNLIKELY(ord >= _num_elements)) {
445
80
                break;
446
80
            }
447
448
2.94M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
2.94M
        }
450
451
28.3k
        if (LIKELY(read_count > 0)) {
452
28.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
28.3k
        }
454
455
28.3k
        *n = read_count;
456
28.3k
        return Status::OK();
457
28.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.2k
                          MutableColumnPtr& dst) override {
433
10.2k
        DCHECK(_parsed);
434
10.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.2k
        auto total = *n;
440
10.2k
        auto read_count = 0;
441
10.2k
        _buffer.resize(total);
442
725k
        for (size_t i = 0; i < total; ++i) {
443
714k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
714k
            if (UNLIKELY(ord >= _num_elements)) {
445
13
                break;
446
13
            }
447
448
714k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
714k
        }
450
451
10.2k
        if (LIKELY(read_count > 0)) {
452
10.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.2k
        }
454
455
10.2k
        *n = read_count;
456
10.2k
        return Status::OK();
457
10.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
149k
                          MutableColumnPtr& dst) override {
433
149k
        DCHECK(_parsed);
434
149k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
149k
        auto total = *n;
440
149k
        auto read_count = 0;
441
149k
        _buffer.resize(total);
442
17.4M
        for (size_t i = 0; i < total; ++i) {
443
17.3M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
17.3M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.62k
                break;
446
1.62k
            }
447
448
17.3M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
17.3M
        }
450
451
149k
        if (LIKELY(read_count > 0)) {
452
149k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
149k
        }
454
455
149k
        *n = read_count;
456
149k
        return Status::OK();
457
149k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
32.8k
                          MutableColumnPtr& dst) override {
433
32.8k
        DCHECK(_parsed);
434
32.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
32.8k
        auto total = *n;
440
32.8k
        auto read_count = 0;
441
32.8k
        _buffer.resize(total);
442
576k
        for (size_t i = 0; i < total; ++i) {
443
544k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
544k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
544k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
544k
        }
450
451
32.8k
        if (LIKELY(read_count > 0)) {
452
32.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
32.8k
        }
454
455
32.8k
        *n = read_count;
456
32.8k
        return Status::OK();
457
32.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
8.66k
                          MutableColumnPtr& dst) override {
433
8.66k
        DCHECK(_parsed);
434
8.66k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8.66k
        auto total = *n;
440
8.66k
        auto read_count = 0;
441
8.66k
        _buffer.resize(total);
442
1.39M
        for (size_t i = 0; i < total; ++i) {
443
1.38M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.38M
            if (UNLIKELY(ord >= _num_elements)) {
445
279
                break;
446
279
            }
447
448
1.38M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.38M
        }
450
451
8.66k
        if (LIKELY(read_count > 0)) {
452
8.66k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8.66k
        }
454
455
8.66k
        *n = read_count;
456
8.66k
        return Status::OK();
457
8.66k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.7k
                          MutableColumnPtr& dst) override {
433
10.7k
        DCHECK(_parsed);
434
10.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.7k
        auto total = *n;
440
10.7k
        auto read_count = 0;
441
10.7k
        _buffer.resize(total);
442
1.18M
        for (size_t i = 0; i < total; ++i) {
443
1.17M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.17M
            if (UNLIKELY(ord >= _num_elements)) {
445
27
                break;
446
27
            }
447
448
1.17M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.17M
        }
450
451
10.7k
        if (LIKELY(read_count > 0)) {
452
10.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.7k
        }
454
455
10.7k
        *n = read_count;
456
10.7k
        return Status::OK();
457
10.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
16.1k
                          MutableColumnPtr& dst) override {
433
16.1k
        DCHECK(_parsed);
434
16.1k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
16.1k
        auto total = *n;
440
16.1k
        auto read_count = 0;
441
16.1k
        _buffer.resize(total);
442
3.81M
        for (size_t i = 0; i < total; ++i) {
443
3.80M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
3.80M
            if (UNLIKELY(ord >= _num_elements)) {
445
940
                break;
446
940
            }
447
448
3.80M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
3.80M
        }
450
451
16.1k
        if (LIKELY(read_count > 0)) {
452
16.1k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
16.1k
        }
454
455
16.1k
        *n = read_count;
456
16.1k
        return Status::OK();
457
16.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.14k
                          MutableColumnPtr& dst) override {
433
2.14k
        DCHECK(_parsed);
434
2.14k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.14k
        auto total = *n;
440
2.14k
        auto read_count = 0;
441
2.14k
        _buffer.resize(total);
442
563k
        for (size_t i = 0; i < total; ++i) {
443
561k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
561k
            if (UNLIKELY(ord >= _num_elements)) {
445
15
                break;
446
15
            }
447
448
561k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
561k
        }
450
451
2.14k
        if (LIKELY(read_count > 0)) {
452
2.14k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.14k
        }
454
455
2.14k
        *n = read_count;
456
2.14k
        return Status::OK();
457
2.14k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
29.4k
                          MutableColumnPtr& dst) override {
433
29.4k
        DCHECK(_parsed);
434
29.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
29.4k
        auto total = *n;
440
29.4k
        auto read_count = 0;
441
29.4k
        _buffer.resize(total);
442
7.25M
        for (size_t i = 0; i < total; ++i) {
443
7.22M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.22M
            if (UNLIKELY(ord >= _num_elements)) {
445
660
                break;
446
660
            }
447
448
7.22M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.22M
        }
450
451
29.4k
        if (LIKELY(read_count > 0)) {
452
29.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
29.4k
        }
454
455
29.4k
        *n = read_count;
456
29.4k
        return Status::OK();
457
29.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
31.7k
                          MutableColumnPtr& dst) override {
433
31.7k
        DCHECK(_parsed);
434
31.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.7k
        auto total = *n;
440
31.7k
        auto read_count = 0;
441
31.7k
        _buffer.resize(total);
442
6.90M
        for (size_t i = 0; i < total; ++i) {
443
6.86M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
6.86M
            if (UNLIKELY(ord >= _num_elements)) {
445
91
                break;
446
91
            }
447
448
6.86M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
6.86M
        }
450
451
31.7k
        if (LIKELY(read_count > 0)) {
452
31.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.7k
        }
454
455
31.7k
        *n = read_count;
456
31.7k
        return Status::OK();
457
31.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.30k
                          MutableColumnPtr& dst) override {
433
2.30k
        DCHECK(_parsed);
434
2.30k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.30k
        auto total = *n;
440
2.30k
        auto read_count = 0;
441
2.30k
        _buffer.resize(total);
442
579k
        for (size_t i = 0; i < total; ++i) {
443
576k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
576k
            if (UNLIKELY(ord >= _num_elements)) {
445
73
                break;
446
73
            }
447
448
576k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
576k
        }
450
451
2.30k
        if (LIKELY(read_count > 0)) {
452
2.30k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.30k
        }
454
455
2.30k
        *n = read_count;
456
2.30k
        return Status::OK();
457
2.30k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.8k
                          MutableColumnPtr& dst) override {
433
11.8k
        DCHECK(_parsed);
434
11.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.8k
        auto total = *n;
440
11.8k
        auto read_count = 0;
441
11.8k
        _buffer.resize(total);
442
25.1k
        for (size_t i = 0; i < total; ++i) {
443
13.3k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.3k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.3k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.3k
        }
450
451
11.8k
        if (LIKELY(read_count > 0)) {
452
11.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.8k
        }
454
455
11.8k
        *n = read_count;
456
11.8k
        return Status::OK();
457
11.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
187
                          MutableColumnPtr& dst) override {
433
187
        DCHECK(_parsed);
434
187
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
187
        auto total = *n;
440
187
        auto read_count = 0;
441
187
        _buffer.resize(total);
442
379
        for (size_t i = 0; i < total; ++i) {
443
192
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
192
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
192
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
192
        }
450
451
187
        if (LIKELY(read_count > 0)) {
452
187
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
187
        }
454
455
187
        *n = read_count;
456
187
        return Status::OK();
457
187
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.59k
                          MutableColumnPtr& dst) override {
433
4.59k
        DCHECK(_parsed);
434
4.59k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.59k
        auto total = *n;
440
4.59k
        auto read_count = 0;
441
4.59k
        _buffer.resize(total);
442
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.59k
        if (LIKELY(read_count > 0)) {
452
4.59k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.59k
        }
454
455
4.59k
        *n = read_count;
456
4.59k
        return Status::OK();
457
4.59k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
25.9k
                          MutableColumnPtr& dst) override {
433
25.9k
        DCHECK(_parsed);
434
25.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
25.9k
        auto total = *n;
440
25.9k
        auto read_count = 0;
441
25.9k
        _buffer.resize(total);
442
21.5M
        for (size_t i = 0; i < total; ++i) {
443
21.4M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
21.4M
            if (UNLIKELY(ord >= _num_elements)) {
445
5.07k
                break;
446
5.07k
            }
447
448
21.4M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
21.4M
        }
450
451
25.9k
        if (LIKELY(read_count > 0)) {
452
25.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
25.9k
        }
454
455
25.9k
        *n = read_count;
456
25.9k
        return Status::OK();
457
25.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.7k
                          MutableColumnPtr& dst) override {
433
15.7k
        DCHECK(_parsed);
434
15.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.7k
        auto total = *n;
440
15.7k
        auto read_count = 0;
441
15.7k
        _buffer.resize(total);
442
9.76M
        for (size_t i = 0; i < total; ++i) {
443
9.75M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
9.75M
            if (UNLIKELY(ord >= _num_elements)) {
445
433
                break;
446
433
            }
447
448
9.75M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
9.75M
        }
450
451
15.7k
        if (LIKELY(read_count > 0)) {
452
15.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.7k
        }
454
455
15.7k
        *n = read_count;
456
15.7k
        return Status::OK();
457
15.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
959
                          MutableColumnPtr& dst) override {
433
959
        DCHECK(_parsed);
434
959
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
959
        auto total = *n;
440
959
        auto read_count = 0;
441
959
        _buffer.resize(total);
442
2.77k
        for (size_t i = 0; i < total; ++i) {
443
1.81k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.81k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.81k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.81k
        }
450
451
959
        if (LIKELY(read_count > 0)) {
452
959
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
959
        }
454
455
959
        *n = read_count;
456
959
        return Status::OK();
457
959
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
477
                          MutableColumnPtr& dst) override {
433
477
        DCHECK(_parsed);
434
477
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
477
        auto total = *n;
440
477
        auto read_count = 0;
441
477
        _buffer.resize(total);
442
1.19k
        for (size_t i = 0; i < total; ++i) {
443
719
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
719
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
719
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
719
        }
450
451
477
        if (LIKELY(read_count > 0)) {
452
477
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
477
        }
454
455
477
        *n = read_count;
456
477
        return Status::OK();
457
477
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
408
                          MutableColumnPtr& dst) override {
433
408
        DCHECK(_parsed);
434
408
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
408
        auto total = *n;
440
408
        auto read_count = 0;
441
408
        _buffer.resize(total);
442
1.33k
        for (size_t i = 0; i < total; ++i) {
443
923
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
923
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
923
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
923
        }
450
451
408
        if (LIKELY(read_count > 0)) {
452
408
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
408
        }
454
455
408
        *n = read_count;
456
408
        return Status::OK();
457
408
    }
458
459
551k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
551k
        return next_batch<false>(n, dst);
461
551k
    }
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
551k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
551k
        return next_batch<false>(n, dst);
461
551k
    }
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
3.06M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
2.44M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
16.2k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
14.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
468k
    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
8.12k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
14.6k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
10.0k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
6.74k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
20.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
44.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
4.96k
    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
14
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.47k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
633
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
9.06k
    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
57
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
106
    size_t current_index() const override { return _cur_index; }
466
467
93.0M
    char* get_data(size_t index) const {
468
93.0M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
93.0M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
16.9M
    char* get_data(size_t index) const {
468
16.9M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
16.9M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
3.13M
    char* get_data(size_t index) const {
468
3.13M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.13M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
728k
    char* get_data(size_t index) const {
468
728k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
728k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
17.3M
    char* get_data(size_t index) const {
468
17.3M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
17.3M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
1.42M
    char* get_data(size_t index) const {
468
1.42M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.42M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
1.39M
    char* get_data(size_t index) const {
468
1.39M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.39M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.19M
    char* get_data(size_t index) const {
468
1.19M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.19M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
3.82M
    char* get_data(size_t index) const {
468
3.82M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.82M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
565k
    char* get_data(size_t index) const {
468
565k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
565k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
7.60M
    char* get_data(size_t index) const {
468
7.60M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.60M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
6.95M
    char* get_data(size_t index) const {
468
6.95M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.95M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
577k
    char* get_data(size_t index) const {
468
577k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
577k
    }
_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.51k
    char* get_data(size_t index) const {
468
1.51k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.51k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
22.9k
    char* get_data(size_t index) const {
468
22.9k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.9k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
21.5M
    char* get_data(size_t index) const {
468
21.5M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21.5M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
9.77M
    char* get_data(size_t index) const {
468
9.77M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
9.77M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
4.97k
    char* get_data(size_t index) const {
468
4.97k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.97k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
6.48k
    char* get_data(size_t index) const {
468
6.48k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.48k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
6.70k
    char* get_data(size_t index) const {
468
6.70k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.70k
    }
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