Coverage Report

Created: 2026-03-16 08:03

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
775k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
385k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
46.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
9.46k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
90.5k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
70.3k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
11.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
11.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
19.3k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
191
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
36.6k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
44.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
288
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
7.46k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
188
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.75k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
16.0k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.16k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
812
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
733
    Status init() override { return reset(); }
97
98
145M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
144M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
46.9k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
14.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
389k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
71.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
98
46.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
11.7k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
21.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
98
198
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
110k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
86.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
342
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
7.31k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
89
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.33k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
30.0k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
24.6k
    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.66k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.65M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.65M
        return add_internal<false>(vals, count);
102
1.65M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
751k
    Status add(const uint8_t* vals, size_t* count) override {
101
751k
        return add_internal<false>(vals, count);
102
751k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
46.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
46.9k
        return add_internal<false>(vals, count);
102
46.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
14.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
14.3k
        return add_internal<false>(vals, count);
102
14.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
390k
    Status add(const uint8_t* vals, size_t* count) override {
101
390k
        return add_internal<false>(vals, count);
102
390k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
71.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
71.1k
        return add_internal<false>(vals, count);
102
71.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
46.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
46.1k
        return add_internal<false>(vals, count);
102
46.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
11.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.7k
        return add_internal<false>(vals, count);
102
11.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
21.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
21.5k
        return add_internal<false>(vals, count);
102
21.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
198
    Status add(const uint8_t* vals, size_t* count) override {
101
198
        return add_internal<false>(vals, count);
102
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
110k
    Status add(const uint8_t* vals, size_t* count) override {
101
110k
        return add_internal<false>(vals, count);
102
110k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
86.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
86.8k
        return add_internal<false>(vals, count);
102
86.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
342
    Status add(const uint8_t* vals, size_t* count) override {
101
342
        return add_internal<false>(vals, count);
102
342
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
7.31k
    Status add(const uint8_t* vals, size_t* count) override {
101
7.31k
        return add_internal<false>(vals, count);
102
7.31k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
89
    Status add(const uint8_t* vals, size_t* count) override {
101
89
        return add_internal<false>(vals, count);
102
89
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.33k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.33k
        return add_internal<false>(vals, count);
102
5.33k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
30.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
30.0k
        return add_internal<false>(vals, count);
102
30.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
24.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
24.6k
        return add_internal<false>(vals, count);
102
24.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
100
1.37k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.37k
        return add_internal<false>(vals, count);
102
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
100
28.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
28.2k
        return add_internal<false>(vals, count);
102
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
5.66k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.66k
        return add_internal<false>(vals, count);
102
5.66k
    }
103
104
145M
    Status single_add(const uint8_t* vals, size_t* count) {
105
145M
        return add_internal<true>(vals, count);
106
145M
    }
107
108
    template <bool single>
109
146M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
146M
        DCHECK(!_finished);
111
146M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
146M
        uint32_t to_add = cast_set<UInt32>(
127
146M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
146M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
146M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
146M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
146M
        _count += to_add;
135
146M
        _remain_element_capacity -= to_add;
136
146M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
146M
        *num_written = to_add;
139
146M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
144M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
144M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
144M
                        *reinterpret_cast<const uint32_t*>(vals);
150
144M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
144M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
146M
        return Status::OK();
160
146M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
751k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
751k
        DCHECK(!_finished);
111
751k
        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
751k
        uint32_t to_add = cast_set<UInt32>(
127
751k
                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
751k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
751k
        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
751k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
751k
        _count += to_add;
135
751k
        _remain_element_capacity -= to_add;
136
751k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
751k
        *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
751k
        memcpy(&_data[orig_size], vals, to_add_size);
159
751k
        return Status::OK();
160
751k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
144M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
144M
        DCHECK(!_finished);
111
144M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
144M
        uint32_t to_add = cast_set<UInt32>(
127
144M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
144M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
144M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
144M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
144M
        _count += to_add;
135
144M
        _remain_element_capacity -= to_add;
136
144M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
144M
        *num_written = to_add;
139
144M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
144M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
144M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
144M
                        *reinterpret_cast<const uint32_t*>(vals);
150
144M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
144M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
144M
        return Status::OK();
160
144M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
46.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
46.9k
        DCHECK(!_finished);
111
46.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
46.9k
        uint32_t to_add = cast_set<UInt32>(
127
46.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
46.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
46.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
46.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
46.9k
        _count += to_add;
135
46.9k
        _remain_element_capacity -= to_add;
136
46.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
46.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
46.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
46.9k
        return Status::OK();
160
46.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
14.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
14.3k
        DCHECK(!_finished);
111
14.3k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
14.3k
        uint32_t to_add = cast_set<UInt32>(
127
14.3k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
14.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
14.3k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
14.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
14.3k
        _count += to_add;
135
14.3k
        _remain_element_capacity -= to_add;
136
14.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
14.3k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
14.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
14.3k
        return Status::OK();
160
14.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
390k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
390k
        DCHECK(!_finished);
111
390k
        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
390k
        uint32_t to_add = cast_set<UInt32>(
127
390k
                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
390k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
390k
        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
390k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
390k
        _count += to_add;
135
390k
        _remain_element_capacity -= to_add;
136
390k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
390k
        *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
390k
        memcpy(&_data[orig_size], vals, to_add_size);
159
390k
        return Status::OK();
160
390k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
71.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
71.1k
        DCHECK(!_finished);
111
71.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
71.1k
        uint32_t to_add = cast_set<UInt32>(
127
71.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
71.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
71.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
71.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
71.1k
        _count += to_add;
135
71.1k
        _remain_element_capacity -= to_add;
136
71.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
71.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
71.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
71.1k
        return Status::OK();
160
71.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
46.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
46.1k
        DCHECK(!_finished);
111
46.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
46.1k
        uint32_t to_add = cast_set<UInt32>(
127
46.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
46.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
46.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
46.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
46.1k
        _count += to_add;
135
46.1k
        _remain_element_capacity -= to_add;
136
46.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
46.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
46.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
46.1k
        return Status::OK();
160
46.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.7k
        DCHECK(!_finished);
111
11.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
11.7k
        uint32_t to_add = cast_set<UInt32>(
127
11.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
11.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.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
11.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.7k
        _count += to_add;
135
11.7k
        _remain_element_capacity -= to_add;
136
11.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.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
11.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.7k
        return Status::OK();
160
11.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
21.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
21.5k
        DCHECK(!_finished);
111
21.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
21.5k
        uint32_t to_add = cast_set<UInt32>(
127
21.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
21.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
21.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
21.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
21.5k
        _count += to_add;
135
21.5k
        _remain_element_capacity -= to_add;
136
21.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
21.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
21.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
21.5k
        return Status::OK();
160
21.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
198
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
198
        DCHECK(!_finished);
111
198
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
198
        uint32_t to_add = cast_set<UInt32>(
127
198
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
198
        int to_add_size = to_add * SIZE_OF_TYPE;
130
198
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
198
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
198
        _count += to_add;
135
198
        _remain_element_capacity -= to_add;
136
198
        _raw_data_size += to_add_size;
137
        // return added number through count
138
198
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
198
        memcpy(&_data[orig_size], vals, to_add_size);
159
198
        return Status::OK();
160
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
110k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
110k
        DCHECK(!_finished);
111
110k
        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
110k
        uint32_t to_add = cast_set<UInt32>(
127
110k
                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
110k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
110k
        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
110k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
110k
        _count += to_add;
135
110k
        _remain_element_capacity -= to_add;
136
110k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
110k
        *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
110k
        memcpy(&_data[orig_size], vals, to_add_size);
159
110k
        return Status::OK();
160
110k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
86.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
86.8k
        DCHECK(!_finished);
111
86.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
86.8k
        uint32_t to_add = cast_set<UInt32>(
127
86.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
86.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
86.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
86.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
86.8k
        _count += to_add;
135
86.8k
        _remain_element_capacity -= to_add;
136
86.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
86.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
86.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
86.8k
        return Status::OK();
160
86.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
342
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
342
        DCHECK(!_finished);
111
342
        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
342
        uint32_t to_add = cast_set<UInt32>(
127
342
                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
342
        int to_add_size = to_add * SIZE_OF_TYPE;
130
342
        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
342
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
342
        _count += to_add;
135
342
        _remain_element_capacity -= to_add;
136
342
        _raw_data_size += to_add_size;
137
        // return added number through count
138
342
        *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
342
        memcpy(&_data[orig_size], vals, to_add_size);
159
342
        return Status::OK();
160
342
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
7.31k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
7.31k
        DCHECK(!_finished);
111
7.31k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
7.31k
        uint32_t to_add = cast_set<UInt32>(
127
7.31k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
7.31k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
7.31k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
7.31k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
7.31k
        _count += to_add;
135
7.31k
        _remain_element_capacity -= to_add;
136
7.31k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
7.31k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
7.31k
        memcpy(&_data[orig_size], vals, to_add_size);
159
7.31k
        return Status::OK();
160
7.31k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
89
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
89
        DCHECK(!_finished);
111
89
        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
89
        uint32_t to_add = cast_set<UInt32>(
127
89
                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
89
        int to_add_size = to_add * SIZE_OF_TYPE;
130
89
        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
89
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
89
        _count += to_add;
135
89
        _remain_element_capacity -= to_add;
136
89
        _raw_data_size += to_add_size;
137
        // return added number through count
138
89
        *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
89
        memcpy(&_data[orig_size], vals, to_add_size);
159
89
        return Status::OK();
160
89
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.33k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.33k
        DCHECK(!_finished);
111
5.33k
        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.33k
        uint32_t to_add = cast_set<UInt32>(
127
5.33k
                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.33k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.33k
        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.33k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.33k
        _count += to_add;
135
5.33k
        _remain_element_capacity -= to_add;
136
5.33k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.33k
        *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.33k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.33k
        return Status::OK();
160
5.33k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
30.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
30.0k
        DCHECK(!_finished);
111
30.0k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
30.0k
        uint32_t to_add = cast_set<UInt32>(
127
30.0k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
30.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
30.0k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
30.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
30.0k
        _count += to_add;
135
30.0k
        _remain_element_capacity -= to_add;
136
30.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
30.0k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
30.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
30.0k
        return Status::OK();
160
30.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
24.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
24.6k
        DCHECK(!_finished);
111
24.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
24.6k
        uint32_t to_add = cast_set<UInt32>(
127
24.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
24.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
24.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
24.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
24.6k
        _count += to_add;
135
24.6k
        _remain_element_capacity -= to_add;
136
24.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
24.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
24.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
24.6k
        return Status::OK();
160
24.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.37k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.37k
        DCHECK(!_finished);
111
1.37k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
1.37k
        uint32_t to_add = cast_set<UInt32>(
127
1.37k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
1.37k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.37k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
1.37k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.37k
        _count += to_add;
135
1.37k
        _remain_element_capacity -= to_add;
136
1.37k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.37k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
1.37k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.37k
        return Status::OK();
160
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
28.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
28.2k
        DCHECK(!_finished);
111
28.2k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
28.2k
        uint32_t to_add = cast_set<UInt32>(
127
28.2k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
28.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
28.2k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
28.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
28.2k
        _count += to_add;
135
28.2k
        _remain_element_capacity -= to_add;
136
28.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
28.2k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
28.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
28.2k
        return Status::OK();
160
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.66k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.66k
        DCHECK(!_finished);
111
5.66k
        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.66k
        uint32_t to_add = cast_set<UInt32>(
127
5.66k
                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.66k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.66k
        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.66k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.66k
        _count += to_add;
135
5.66k
        _remain_element_capacity -= to_add;
136
5.66k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.66k
        *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.66k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.66k
        return Status::OK();
160
5.66k
    }
161
162
764k
    Status finish(OwnedSlice* slice) override {
163
764k
        if (_count > 0) {
164
719k
            _first_value = cell(0);
165
719k
            _last_value = cell(_count - 1);
166
719k
        }
167
764k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
765k
        return Status::OK();
169
764k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
370k
    Status finish(OwnedSlice* slice) override {
163
370k
        if (_count > 0) {
164
336k
            _first_value = cell(0);
165
336k
            _last_value = cell(_count - 1);
166
336k
        }
167
370k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
371k
        return Status::OK();
169
370k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
45.2k
    Status finish(OwnedSlice* slice) override {
163
45.2k
        if (_count > 0) {
164
44.9k
            _first_value = cell(0);
165
44.9k
            _last_value = cell(_count - 1);
166
44.9k
        }
167
45.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
45.3k
        return Status::OK();
169
45.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
8.63k
    Status finish(OwnedSlice* slice) override {
163
8.63k
        if (_count > 0) {
164
8.57k
            _first_value = cell(0);
165
8.57k
            _last_value = cell(_count - 1);
166
8.57k
        }
167
8.63k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
8.63k
        return Status::OK();
169
8.63k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
91.6k
    Status finish(OwnedSlice* slice) override {
163
91.6k
        if (_count > 0) {
164
91.0k
            _first_value = cell(0);
165
91.0k
            _last_value = cell(_count - 1);
166
91.0k
        }
167
91.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
91.7k
        return Status::OK();
169
91.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
70.1k
    Status finish(OwnedSlice* slice) override {
163
70.1k
        if (_count > 0) {
164
70.1k
            _first_value = cell(0);
165
70.1k
            _last_value = cell(_count - 1);
166
70.1k
        }
167
70.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
70.1k
        return Status::OK();
169
70.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.2k
    Status finish(OwnedSlice* slice) override {
163
11.2k
        if (_count > 0) {
164
10.7k
            _first_value = cell(0);
165
10.7k
            _last_value = cell(_count - 1);
166
10.7k
        }
167
11.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.2k
        return Status::OK();
169
11.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.0k
    Status finish(OwnedSlice* slice) override {
163
11.0k
        if (_count > 0) {
164
10.7k
            _first_value = cell(0);
165
10.7k
            _last_value = cell(_count - 1);
166
10.7k
        }
167
11.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.0k
        return Status::OK();
169
11.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.2k
    Status finish(OwnedSlice* slice) override {
163
19.2k
        if (_count > 0) {
164
18.8k
            _first_value = cell(0);
165
18.8k
            _last_value = cell(_count - 1);
166
18.8k
        }
167
19.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.2k
        return Status::OK();
169
19.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
203
    Status finish(OwnedSlice* slice) override {
163
203
        if (_count > 0) {
164
198
            _first_value = cell(0);
165
198
            _last_value = cell(_count - 1);
166
198
        }
167
203
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
203
        return Status::OK();
169
203
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
37.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.6k
    Status finish(OwnedSlice* slice) override {
163
43.6k
        if (_count > 0) {
164
42.2k
            _first_value = cell(0);
165
42.2k
            _last_value = cell(_count - 1);
166
42.2k
        }
167
43.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
43.6k
        return Status::OK();
169
43.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
442
    Status finish(OwnedSlice* slice) override {
163
442
        if (_count > 0) {
164
342
            _first_value = cell(0);
165
342
            _last_value = cell(_count - 1);
166
342
        }
167
442
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
442
        return Status::OK();
169
442
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.51k
    Status finish(OwnedSlice* slice) override {
163
7.51k
        if (_count > 0) {
164
7.30k
            _first_value = cell(0);
165
7.30k
            _last_value = cell(_count - 1);
166
7.30k
        }
167
7.51k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.52k
        return Status::OK();
169
7.51k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
97
    Status finish(OwnedSlice* slice) override {
163
97
        if (_count > 0) {
164
89
            _first_value = cell(0);
165
89
            _last_value = cell(_count - 1);
166
89
        }
167
97
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
97
        return Status::OK();
169
97
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.74k
    Status finish(OwnedSlice* slice) override {
163
9.74k
        if (_count > 0) {
164
4.82k
            _first_value = cell(0);
165
4.82k
            _last_value = cell(_count - 1);
166
4.82k
        }
167
9.74k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.74k
        return Status::OK();
169
9.74k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.0k
    Status finish(OwnedSlice* slice) override {
163
19.0k
        if (_count > 0) {
164
18.1k
            _first_value = cell(0);
165
18.1k
            _last_value = cell(_count - 1);
166
18.1k
        }
167
19.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.0k
        return Status::OK();
169
19.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
16.2k
    Status finish(OwnedSlice* slice) override {
163
16.2k
        if (_count > 0) {
164
15.7k
            _first_value = cell(0);
165
15.7k
            _last_value = cell(_count - 1);
166
15.7k
        }
167
16.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.2k
        return Status::OK();
169
16.2k
    }
_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
722
    Status finish(OwnedSlice* slice) override {
163
722
        if (_count > 0) {
164
672
            _first_value = cell(0);
165
672
            _last_value = cell(_count - 1);
166
672
        }
167
722
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
722
        return Status::OK();
169
722
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
650
    Status finish(OwnedSlice* slice) override {
163
650
        if (_count > 0) {
164
615
            _first_value = cell(0);
165
615
            _last_value = cell(_count - 1);
166
615
        }
167
650
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
650
        return Status::OK();
169
650
    }
170
171
1.85M
    Status reset() override {
172
1.85M
        RETURN_IF_CATCH_EXCEPTION({
173
1.85M
            size_t block_size = _options.data_page_size;
174
1.85M
            _count = 0;
175
1.85M
            _raw_data_size = 0;
176
1.85M
            _data.clear();
177
1.85M
            _data.reserve(block_size);
178
1.85M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.85M
                    << "buffer must be naturally-aligned";
180
1.85M
            _buffer.clear();
181
1.85M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.85M
            _finished = false;
183
1.85M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.85M
        });
185
1.86M
        return Status::OK();
186
1.85M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.07M
    Status reset() override {
172
1.07M
        RETURN_IF_CATCH_EXCEPTION({
173
1.07M
            size_t block_size = _options.data_page_size;
174
1.07M
            _count = 0;
175
1.07M
            _raw_data_size = 0;
176
1.07M
            _data.clear();
177
1.07M
            _data.reserve(block_size);
178
1.07M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.07M
                    << "buffer must be naturally-aligned";
180
1.07M
            _buffer.clear();
181
1.07M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.07M
            _finished = false;
183
1.07M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.07M
        });
185
1.07M
        return Status::OK();
186
1.07M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
92.1k
    Status reset() override {
172
92.1k
        RETURN_IF_CATCH_EXCEPTION({
173
92.1k
            size_t block_size = _options.data_page_size;
174
92.1k
            _count = 0;
175
92.1k
            _raw_data_size = 0;
176
92.1k
            _data.clear();
177
92.1k
            _data.reserve(block_size);
178
92.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
92.1k
                    << "buffer must be naturally-aligned";
180
92.1k
            _buffer.clear();
181
92.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
92.1k
            _finished = false;
183
92.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
92.1k
        });
185
92.1k
        return Status::OK();
186
92.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
18.0k
    Status reset() override {
172
18.0k
        RETURN_IF_CATCH_EXCEPTION({
173
18.0k
            size_t block_size = _options.data_page_size;
174
18.0k
            _count = 0;
175
18.0k
            _raw_data_size = 0;
176
18.0k
            _data.clear();
177
18.0k
            _data.reserve(block_size);
178
18.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
18.0k
                    << "buffer must be naturally-aligned";
180
18.0k
            _buffer.clear();
181
18.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
18.0k
            _finished = false;
183
18.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
18.0k
        });
185
18.1k
        return Status::OK();
186
18.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
182k
    Status reset() override {
172
182k
        RETURN_IF_CATCH_EXCEPTION({
173
182k
            size_t block_size = _options.data_page_size;
174
182k
            _count = 0;
175
182k
            _raw_data_size = 0;
176
182k
            _data.clear();
177
182k
            _data.reserve(block_size);
178
182k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
182k
                    << "buffer must be naturally-aligned";
180
182k
            _buffer.clear();
181
182k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
182k
            _finished = false;
183
182k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
182k
        });
185
182k
        return Status::OK();
186
182k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
140k
    Status reset() override {
172
140k
        RETURN_IF_CATCH_EXCEPTION({
173
140k
            size_t block_size = _options.data_page_size;
174
140k
            _count = 0;
175
140k
            _raw_data_size = 0;
176
140k
            _data.clear();
177
140k
            _data.reserve(block_size);
178
140k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
140k
                    << "buffer must be naturally-aligned";
180
140k
            _buffer.clear();
181
140k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
140k
            _finished = false;
183
140k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
140k
        });
185
140k
        return Status::OK();
186
140k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
22.9k
    Status reset() override {
172
22.9k
        RETURN_IF_CATCH_EXCEPTION({
173
22.9k
            size_t block_size = _options.data_page_size;
174
22.9k
            _count = 0;
175
22.9k
            _raw_data_size = 0;
176
22.9k
            _data.clear();
177
22.9k
            _data.reserve(block_size);
178
22.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.9k
                    << "buffer must be naturally-aligned";
180
22.9k
            _buffer.clear();
181
22.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.9k
            _finished = false;
183
22.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.9k
        });
185
23.0k
        return Status::OK();
186
22.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
22.9k
    Status reset() override {
172
22.9k
        RETURN_IF_CATCH_EXCEPTION({
173
22.9k
            size_t block_size = _options.data_page_size;
174
22.9k
            _count = 0;
175
22.9k
            _raw_data_size = 0;
176
22.9k
            _data.clear();
177
22.9k
            _data.reserve(block_size);
178
22.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.9k
                    << "buffer must be naturally-aligned";
180
22.9k
            _buffer.clear();
181
22.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.9k
            _finished = false;
183
22.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.9k
        });
185
22.9k
        return Status::OK();
186
22.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
38.6k
    Status reset() override {
172
38.6k
        RETURN_IF_CATCH_EXCEPTION({
173
38.6k
            size_t block_size = _options.data_page_size;
174
38.6k
            _count = 0;
175
38.6k
            _raw_data_size = 0;
176
38.6k
            _data.clear();
177
38.6k
            _data.reserve(block_size);
178
38.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
38.6k
                    << "buffer must be naturally-aligned";
180
38.6k
            _buffer.clear();
181
38.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
38.6k
            _finished = false;
183
38.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
38.6k
        });
185
38.6k
        return Status::OK();
186
38.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
394
    Status reset() override {
172
394
        RETURN_IF_CATCH_EXCEPTION({
173
394
            size_t block_size = _options.data_page_size;
174
394
            _count = 0;
175
394
            _raw_data_size = 0;
176
394
            _data.clear();
177
394
            _data.reserve(block_size);
178
394
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
394
                    << "buffer must be naturally-aligned";
180
394
            _buffer.clear();
181
394
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
394
            _finished = false;
183
394
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
394
        });
185
394
        return Status::OK();
186
394
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
74.0k
    Status reset() override {
172
74.0k
        RETURN_IF_CATCH_EXCEPTION({
173
74.0k
            size_t block_size = _options.data_page_size;
174
74.0k
            _count = 0;
175
74.0k
            _raw_data_size = 0;
176
74.0k
            _data.clear();
177
74.0k
            _data.reserve(block_size);
178
74.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
74.0k
                    << "buffer must be naturally-aligned";
180
74.0k
            _buffer.clear();
181
74.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
74.0k
            _finished = false;
183
74.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
74.0k
        });
185
74.0k
        return Status::OK();
186
74.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
88.3k
    Status reset() override {
172
88.3k
        RETURN_IF_CATCH_EXCEPTION({
173
88.3k
            size_t block_size = _options.data_page_size;
174
88.3k
            _count = 0;
175
88.3k
            _raw_data_size = 0;
176
88.3k
            _data.clear();
177
88.3k
            _data.reserve(block_size);
178
88.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
88.3k
                    << "buffer must be naturally-aligned";
180
88.3k
            _buffer.clear();
181
88.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
88.3k
            _finished = false;
183
88.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
88.3k
        });
185
88.4k
        return Status::OK();
186
88.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
730
    Status reset() override {
172
730
        RETURN_IF_CATCH_EXCEPTION({
173
730
            size_t block_size = _options.data_page_size;
174
730
            _count = 0;
175
730
            _raw_data_size = 0;
176
730
            _data.clear();
177
730
            _data.reserve(block_size);
178
730
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
730
                    << "buffer must be naturally-aligned";
180
730
            _buffer.clear();
181
730
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
730
            _finished = false;
183
730
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
730
        });
185
730
        return Status::OK();
186
730
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
171
14.9k
    Status reset() override {
172
14.9k
        RETURN_IF_CATCH_EXCEPTION({
173
14.9k
            size_t block_size = _options.data_page_size;
174
14.9k
            _count = 0;
175
14.9k
            _raw_data_size = 0;
176
14.9k
            _data.clear();
177
14.9k
            _data.reserve(block_size);
178
14.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14.9k
                    << "buffer must be naturally-aligned";
180
14.9k
            _buffer.clear();
181
14.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14.9k
            _finished = false;
183
14.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14.9k
        });
185
15.0k
        return Status::OK();
186
14.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
285
    Status reset() override {
172
285
        RETURN_IF_CATCH_EXCEPTION({
173
285
            size_t block_size = _options.data_page_size;
174
285
            _count = 0;
175
285
            _raw_data_size = 0;
176
285
            _data.clear();
177
285
            _data.reserve(block_size);
178
285
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
285
                    << "buffer must be naturally-aligned";
180
285
            _buffer.clear();
181
285
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
285
            _finished = false;
183
285
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
285
        });
185
285
        return Status::OK();
186
285
    }
_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.5k
        return Status::OK();
186
19.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.4k
    Status reset() override {
172
31.4k
        RETURN_IF_CATCH_EXCEPTION({
173
31.4k
            size_t block_size = _options.data_page_size;
174
31.4k
            _count = 0;
175
31.4k
            _raw_data_size = 0;
176
31.4k
            _data.clear();
177
31.4k
            _data.reserve(block_size);
178
31.4k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.4k
                    << "buffer must be naturally-aligned";
180
31.4k
            _buffer.clear();
181
31.4k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.4k
            _finished = false;
183
31.4k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.4k
        });
185
31.4k
        return Status::OK();
186
31.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
32.2k
    Status reset() override {
172
32.2k
        RETURN_IF_CATCH_EXCEPTION({
173
32.2k
            size_t block_size = _options.data_page_size;
174
32.2k
            _count = 0;
175
32.2k
            _raw_data_size = 0;
176
32.2k
            _data.clear();
177
32.2k
            _data.reserve(block_size);
178
32.2k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
32.2k
                    << "buffer must be naturally-aligned";
180
32.2k
            _buffer.clear();
181
32.2k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
32.2k
            _finished = false;
183
32.2k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
32.2k
        });
185
32.2k
        return Status::OK();
186
32.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.22k
    Status reset() override {
172
2.22k
        RETURN_IF_CATCH_EXCEPTION({
173
2.22k
            size_t block_size = _options.data_page_size;
174
2.22k
            _count = 0;
175
2.22k
            _raw_data_size = 0;
176
2.22k
            _data.clear();
177
2.22k
            _data.reserve(block_size);
178
2.22k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.22k
                    << "buffer must be naturally-aligned";
180
2.22k
            _buffer.clear();
181
2.22k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.22k
            _finished = false;
183
2.22k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.22k
        });
185
2.22k
        return Status::OK();
186
2.22k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.53k
    Status reset() override {
172
1.53k
        RETURN_IF_CATCH_EXCEPTION({
173
1.53k
            size_t block_size = _options.data_page_size;
174
1.53k
            _count = 0;
175
1.53k
            _raw_data_size = 0;
176
1.53k
            _data.clear();
177
1.53k
            _data.reserve(block_size);
178
1.53k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.53k
                    << "buffer must be naturally-aligned";
180
1.53k
            _buffer.clear();
181
1.53k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.53k
            _finished = false;
183
1.53k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.53k
        });
185
1.53k
        return Status::OK();
186
1.53k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.38k
    Status reset() override {
172
1.38k
        RETURN_IF_CATCH_EXCEPTION({
173
1.38k
            size_t block_size = _options.data_page_size;
174
1.38k
            _count = 0;
175
1.38k
            _raw_data_size = 0;
176
1.38k
            _data.clear();
177
1.38k
            _data.reserve(block_size);
178
1.38k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.38k
                    << "buffer must be naturally-aligned";
180
1.38k
            _buffer.clear();
181
1.38k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.38k
            _finished = false;
183
1.38k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.38k
        });
185
1.38k
        return Status::OK();
186
1.38k
    }
187
188
2.41M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
2.41M
    size_t count() const override { return _count; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv
189
190
31.6k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
16.9k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
2.78k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
833
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
2.24k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
749
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
1.35k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
686
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
776
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv
Line
Count
Source
190
1.51k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.13k
    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
129
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
291
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.12k
    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
459k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
65.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
45.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
8.63k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
91.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
70.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
192
11.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
11.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
19.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Line
Count
Source
192
203
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
37.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
43.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
442
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.51k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
97
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.74k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
19.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
16.2k
    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
722
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
650
    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
775k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
385k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
46.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.46k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
90.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
70.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
19.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
191
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
36.6k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
44.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
288
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.46k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
188
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.75k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
16.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.16k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
812
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
733
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
765k
    OwnedSlice _finish(int final_size_of_type) {
216
765k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
765k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
765k
        int padding_elems = num_elems_after_padding - _count;
221
765k
        int padding_bytes = padding_elems * final_size_of_type;
222
22.1M
        for (int i = 0; i < padding_bytes; i++) {
223
21.3M
            _data.push_back(0);
224
21.3M
        }
225
226
        // reserve enough place for compression
227
765k
        _buffer.resize(
228
765k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
765k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
765k
        int64_t bytes =
232
765k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
765k
                                         num_elems_after_padding, final_size_of_type, 0);
234
765k
        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
765k
        encode_fixed32_le(&_buffer[0], _count);
244
765k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
765k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
765k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
765k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
765k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
765k
        return _buffer.build();
251
765k
    }
_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.14M
        for (int i = 0; i < padding_bytes; i++) {
223
6.77M
            _data.push_back(0);
224
6.77M
        }
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
45.3k
    OwnedSlice _finish(int final_size_of_type) {
216
45.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
45.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
45.3k
        int padding_elems = num_elems_after_padding - _count;
221
45.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
294k
        for (int i = 0; i < padding_bytes; i++) {
223
248k
            _data.push_back(0);
224
248k
        }
225
226
        // reserve enough place for compression
227
45.3k
        _buffer.resize(
228
45.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
45.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
45.3k
        int64_t bytes =
232
45.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
45.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
45.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
45.3k
        encode_fixed32_le(&_buffer[0], _count);
244
45.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
45.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
45.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
45.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
45.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
45.3k
        return _buffer.build();
251
45.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
8.63k
    OwnedSlice _finish(int final_size_of_type) {
216
8.63k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
8.63k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
8.63k
        int padding_elems = num_elems_after_padding - _count;
221
8.63k
        int padding_bytes = padding_elems * final_size_of_type;
222
87.5k
        for (int i = 0; i < padding_bytes; i++) {
223
78.8k
            _data.push_back(0);
224
78.8k
        }
225
226
        // reserve enough place for compression
227
8.63k
        _buffer.resize(
228
8.63k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
8.63k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
8.63k
        int64_t bytes =
232
8.63k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
8.63k
                                         num_elems_after_padding, final_size_of_type, 0);
234
8.63k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
8.63k
        encode_fixed32_le(&_buffer[0], _count);
244
8.63k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
8.63k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
8.63k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
8.63k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
8.63k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
8.63k
        return _buffer.build();
251
8.63k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
91.6k
    OwnedSlice _finish(int final_size_of_type) {
216
91.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
91.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
91.6k
        int padding_elems = num_elems_after_padding - _count;
221
91.6k
        int padding_bytes = padding_elems * final_size_of_type;
222
4.41M
        for (int i = 0; i < padding_bytes; i++) {
223
4.31M
            _data.push_back(0);
224
4.31M
        }
225
226
        // reserve enough place for compression
227
91.6k
        _buffer.resize(
228
91.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
91.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
91.6k
        int64_t bytes =
232
91.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
91.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
91.6k
        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
91.6k
        encode_fixed32_le(&_buffer[0], _count);
244
91.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
91.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
91.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
91.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
91.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
91.6k
        return _buffer.build();
251
91.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
70.1k
    OwnedSlice _finish(int final_size_of_type) {
216
70.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
70.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
70.1k
        int padding_elems = num_elems_after_padding - _count;
221
70.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.33M
        for (int i = 0; i < padding_bytes; i++) {
223
3.26M
            _data.push_back(0);
224
3.26M
        }
225
226
        // reserve enough place for compression
227
70.1k
        _buffer.resize(
228
70.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
70.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
70.1k
        int64_t bytes =
232
70.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
70.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
70.1k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
70.1k
        encode_fixed32_le(&_buffer[0], _count);
244
70.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
70.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
70.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
70.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
70.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
70.1k
        return _buffer.build();
251
70.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
11.2k
    OwnedSlice _finish(int final_size_of_type) {
216
11.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.2k
        int padding_elems = num_elems_after_padding - _count;
221
11.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
721k
        for (int i = 0; i < padding_bytes; i++) {
223
710k
            _data.push_back(0);
224
710k
        }
225
226
        // reserve enough place for compression
227
11.2k
        _buffer.resize(
228
11.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.2k
        int64_t bytes =
232
11.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.2k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.2k
        encode_fixed32_le(&_buffer[0], _count);
244
11.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.2k
        return _buffer.build();
251
11.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
11.0k
    OwnedSlice _finish(int final_size_of_type) {
216
11.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.0k
        int padding_elems = num_elems_after_padding - _count;
221
11.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
241k
        for (int i = 0; i < padding_bytes; i++) {
223
230k
            _data.push_back(0);
224
230k
        }
225
226
        // reserve enough place for compression
227
11.0k
        _buffer.resize(
228
11.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.0k
        int64_t bytes =
232
11.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.0k
        encode_fixed32_le(&_buffer[0], _count);
244
11.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.0k
        return _buffer.build();
251
11.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
19.2k
    OwnedSlice _finish(int final_size_of_type) {
216
19.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.2k
        int padding_elems = num_elems_after_padding - _count;
221
19.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
870k
        for (int i = 0; i < padding_bytes; i++) {
223
850k
            _data.push_back(0);
224
850k
        }
225
226
        // reserve enough place for compression
227
19.2k
        _buffer.resize(
228
19.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.2k
        int64_t bytes =
232
19.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.2k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.2k
        encode_fixed32_le(&_buffer[0], _count);
244
19.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.2k
        return _buffer.build();
251
19.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
203
    OwnedSlice _finish(int final_size_of_type) {
216
203
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
203
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
203
        int padding_elems = num_elems_after_padding - _count;
221
203
        int padding_bytes = padding_elems * final_size_of_type;
222
2.78k
        for (int i = 0; i < padding_bytes; i++) {
223
2.58k
            _data.push_back(0);
224
2.58k
        }
225
226
        // reserve enough place for compression
227
203
        _buffer.resize(
228
203
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
203
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
203
        int64_t bytes =
232
203
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
203
                                         num_elems_after_padding, final_size_of_type, 0);
234
203
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
203
        encode_fixed32_le(&_buffer[0], _count);
244
203
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
203
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
203
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
203
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
203
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
203
        return _buffer.build();
251
203
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
37.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
798k
        for (int i = 0; i < padding_bytes; i++) {
223
761k
            _data.push_back(0);
224
761k
        }
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.6k
    OwnedSlice _finish(int final_size_of_type) {
216
43.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
43.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
43.6k
        int padding_elems = num_elems_after_padding - _count;
221
43.6k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.85M
        for (int i = 0; i < padding_bytes; i++) {
223
1.80M
            _data.push_back(0);
224
1.80M
        }
225
226
        // reserve enough place for compression
227
43.6k
        _buffer.resize(
228
43.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
43.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
43.6k
        int64_t bytes =
232
43.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
43.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
43.6k
        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.6k
        encode_fixed32_le(&_buffer[0], _count);
244
43.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
43.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
43.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
43.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
43.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
43.6k
        return _buffer.build();
251
43.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
442
    OwnedSlice _finish(int final_size_of_type) {
216
442
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
442
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
442
        int padding_elems = num_elems_after_padding - _count;
221
442
        int padding_bytes = padding_elems * final_size_of_type;
222
7.14k
        for (int i = 0; i < padding_bytes; i++) {
223
6.70k
            _data.push_back(0);
224
6.70k
        }
225
226
        // reserve enough place for compression
227
442
        _buffer.resize(
228
442
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
442
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
442
        int64_t bytes =
232
442
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
442
                                         num_elems_after_padding, final_size_of_type, 0);
234
442
        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
442
        encode_fixed32_le(&_buffer[0], _count);
244
442
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
442
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
442
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
442
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
442
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
442
        return _buffer.build();
251
442
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.51k
    OwnedSlice _finish(int final_size_of_type) {
216
7.51k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.51k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.51k
        int padding_elems = num_elems_after_padding - _count;
221
7.51k
        int padding_bytes = padding_elems * final_size_of_type;
222
394k
        for (int i = 0; i < padding_bytes; i++) {
223
386k
            _data.push_back(0);
224
386k
        }
225
226
        // reserve enough place for compression
227
7.51k
        _buffer.resize(
228
7.51k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.51k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.51k
        int64_t bytes =
232
7.51k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.51k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.51k
        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.51k
        encode_fixed32_le(&_buffer[0], _count);
244
7.51k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.51k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.51k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.51k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.51k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.51k
        return _buffer.build();
251
7.51k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
97
    OwnedSlice _finish(int final_size_of_type) {
216
97
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
97
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
97
        int padding_elems = num_elems_after_padding - _count;
221
97
        int padding_bytes = padding_elems * final_size_of_type;
222
5.67k
        for (int i = 0; i < padding_bytes; i++) {
223
5.58k
            _data.push_back(0);
224
5.58k
        }
225
226
        // reserve enough place for compression
227
97
        _buffer.resize(
228
97
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
97
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
97
        int64_t bytes =
232
97
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
97
                                         num_elems_after_padding, final_size_of_type, 0);
234
97
        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
97
        encode_fixed32_le(&_buffer[0], _count);
244
97
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
97
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
97
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
97
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
97
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
97
        return _buffer.build();
251
97
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.74k
    OwnedSlice _finish(int final_size_of_type) {
216
9.74k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.74k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.74k
        int padding_elems = num_elems_after_padding - _count;
221
9.74k
        int padding_bytes = padding_elems * final_size_of_type;
222
117k
        for (int i = 0; i < padding_bytes; i++) {
223
108k
            _data.push_back(0);
224
108k
        }
225
226
        // reserve enough place for compression
227
9.74k
        _buffer.resize(
228
9.74k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.74k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.74k
        int64_t bytes =
232
9.74k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.74k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.74k
        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.74k
        encode_fixed32_le(&_buffer[0], _count);
244
9.74k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.74k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.74k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.74k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.74k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.74k
        return _buffer.build();
251
9.74k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
19.0k
    OwnedSlice _finish(int final_size_of_type) {
216
19.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.0k
        int padding_elems = num_elems_after_padding - _count;
221
19.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
502k
        for (int i = 0; i < padding_bytes; i++) {
223
483k
            _data.push_back(0);
224
483k
        }
225
226
        // reserve enough place for compression
227
19.0k
        _buffer.resize(
228
19.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.0k
        int64_t bytes =
232
19.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.0k
        encode_fixed32_le(&_buffer[0], _count);
244
19.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.0k
        return _buffer.build();
251
19.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
16.2k
    OwnedSlice _finish(int final_size_of_type) {
216
16.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.2k
        int padding_elems = num_elems_after_padding - _count;
221
16.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.10M
        for (int i = 0; i < padding_bytes; i++) {
223
1.09M
            _data.push_back(0);
224
1.09M
        }
225
226
        // reserve enough place for compression
227
16.2k
        _buffer.resize(
228
16.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.2k
        int64_t bytes =
232
16.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.2k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
16.2k
        encode_fixed32_le(&_buffer[0], _count);
244
16.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.2k
        return _buffer.build();
251
16.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
161k
        for (int i = 0; i < padding_bytes; i++) {
223
160k
            _data.push_back(0);
224
160k
        }
225
226
        // reserve enough place for compression
227
1.06k
        _buffer.resize(
228
1.06k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.06k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.06k
        int64_t bytes =
232
1.06k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.06k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.06k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
1.06k
        encode_fixed32_le(&_buffer[0], _count);
244
1.06k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.06k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.06k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.06k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.06k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.06k
        return _buffer.build();
251
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
722
    OwnedSlice _finish(int final_size_of_type) {
216
722
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
722
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
722
        int padding_elems = num_elems_after_padding - _count;
221
722
        int padding_bytes = padding_elems * final_size_of_type;
222
15.2k
        for (int i = 0; i < padding_bytes; i++) {
223
14.5k
            _data.push_back(0);
224
14.5k
        }
225
226
        // reserve enough place for compression
227
722
        _buffer.resize(
228
722
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
722
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
722
        int64_t bytes =
232
722
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
722
                                         num_elems_after_padding, final_size_of_type, 0);
234
722
        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
722
        encode_fixed32_le(&_buffer[0], _count);
244
722
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
722
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
722
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
722
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
722
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
722
        return _buffer.build();
251
722
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
650
    OwnedSlice _finish(int final_size_of_type) {
216
650
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
650
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
650
        int padding_elems = num_elems_after_padding - _count;
221
650
        int padding_bytes = padding_elems * final_size_of_type;
222
52.9k
        for (int i = 0; i < padding_bytes; i++) {
223
52.3k
            _data.push_back(0);
224
52.3k
        }
225
226
        // reserve enough place for compression
227
650
        _buffer.resize(
228
650
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
650
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
650
        int64_t bytes =
232
650
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
650
                                         num_elems_after_padding, final_size_of_type, 0);
234
650
        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
650
        encode_fixed32_le(&_buffer[0], _count);
244
650
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
650
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
650
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
650
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
650
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
650
        return _buffer.build();
251
650
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.43M
    CppType cell(int idx) const {
256
1.43M
        DCHECK_GE(idx, 0);
257
1.43M
        CppType ret;
258
1.43M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.43M
        return ret;
260
1.43M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
673k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
673k
        CppType ret;
258
673k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
673k
        return ret;
260
673k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
89.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
89.9k
        CppType ret;
258
89.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
89.9k
        return ret;
260
89.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
17.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
17.1k
        CppType ret;
258
17.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
17.1k
        return ret;
260
17.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
182k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
182k
        CppType ret;
258
182k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
182k
        return ret;
260
182k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
140k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
140k
        CppType ret;
258
140k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
140k
        return ret;
260
140k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
21.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.5k
        CppType ret;
258
21.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.5k
        return ret;
260
21.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
21.4k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.4k
        CppType ret;
258
21.4k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.4k
        return ret;
260
21.4k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
37.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
37.7k
        CppType ret;
258
37.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
37.7k
        return ret;
260
37.7k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
396
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
396
        CppType ret;
258
396
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
396
        return ret;
260
396
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
72.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
84.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
84.5k
        CppType ret;
258
84.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
84.5k
        return ret;
260
84.5k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
684
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
684
        CppType ret;
258
684
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
684
        return ret;
260
684
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
14.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
14.6k
        CppType ret;
258
14.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
14.6k
        return ret;
260
14.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
178
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
178
        CppType ret;
258
178
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
178
        return ret;
260
178
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.64k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.64k
        CppType ret;
258
9.64k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.64k
        return ret;
260
9.64k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
36.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
36.3k
        CppType ret;
258
36.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
36.3k
        return ret;
260
36.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.4k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.4k
        CppType ret;
258
31.4k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.4k
        return ret;
260
31.4k
    }
_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.34k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.34k
        CppType ret;
258
1.34k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.34k
        return ret;
260
1.34k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.23k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.23k
        CppType ret;
258
1.23k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.23k
        return ret;
260
1.23k
    }
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
1.88M
                                       int& size_of_element) {
277
1.88M
    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
1.88M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
1.88M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
1.88M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
1.88M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
1.88M
    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
1.88M
    switch (size_of_element) {
295
132k
    case 1:
296
159k
    case 2:
297
161k
    case 3:
298
1.32M
    case 4:
299
1.80M
    case 8:
300
1.80M
    case 12:
301
1.87M
    case 16:
302
1.88M
    case 32:
303
1.88M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
1.88M
    }
307
1.88M
    return Status::OK();
308
1.88M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.18M
            : _data(data),
315
1.18M
              _options(options),
316
1.18M
              _parsed(false),
317
1.18M
              _num_elements(0),
318
1.18M
              _num_element_after_padding(0),
319
1.18M
              _size_of_element(0),
320
1.18M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
639k
            : _data(data),
315
639k
              _options(options),
316
639k
              _parsed(false),
317
639k
              _num_elements(0),
318
639k
              _num_element_after_padding(0),
319
639k
              _size_of_element(0),
320
639k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
82.5k
            : _data(data),
315
82.5k
              _options(options),
316
82.5k
              _parsed(false),
317
82.5k
              _num_elements(0),
318
82.5k
              _num_element_after_padding(0),
319
82.5k
              _size_of_element(0),
320
82.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.6k
            : _data(data),
315
19.6k
              _options(options),
316
19.6k
              _parsed(false),
317
19.6k
              _num_elements(0),
318
19.6k
              _num_element_after_padding(0),
319
19.6k
              _size_of_element(0),
320
19.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
46.8k
            : _data(data),
315
46.8k
              _options(options),
316
46.8k
              _parsed(false),
317
46.8k
              _num_elements(0),
318
46.8k
              _num_element_after_padding(0),
319
46.8k
              _size_of_element(0),
320
46.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
91.5k
            : _data(data),
315
91.5k
              _options(options),
316
91.5k
              _parsed(false),
317
91.5k
              _num_elements(0),
318
91.5k
              _num_element_after_padding(0),
319
91.5k
              _size_of_element(0),
320
91.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.7k
            : _data(data),
315
14.7k
              _options(options),
316
14.7k
              _parsed(false),
317
14.7k
              _num_elements(0),
318
14.7k
              _num_element_after_padding(0),
319
14.7k
              _size_of_element(0),
320
14.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.9k
            : _data(data),
315
19.9k
              _options(options),
316
19.9k
              _parsed(false),
317
19.9k
              _num_elements(0),
318
19.9k
              _num_element_after_padding(0),
319
19.9k
              _size_of_element(0),
320
19.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
29.5k
            : _data(data),
315
29.5k
              _options(options),
316
29.5k
              _parsed(false),
317
29.5k
              _num_elements(0),
318
29.5k
              _num_element_after_padding(0),
319
29.5k
              _size_of_element(0),
320
29.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.58k
            : _data(data),
315
1.58k
              _options(options),
316
1.58k
              _parsed(false),
317
1.58k
              _num_elements(0),
318
1.58k
              _num_element_after_padding(0),
319
1.58k
              _size_of_element(0),
320
1.58k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
61.4k
            : _data(data),
315
61.4k
              _options(options),
316
61.4k
              _parsed(false),
317
61.4k
              _num_elements(0),
318
61.4k
              _num_element_after_padding(0),
319
61.4k
              _size_of_element(0),
320
61.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
68.5k
            : _data(data),
315
68.5k
              _options(options),
316
68.5k
              _parsed(false),
317
68.5k
              _num_elements(0),
318
68.5k
              _num_element_after_padding(0),
319
68.5k
              _size_of_element(0),
320
68.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.42k
            : _data(data),
315
2.42k
              _options(options),
316
2.42k
              _parsed(false),
317
2.42k
              _num_elements(0),
318
2.42k
              _num_element_after_padding(0),
319
2.42k
              _size_of_element(0),
320
2.42k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
16.0k
            : _data(data),
315
16.0k
              _options(options),
316
16.0k
              _parsed(false),
317
16.0k
              _num_elements(0),
318
16.0k
              _num_element_after_padding(0),
319
16.0k
              _size_of_element(0),
320
16.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.28k
            : _data(data),
315
1.28k
              _options(options),
316
1.28k
              _parsed(false),
317
1.28k
              _num_elements(0),
318
1.28k
              _num_element_after_padding(0),
319
1.28k
              _size_of_element(0),
320
1.28k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.8k
            : _data(data),
315
15.8k
              _options(options),
316
15.8k
              _parsed(false),
317
15.8k
              _num_elements(0),
318
15.8k
              _num_element_after_padding(0),
319
15.8k
              _size_of_element(0),
320
15.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
41.8k
            : _data(data),
315
41.8k
              _options(options),
316
41.8k
              _parsed(false),
317
41.8k
              _num_elements(0),
318
41.8k
              _num_element_after_padding(0),
319
41.8k
              _size_of_element(0),
320
41.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.4k
            : _data(data),
315
30.4k
              _options(options),
316
30.4k
              _parsed(false),
317
30.4k
              _num_elements(0),
318
30.4k
              _num_element_after_padding(0),
319
30.4k
              _size_of_element(0),
320
30.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.81k
            : _data(data),
315
1.81k
              _options(options),
316
1.81k
              _parsed(false),
317
1.81k
              _num_elements(0),
318
1.81k
              _num_element_after_padding(0),
319
1.81k
              _size_of_element(0),
320
1.81k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.21k
            : _data(data),
315
1.21k
              _options(options),
316
1.21k
              _parsed(false),
317
1.21k
              _num_elements(0),
318
1.21k
              _num_element_after_padding(0),
319
1.21k
              _size_of_element(0),
320
1.21k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_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) {}
321
322
1.18M
    Status init() override {
323
1.18M
        CHECK(!_parsed);
324
1.18M
        size_t unused;
325
1.18M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.18M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.18M
        if (_data.size !=
329
1.18M
            _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.18M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.18M
                     _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.18M
        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.18M
        _parsed = true;
349
1.18M
        return Status::OK();
350
1.18M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
639k
    Status init() override {
323
639k
        CHECK(!_parsed);
324
639k
        size_t unused;
325
639k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
639k
                                                 _num_element_after_padding, _size_of_element));
327
328
639k
        if (_data.size !=
329
639k
            _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
639k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
639k
                     _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
639k
        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
639k
        _parsed = true;
349
639k
        return Status::OK();
350
639k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
82.4k
    Status init() override {
323
82.4k
        CHECK(!_parsed);
324
82.4k
        size_t unused;
325
82.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
82.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
82.4k
        if (_data.size !=
329
82.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
82.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
82.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
82.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
82.4k
        _parsed = true;
349
82.4k
        return Status::OK();
350
82.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
19.6k
    Status init() override {
323
19.6k
        CHECK(!_parsed);
324
19.6k
        size_t unused;
325
19.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.6k
        if (_data.size !=
329
19.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
19.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
19.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
19.6k
        _parsed = true;
349
19.6k
        return Status::OK();
350
19.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
46.8k
    Status init() override {
323
46.8k
        CHECK(!_parsed);
324
46.8k
        size_t unused;
325
46.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
46.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
46.8k
        if (_data.size !=
329
46.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
46.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
46.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
46.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
46.8k
        _parsed = true;
349
46.8k
        return Status::OK();
350
46.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
91.5k
    Status init() override {
323
91.5k
        CHECK(!_parsed);
324
91.5k
        size_t unused;
325
91.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
91.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
91.5k
        if (_data.size !=
329
91.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
91.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
91.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
91.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
91.5k
        _parsed = true;
349
91.5k
        return Status::OK();
350
91.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
14.7k
    Status init() override {
323
14.7k
        CHECK(!_parsed);
324
14.7k
        size_t unused;
325
14.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.7k
        if (_data.size !=
329
14.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
14.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.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
14.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
14.7k
        _parsed = true;
349
14.7k
        return Status::OK();
350
14.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
19.9k
    Status init() override {
323
19.9k
        CHECK(!_parsed);
324
19.9k
        size_t unused;
325
19.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.9k
        if (_data.size !=
329
19.9k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
19.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.9k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
19.9k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
19.9k
        _parsed = true;
349
19.9k
        return Status::OK();
350
19.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
29.5k
    Status init() override {
323
29.5k
        CHECK(!_parsed);
324
29.5k
        size_t unused;
325
29.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
29.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
29.5k
        if (_data.size !=
329
29.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
29.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
29.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
29.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
29.5k
        _parsed = true;
349
29.5k
        return Status::OK();
350
29.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
1.58k
    Status init() override {
323
1.58k
        CHECK(!_parsed);
324
1.58k
        size_t unused;
325
1.58k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.58k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.58k
        if (_data.size !=
329
1.58k
            _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.58k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.58k
                     _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.58k
        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.58k
        _parsed = true;
349
1.58k
        return Status::OK();
350
1.58k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
61.4k
    Status init() override {
323
61.4k
        CHECK(!_parsed);
324
61.4k
        size_t unused;
325
61.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
61.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
61.4k
        if (_data.size !=
329
61.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
61.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
61.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
61.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
61.4k
        _parsed = true;
349
61.4k
        return Status::OK();
350
61.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
68.5k
    Status init() override {
323
68.5k
        CHECK(!_parsed);
324
68.5k
        size_t unused;
325
68.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
68.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
68.5k
        if (_data.size !=
329
68.5k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
68.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
68.5k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
68.5k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
68.5k
        _parsed = true;
349
68.5k
        return Status::OK();
350
68.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.42k
    Status init() override {
323
2.42k
        CHECK(!_parsed);
324
2.42k
        size_t unused;
325
2.42k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.42k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.42k
        if (_data.size !=
329
2.42k
            _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.42k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.42k
                     _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.42k
        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.42k
        _parsed = true;
349
2.42k
        return Status::OK();
350
2.42k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
16.0k
    Status init() override {
323
16.0k
        CHECK(!_parsed);
324
16.0k
        size_t unused;
325
16.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
16.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
16.0k
        if (_data.size !=
329
16.0k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
16.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
16.0k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
16.0k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
16.0k
        _parsed = true;
349
16.0k
        return Status::OK();
350
16.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.28k
    Status init() override {
323
1.28k
        CHECK(!_parsed);
324
1.28k
        size_t unused;
325
1.28k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.28k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.28k
        if (_data.size !=
329
1.28k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.28k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.28k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.28k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.28k
        _parsed = true;
349
1.28k
        return Status::OK();
350
1.28k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.8k
    Status init() override {
323
15.8k
        CHECK(!_parsed);
324
15.8k
        size_t unused;
325
15.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.8k
        if (_data.size !=
329
15.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
15.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
15.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
15.8k
        _parsed = true;
349
15.8k
        return Status::OK();
350
15.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
41.8k
    Status init() override {
323
41.8k
        CHECK(!_parsed);
324
41.8k
        size_t unused;
325
41.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
41.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
41.8k
        if (_data.size !=
329
41.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
41.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
41.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
41.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
41.8k
        _parsed = true;
349
41.8k
        return Status::OK();
350
41.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
30.4k
    Status init() override {
323
30.4k
        CHECK(!_parsed);
324
30.4k
        size_t unused;
325
30.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.4k
        if (_data.size !=
329
30.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
30.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.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
30.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
30.4k
        _parsed = true;
349
30.4k
        return Status::OK();
350
30.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.81k
    Status init() override {
323
1.81k
        CHECK(!_parsed);
324
1.81k
        size_t unused;
325
1.81k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.81k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.81k
        if (_data.size !=
329
1.81k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.81k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.81k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.81k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.81k
        _parsed = true;
349
1.81k
        return Status::OK();
350
1.81k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.21k
    Status init() override {
323
1.21k
        CHECK(!_parsed);
324
1.21k
        size_t unused;
325
1.21k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.21k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.21k
        if (_data.size !=
329
1.21k
            _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.21k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.21k
                     _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.21k
        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.21k
        _parsed = true;
349
1.21k
        return Status::OK();
350
1.21k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
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
    }
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.75M
    Status seek_to_position_in_page(size_t pos) override {
359
2.75M
        DCHECK(_parsed) << "Must call init()";
360
2.75M
        if (_num_elements == 0) [[unlikely]] {
361
5.24k
            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.24k
        }
366
367
2.75M
        DCHECK_LE(pos, _num_elements);
368
2.75M
        _cur_index = pos;
369
2.75M
        return Status::OK();
370
2.75M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
2.11M
    Status seek_to_position_in_page(size_t pos) override {
359
2.11M
        DCHECK(_parsed) << "Must call init()";
360
2.11M
        if (_num_elements == 0) [[unlikely]] {
361
2.36k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
2.36k
        }
366
367
2.11M
        DCHECK_LE(pos, _num_elements);
368
2.11M
        _cur_index = pos;
369
2.11M
        return Status::OK();
370
2.11M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
72.1k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
72.1k
        if (_num_elements == 0) [[unlikely]] {
361
358
            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
358
        }
366
367
72.1k
        DCHECK_LE(pos, _num_elements);
368
72.1k
        _cur_index = pos;
369
72.1k
        return Status::OK();
370
72.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
2.87k
    Status seek_to_position_in_page(size_t pos) override {
359
2.87k
        DCHECK(_parsed) << "Must call init()";
360
2.87k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
2.87k
        DCHECK_LE(pos, _num_elements);
368
2.87k
        _cur_index = pos;
369
2.87k
        return Status::OK();
370
2.87k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
36.7k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
36.7k
        if (_num_elements == 0) [[unlikely]] {
361
1.30k
            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.30k
        }
366
367
36.7k
        DCHECK_LE(pos, _num_elements);
368
36.7k
        _cur_index = pos;
369
36.7k
        return Status::OK();
370
36.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
14.2k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
14.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
14.2k
        DCHECK_LE(pos, _num_elements);
368
14.2k
        _cur_index = pos;
369
14.2k
        return Status::OK();
370
14.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
3.46k
    Status seek_to_position_in_page(size_t pos) override {
359
3.46k
        DCHECK(_parsed) << "Must call init()";
360
3.46k
        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
3.46k
        DCHECK_LE(pos, _num_elements);
368
3.46k
        _cur_index = pos;
369
3.46k
        return Status::OK();
370
3.46k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.9k
    Status seek_to_position_in_page(size_t pos) override {
359
17.9k
        DCHECK(_parsed) << "Must call init()";
360
17.9k
        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.9k
        DCHECK_LE(pos, _num_elements);
368
17.9k
        _cur_index = pos;
369
17.9k
        return Status::OK();
370
17.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.9k
    Status seek_to_position_in_page(size_t pos) override {
359
12.9k
        DCHECK(_parsed) << "Must call init()";
360
12.9k
        if (_num_elements == 0) [[unlikely]] {
361
2
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
2
        }
366
367
12.9k
        DCHECK_LE(pos, _num_elements);
368
12.9k
        _cur_index = pos;
369
12.9k
        return Status::OK();
370
12.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
10.4k
    Status seek_to_position_in_page(size_t pos) override {
359
10.4k
        DCHECK(_parsed) << "Must call init()";
360
10.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
10.4k
        DCHECK_LE(pos, _num_elements);
368
10.4k
        _cur_index = pos;
369
10.4k
        return Status::OK();
370
10.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
373k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
373k
        if (_num_elements == 0) [[unlikely]] {
361
777
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
777
        }
366
367
373k
        DCHECK_LE(pos, _num_elements);
368
373k
        _cur_index = pos;
369
373k
        return Status::OK();
370
373k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
50.3k
    Status seek_to_position_in_page(size_t pos) override {
359
50.3k
        DCHECK(_parsed) << "Must call init()";
360
50.3k
        if (_num_elements == 0) [[unlikely]] {
361
15
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
15
        }
366
367
50.3k
        DCHECK_LE(pos, _num_elements);
368
50.3k
        _cur_index = pos;
369
50.3k
        return Status::OK();
370
50.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
7.33k
    Status seek_to_position_in_page(size_t pos) override {
359
7.33k
        DCHECK(_parsed) << "Must call init()";
360
7.33k
        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
7.33k
        DCHECK_LE(pos, _num_elements);
368
7.33k
        _cur_index = pos;
369
7.33k
        return Status::OK();
370
7.33k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.93k
    Status seek_to_position_in_page(size_t pos) override {
359
6.93k
        DCHECK(_parsed) << "Must call init()";
360
6.93k
        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.93k
        DCHECK_LE(pos, _num_elements);
368
6.93k
        _cur_index = pos;
369
6.93k
        return Status::OK();
370
6.93k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
28
    Status seek_to_position_in_page(size_t pos) override {
359
28
        DCHECK(_parsed) << "Must call init()";
360
28
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
28
        DCHECK_LE(pos, _num_elements);
368
28
        _cur_index = pos;
369
28
        return Status::OK();
370
28
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
803
    Status seek_to_position_in_page(size_t pos) override {
359
803
        DCHECK(_parsed) << "Must call init()";
360
803
        if (_num_elements == 0) [[unlikely]] {
361
33
            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
33
        }
366
367
803
        DCHECK_LE(pos, _num_elements);
368
803
        _cur_index = pos;
369
803
        return Status::OK();
370
803
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.1k
    Status seek_to_position_in_page(size_t pos) override {
359
17.1k
        DCHECK(_parsed) << "Must call init()";
360
17.1k
        if (_num_elements == 0) [[unlikely]] {
361
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
17.1k
        DCHECK_LE(pos, _num_elements);
368
17.1k
        _cur_index = pos;
369
17.1k
        return Status::OK();
370
17.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
11.9k
    Status seek_to_position_in_page(size_t pos) override {
359
11.9k
        DCHECK(_parsed) << "Must call init()";
360
11.9k
        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
11.9k
        DCHECK_LE(pos, _num_elements);
368
11.9k
        _cur_index = pos;
369
11.9k
        return Status::OK();
370
11.9k
    }
_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
74
    Status seek_to_position_in_page(size_t pos) override {
359
74
        DCHECK(_parsed) << "Must call init()";
360
74
        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
74
        DCHECK_LE(pos, _num_elements);
368
74
        _cur_index = pos;
369
74
        return Status::OK();
370
74
    }
_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.29M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.29M
        DCHECK(_parsed);
413
2.29M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.29M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.29M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.29M
        *n = max_fetch;
422
2.29M
        if constexpr (forward_index) {
423
1.71M
            _cur_index += max_fetch;
424
1.71M
        }
425
426
2.29M
        return Status::OK();
427
2.29M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
363k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
363k
        DCHECK(_parsed);
413
363k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
363k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
363k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
363k
        *n = max_fetch;
422
363k
        if constexpr (forward_index) {
423
363k
            _cur_index += max_fetch;
424
363k
        }
425
426
363k
        return Status::OK();
427
363k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
180k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
180k
        DCHECK(_parsed);
413
180k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
180k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
180k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
180k
        *n = max_fetch;
422
180k
        if constexpr (forward_index) {
423
180k
            _cur_index += max_fetch;
424
180k
        }
425
426
180k
        return Status::OK();
427
180k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
17.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
17.1k
        DCHECK(_parsed);
413
17.1k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
17.1k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
17.1k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
17.1k
        *n = max_fetch;
422
17.1k
        if constexpr (forward_index) {
423
17.1k
            _cur_index += max_fetch;
424
17.1k
        }
425
426
17.1k
        return Status::OK();
427
17.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
59.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
59.1k
        DCHECK(_parsed);
413
59.1k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
59.1k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
59.1k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
59.1k
        *n = max_fetch;
422
59.1k
        if constexpr (forward_index) {
423
59.1k
            _cur_index += max_fetch;
424
59.1k
        }
425
426
59.1k
        return Status::OK();
427
59.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
336k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
336k
        DCHECK(_parsed);
413
336k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
336k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
336k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
336k
        *n = max_fetch;
422
336k
        if constexpr (forward_index) {
423
336k
            _cur_index += max_fetch;
424
336k
        }
425
426
336k
        return Status::OK();
427
336k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
576k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
576k
        DCHECK(_parsed);
413
576k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
576k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
576k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
576k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
576k
        return Status::OK();
427
576k
    }
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
27.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
27.4k
        DCHECK(_parsed);
413
27.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
27.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
27.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
27.4k
        *n = max_fetch;
422
27.4k
        if constexpr (forward_index) {
423
27.4k
            _cur_index += max_fetch;
424
27.4k
        }
425
426
27.4k
        return Status::OK();
427
27.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.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.8k
        DCHECK(_parsed);
413
14.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.8k
        *n = max_fetch;
422
14.8k
        if constexpr (forward_index) {
423
14.8k
            _cur_index += max_fetch;
424
14.8k
        }
425
426
14.8k
        return Status::OK();
427
14.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
22.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
22.8k
        DCHECK(_parsed);
413
22.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
22.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
22.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
22.8k
        *n = max_fetch;
422
22.8k
        if constexpr (forward_index) {
423
22.8k
            _cur_index += max_fetch;
424
22.8k
        }
425
426
22.8k
        return Status::OK();
427
22.8k
    }
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
2.72k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.72k
        DCHECK(_parsed);
413
2.72k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.72k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.72k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.72k
        *n = max_fetch;
422
2.72k
        if constexpr (forward_index) {
423
2.72k
            _cur_index += max_fetch;
424
2.72k
        }
425
426
2.72k
        return Status::OK();
427
2.72k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
500k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
500k
        DCHECK(_parsed);
413
500k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
500k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
500k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
500k
        *n = max_fetch;
422
500k
        if constexpr (forward_index) {
423
500k
            _cur_index += max_fetch;
424
500k
        }
425
426
500k
        return Status::OK();
427
500k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
89.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
89.3k
        DCHECK(_parsed);
413
89.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
89.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
89.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
89.3k
        *n = max_fetch;
422
89.3k
        if constexpr (forward_index) {
423
89.3k
            _cur_index += max_fetch;
424
89.3k
        }
425
426
89.3k
        return Status::OK();
427
89.3k
    }
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.23k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.23k
        DCHECK(_parsed);
413
1.23k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.23k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.23k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.23k
        *n = max_fetch;
422
1.23k
        if constexpr (forward_index) {
423
1.23k
            _cur_index += max_fetch;
424
1.23k
        }
425
426
1.23k
        return Status::OK();
427
1.23k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
7.46k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
7.46k
        DCHECK(_parsed);
413
7.46k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
7.46k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
7.46k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
7.46k
        *n = max_fetch;
422
7.46k
        if constexpr (forward_index) {
423
7.46k
            _cur_index += max_fetch;
424
7.46k
        }
425
426
7.46k
        return Status::OK();
427
7.46k
    }
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.22k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.22k
        DCHECK(_parsed);
413
1.22k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.22k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.22k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.22k
        *n = max_fetch;
422
1.22k
        if constexpr (forward_index) {
423
1.22k
            _cur_index += max_fetch;
424
1.22k
        }
425
426
1.22k
        return Status::OK();
427
1.22k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
10.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
10.4k
        DCHECK(_parsed);
413
10.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
10.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
10.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
10.4k
        *n = max_fetch;
422
10.4k
        if constexpr (forward_index) {
423
10.4k
            _cur_index += max_fetch;
424
10.4k
        }
425
426
10.4k
        return Status::OK();
427
10.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
39.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
39.1k
        DCHECK(_parsed);
413
39.1k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
39.1k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
39.1k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
39.1k
        *n = max_fetch;
422
39.1k
        if constexpr (forward_index) {
423
39.1k
            _cur_index += max_fetch;
424
39.1k
        }
425
426
39.1k
        return Status::OK();
427
39.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
29.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
29.8k
        DCHECK(_parsed);
413
29.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
29.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
29.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
29.8k
        *n = max_fetch;
422
29.8k
        if constexpr (forward_index) {
423
29.8k
            _cur_index += max_fetch;
424
29.8k
        }
425
426
29.8k
        return Status::OK();
427
29.8k
    }
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.24k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.24k
        DCHECK(_parsed);
413
3.24k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.24k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.24k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.24k
        *n = max_fetch;
422
3.24k
        if constexpr (forward_index) {
423
3.24k
            _cur_index += max_fetch;
424
3.24k
        }
425
426
3.24k
        return Status::OK();
427
3.24k
    }
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.79k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.79k
        DCHECK(_parsed);
413
5.79k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.79k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.79k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.79k
        *n = max_fetch;
422
5.79k
        if constexpr (forward_index) {
423
5.79k
            _cur_index += max_fetch;
424
5.79k
        }
425
426
5.79k
        return Status::OK();
427
5.79k
    }
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.81k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.81k
        DCHECK(_parsed);
413
5.81k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.81k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.81k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.81k
        *n = max_fetch;
422
5.81k
        if constexpr (forward_index) {
423
5.81k
            _cur_index += max_fetch;
424
5.81k
        }
425
426
5.81k
        return Status::OK();
427
5.81k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
1.71M
    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
363k
    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
180k
    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
17.1k
    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
59.1k
    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
336k
    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
27.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.7k
    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.8k
    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
2.72k
    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
500k
    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
89.3k
    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.23k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
7.46k
    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.22k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
10.4k
    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
39.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
29.8k
    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.24k
    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.79k
    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.81k
    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
313k
                          MutableColumnPtr& dst) override {
433
313k
        DCHECK(_parsed);
434
313k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
313k
        auto total = *n;
440
313k
        auto read_count = 0;
441
313k
        _buffer.resize(total);
442
67.7M
        for (size_t i = 0; i < total; ++i) {
443
67.4M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
67.4M
            if (UNLIKELY(ord >= _num_elements)) {
445
9.78k
                break;
446
9.78k
            }
447
448
67.4M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
67.4M
        }
450
451
313k
        if (LIKELY(read_count > 0)) {
452
313k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
313k
        }
454
455
313k
        *n = read_count;
456
313k
        return Status::OK();
457
313k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
69.3k
                          MutableColumnPtr& dst) override {
433
69.3k
        DCHECK(_parsed);
434
69.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
69.3k
        auto total = *n;
440
69.3k
        auto read_count = 0;
441
69.3k
        _buffer.resize(total);
442
8.20M
        for (size_t i = 0; i < total; ++i) {
443
8.14M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8.14M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.01k
                break;
446
1.01k
            }
447
448
8.14M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8.14M
        }
450
451
69.3k
        if (LIKELY(read_count > 0)) {
452
69.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
69.3k
        }
454
455
69.3k
        *n = read_count;
456
69.3k
        return Status::OK();
457
69.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
22.2k
                          MutableColumnPtr& dst) override {
433
22.2k
        DCHECK(_parsed);
434
22.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
22.2k
        auto total = *n;
440
22.2k
        auto read_count = 0;
441
22.2k
        _buffer.resize(total);
442
849k
        for (size_t i = 0; i < total; ++i) {
443
827k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
827k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
827k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
827k
        }
450
451
22.2k
        if (LIKELY(read_count > 0)) {
452
22.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
22.2k
        }
454
455
22.2k
        *n = read_count;
456
22.2k
        return Status::OK();
457
22.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
8.41k
                          MutableColumnPtr& dst) override {
433
8.41k
        DCHECK(_parsed);
434
8.41k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8.41k
        auto total = *n;
440
8.41k
        auto read_count = 0;
441
8.41k
        _buffer.resize(total);
442
53.4k
        for (size_t i = 0; i < total; ++i) {
443
45.0k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
45.0k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
45.0k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
45.0k
        }
450
451
8.41k
        if (LIKELY(read_count > 0)) {
452
8.41k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8.41k
        }
454
455
8.41k
        *n = read_count;
456
8.41k
        return Status::OK();
457
8.41k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
22.0k
                          MutableColumnPtr& dst) override {
433
22.0k
        DCHECK(_parsed);
434
22.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
22.0k
        auto total = *n;
440
22.0k
        auto read_count = 0;
441
22.0k
        _buffer.resize(total);
442
2.46M
        for (size_t i = 0; i < total; ++i) {
443
2.44M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
2.44M
            if (UNLIKELY(ord >= _num_elements)) {
445
97
                break;
446
97
            }
447
448
2.44M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
2.44M
        }
450
451
22.0k
        if (LIKELY(read_count > 0)) {
452
22.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
22.0k
        }
454
455
22.0k
        *n = read_count;
456
22.0k
        return Status::OK();
457
22.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
31.4k
                          MutableColumnPtr& dst) override {
433
31.4k
        DCHECK(_parsed);
434
31.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.4k
        auto total = *n;
440
31.4k
        auto read_count = 0;
441
31.4k
        _buffer.resize(total);
442
4.20M
        for (size_t i = 0; i < total; ++i) {
443
4.17M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4.17M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.18k
                break;
446
1.18k
            }
447
448
4.17M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4.17M
        }
450
451
31.4k
        if (LIKELY(read_count > 0)) {
452
31.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.4k
        }
454
455
31.4k
        *n = read_count;
456
31.4k
        return Status::OK();
457
31.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
5.91k
                          MutableColumnPtr& dst) override {
433
5.91k
        DCHECK(_parsed);
434
5.91k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
5.91k
        auto total = *n;
440
5.91k
        auto read_count = 0;
441
5.91k
        _buffer.resize(total);
442
13.1k
        for (size_t i = 0; i < total; ++i) {
443
7.25k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.25k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
7.25k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.25k
        }
450
451
5.91k
        if (LIKELY(read_count > 0)) {
452
5.91k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
5.91k
        }
454
455
5.91k
        *n = read_count;
456
5.91k
        return Status::OK();
457
5.91k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.5k
                          MutableColumnPtr& dst) override {
433
10.5k
        DCHECK(_parsed);
434
10.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.5k
        auto total = *n;
440
10.5k
        auto read_count = 0;
441
10.5k
        _buffer.resize(total);
442
1.20M
        for (size_t i = 0; i < total; ++i) {
443
1.19M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.19M
            if (UNLIKELY(ord >= _num_elements)) {
445
30
                break;
446
30
            }
447
448
1.19M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.19M
        }
450
451
10.5k
        if (LIKELY(read_count > 0)) {
452
10.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.5k
        }
454
455
10.5k
        *n = read_count;
456
10.5k
        return Status::OK();
457
10.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
14.1k
                          MutableColumnPtr& dst) override {
433
14.1k
        DCHECK(_parsed);
434
14.1k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
14.1k
        auto total = *n;
440
14.1k
        auto read_count = 0;
441
14.1k
        _buffer.resize(total);
442
1.89M
        for (size_t i = 0; i < total; ++i) {
443
1.88M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.88M
            if (UNLIKELY(ord >= _num_elements)) {
445
408
                break;
446
408
            }
447
448
1.88M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.88M
        }
450
451
14.1k
        if (LIKELY(read_count > 0)) {
452
14.1k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
14.1k
        }
454
455
14.1k
        *n = read_count;
456
14.1k
        return Status::OK();
457
14.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.03k
                          MutableColumnPtr& dst) override {
433
2.03k
        DCHECK(_parsed);
434
2.03k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.03k
        auto total = *n;
440
2.03k
        auto read_count = 0;
441
2.03k
        _buffer.resize(total);
442
569k
        for (size_t i = 0; i < total; ++i) {
443
567k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
567k
            if (UNLIKELY(ord >= _num_elements)) {
445
12
                break;
446
12
            }
447
448
567k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
567k
        }
450
451
2.03k
        if (LIKELY(read_count > 0)) {
452
2.03k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.03k
        }
454
455
2.03k
        *n = read_count;
456
2.03k
        return Status::OK();
457
2.03k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.6k
                          MutableColumnPtr& dst) override {
433
30.6k
        DCHECK(_parsed);
434
30.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.6k
        auto total = *n;
440
30.6k
        auto read_count = 0;
441
30.6k
        _buffer.resize(total);
442
6.44M
        for (size_t i = 0; i < total; ++i) {
443
6.41M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
6.41M
            if (UNLIKELY(ord >= _num_elements)) {
445
726
                break;
446
726
            }
447
448
6.41M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
6.41M
        }
450
451
30.6k
        if (LIKELY(read_count > 0)) {
452
30.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.6k
        }
454
455
30.6k
        *n = read_count;
456
30.6k
        return Status::OK();
457
30.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
31.8k
                          MutableColumnPtr& dst) override {
433
31.8k
        DCHECK(_parsed);
434
31.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.8k
        auto total = *n;
440
31.8k
        auto read_count = 0;
441
31.8k
        _buffer.resize(total);
442
7.54M
        for (size_t i = 0; i < total; ++i) {
443
7.51M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.51M
            if (UNLIKELY(ord >= _num_elements)) {
445
102
                break;
446
102
            }
447
448
7.51M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.51M
        }
450
451
31.8k
        if (LIKELY(read_count > 0)) {
452
31.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.8k
        }
454
455
31.8k
        *n = read_count;
456
31.8k
        return Status::OK();
457
31.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.26k
                          MutableColumnPtr& dst) override {
433
2.26k
        DCHECK(_parsed);
434
2.26k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.26k
        auto total = *n;
440
2.26k
        auto read_count = 0;
441
2.26k
        _buffer.resize(total);
442
574k
        for (size_t i = 0; i < total; ++i) {
443
572k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
572k
            if (UNLIKELY(ord >= _num_elements)) {
445
95
                break;
446
95
            }
447
448
572k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
572k
        }
450
451
2.26k
        if (LIKELY(read_count > 0)) {
452
2.26k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.26k
        }
454
455
2.26k
        *n = read_count;
456
2.26k
        return Status::OK();
457
2.26k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
12.6k
                          MutableColumnPtr& dst) override {
433
12.6k
        DCHECK(_parsed);
434
12.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
12.6k
        auto total = *n;
440
12.6k
        auto read_count = 0;
441
12.6k
        _buffer.resize(total);
442
26.7k
        for (size_t i = 0; i < total; ++i) {
443
14.1k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.1k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.1k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.1k
        }
450
451
12.6k
        if (LIKELY(read_count > 0)) {
452
12.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
12.6k
        }
454
455
12.6k
        *n = read_count;
456
12.6k
        return Status::OK();
457
12.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
77
                          MutableColumnPtr& dst) override {
433
77
        DCHECK(_parsed);
434
77
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
77
        auto total = *n;
440
77
        auto read_count = 0;
441
77
        _buffer.resize(total);
442
159
        for (size_t i = 0; i < total; ++i) {
443
82
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
82
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
82
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
82
        }
450
451
77
        if (LIKELY(read_count > 0)) {
452
77
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
77
        }
454
455
77
        *n = read_count;
456
77
        return Status::OK();
457
77
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.58k
                          MutableColumnPtr& dst) override {
433
4.58k
        DCHECK(_parsed);
434
4.58k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.58k
        auto total = *n;
440
4.58k
        auto read_count = 0;
441
4.58k
        _buffer.resize(total);
442
18.9k
        for (size_t i = 0; i < total; ++i) {
443
14.3k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.3k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.3k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.3k
        }
450
451
4.58k
        if (LIKELY(read_count > 0)) {
452
4.58k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.58k
        }
454
455
4.58k
        *n = read_count;
456
4.58k
        return Status::OK();
457
4.58k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
27.7k
                          MutableColumnPtr& dst) override {
433
27.7k
        DCHECK(_parsed);
434
27.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
27.7k
        auto total = *n;
440
27.7k
        auto read_count = 0;
441
27.7k
        _buffer.resize(total);
442
22.6M
        for (size_t i = 0; i < total; ++i) {
443
22.6M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
22.6M
            if (UNLIKELY(ord >= _num_elements)) {
445
5.66k
                break;
446
5.66k
            }
447
448
22.5M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
22.5M
        }
450
451
27.7k
        if (LIKELY(read_count > 0)) {
452
27.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
27.7k
        }
454
455
27.7k
        *n = read_count;
456
27.7k
        return Status::OK();
457
27.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.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
11.0M
        for (size_t i = 0; i < total; ++i) {
443
11.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
11.0M
            if (UNLIKELY(ord >= _num_elements)) {
445
450
                break;
446
450
            }
447
448
11.0M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
11.0M
        }
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
932
                          MutableColumnPtr& dst) override {
433
932
        DCHECK(_parsed);
434
932
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
932
        auto total = *n;
440
932
        auto read_count = 0;
441
932
        _buffer.resize(total);
442
2.38k
        for (size_t i = 0; i < total; ++i) {
443
1.45k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.45k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.45k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.45k
        }
450
451
932
        if (LIKELY(read_count > 0)) {
452
932
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
932
        }
454
455
932
        *n = read_count;
456
932
        return Status::OK();
457
932
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
482
                          MutableColumnPtr& dst) override {
433
482
        DCHECK(_parsed);
434
482
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
482
        auto total = *n;
440
482
        auto read_count = 0;
441
482
        _buffer.resize(total);
442
1.20k
        for (size_t i = 0; i < total; ++i) {
443
726
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
726
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
726
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
726
        }
450
451
482
        if (LIKELY(read_count > 0)) {
452
481
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
481
        }
454
455
482
        *n = read_count;
456
482
        return Status::OK();
457
482
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
419
                          MutableColumnPtr& dst) override {
433
419
        DCHECK(_parsed);
434
419
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
419
        auto total = *n;
440
419
        auto read_count = 0;
441
419
        _buffer.resize(total);
442
1.35k
        for (size_t i = 0; i < total; ++i) {
443
935
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
935
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
935
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
935
        }
450
451
420
        if (LIKELY(read_count > 0)) {
452
420
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
420
        }
454
455
419
        *n = read_count;
456
419
        return Status::OK();
457
419
    }
458
459
576k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
576k
        return next_batch<false>(n, dst);
461
576k
    }
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
576k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
576k
        return next_batch<false>(n, dst);
461
576k
    }
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
2.14M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
2.03M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
1.27k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
803
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
4.55k
    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
363
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
15.7k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
10.4k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
6.99k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
28.7k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
23.2k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
5.31k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
1.02k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
6
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.39k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
823
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
5.75k
    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
103
    size_t current_index() const override { return _cur_index; }
466
467
71.8M
    char* get_data(size_t index) const {
468
71.8M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
71.8M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
10.5M
    char* get_data(size_t index) const {
468
10.5M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.5M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
1.00M
    char* get_data(size_t index) const {
468
1.00M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.00M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
62.1k
    char* get_data(size_t index) const {
468
62.1k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
62.1k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
2.50M
    char* get_data(size_t index) const {
468
2.50M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
2.50M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
5.08M
    char* get_data(size_t index) const {
468
5.08M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5.08M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
34.7k
    char* get_data(size_t index) const {
468
34.7k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
34.7k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.21M
    char* get_data(size_t index) const {
468
1.21M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.21M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
1.90M
    char* get_data(size_t index) const {
468
1.90M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.90M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
569k
    char* get_data(size_t index) const {
468
569k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
569k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
6.91M
    char* get_data(size_t index) const {
468
6.91M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.91M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_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_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
573k
    char* get_data(size_t index) const {
468
573k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
573k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
21.5k
    char* get_data(size_t index) const {
468
21.5k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21.5k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.30k
    char* get_data(size_t index) const {
468
1.30k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.30k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
24.8k
    char* get_data(size_t index) const {
468
24.8k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
24.8k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
22.6M
    char* get_data(size_t index) const {
468
22.6M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.6M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
11.0M
    char* get_data(size_t index) const {
468
11.0M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
11.0M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
4.69k
    char* get_data(size_t index) const {
468
4.69k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.69k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
6.52k
    char* get_data(size_t index) const {
468
6.52k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.52k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
6.74k
    char* get_data(size_t index) const {
468
6.74k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.74k
    }
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