Coverage Report

Created: 2026-03-18 20:04

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
910k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
397k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
55.9k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
8.28k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
202k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
71.5k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
10.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
12.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
19.7k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
186
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
37.1k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
46.5k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
283
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
7.04k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
201
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.80k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.6k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
16.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.15k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
808
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
721
    Status init() override { return reset(); }
97
98
162M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
161M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
63.7k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
7.82k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
459k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
72.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
98
9.39k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
12.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
22.1k
    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
193
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
54.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
46.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
337
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.92k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
101
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.35k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
35.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
17.2k
    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
729
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
3.13k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.54M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.54M
        return add_internal<false>(vals, count);
102
1.54M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
726k
    Status add(const uint8_t* vals, size_t* count) override {
101
726k
        return add_internal<false>(vals, count);
102
726k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
63.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
63.7k
        return add_internal<false>(vals, count);
102
63.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
7.82k
    Status add(const uint8_t* vals, size_t* count) override {
101
7.82k
        return add_internal<false>(vals, count);
102
7.82k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
459k
    Status add(const uint8_t* vals, size_t* count) override {
101
459k
        return add_internal<false>(vals, count);
102
459k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
72.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
72.6k
        return add_internal<false>(vals, count);
102
72.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
9.39k
    Status add(const uint8_t* vals, size_t* count) override {
101
9.39k
        return add_internal<false>(vals, count);
102
9.39k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
12.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
12.1k
        return add_internal<false>(vals, count);
102
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
22.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
22.1k
        return add_internal<false>(vals, count);
102
22.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
193
    Status add(const uint8_t* vals, size_t* count) override {
101
193
        return add_internal<false>(vals, count);
102
193
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
54.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
54.5k
        return add_internal<false>(vals, count);
102
54.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
46.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
46.2k
        return add_internal<false>(vals, count);
102
46.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
337
    Status add(const uint8_t* vals, size_t* count) override {
101
337
        return add_internal<false>(vals, count);
102
337
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
6.92k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.92k
        return add_internal<false>(vals, count);
102
6.92k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
101
    Status add(const uint8_t* vals, size_t* count) override {
101
101
        return add_internal<false>(vals, count);
102
101
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.35k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.35k
        return add_internal<false>(vals, count);
102
5.35k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
35.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
35.3k
        return add_internal<false>(vals, count);
102
35.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
17.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
17.2k
        return add_internal<false>(vals, count);
102
17.2k
    }
_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
729
    Status add(const uint8_t* vals, size_t* count) override {
101
729
        return add_internal<false>(vals, count);
102
729
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
3.13k
    Status add(const uint8_t* vals, size_t* count) override {
101
3.13k
        return add_internal<false>(vals, count);
102
3.13k
    }
103
104
163M
    Status single_add(const uint8_t* vals, size_t* count) {
105
163M
        return add_internal<true>(vals, count);
106
163M
    }
107
108
    template <bool single>
109
163M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
163M
        DCHECK(!_finished);
111
163M
        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
163M
        uint32_t to_add = cast_set<UInt32>(
127
163M
                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
163M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
163M
        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
163M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
164M
        _count += to_add;
135
164M
        _remain_element_capacity -= to_add;
136
164M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
164M
        *num_written = to_add;
139
164M
        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
162M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
162M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
162M
                        *reinterpret_cast<const uint32_t*>(vals);
150
162M
                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
162M
        }
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
164M
        return Status::OK();
160
163M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
726k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
726k
        DCHECK(!_finished);
111
726k
        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
726k
        uint32_t to_add = cast_set<UInt32>(
127
726k
                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
726k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
726k
        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
726k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
726k
        _count += to_add;
135
726k
        _remain_element_capacity -= to_add;
136
726k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
726k
        *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
726k
        memcpy(&_data[orig_size], vals, to_add_size);
159
726k
        return Status::OK();
160
726k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
162M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
162M
        DCHECK(!_finished);
111
162M
        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
162M
        uint32_t to_add = cast_set<UInt32>(
127
162M
                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
162M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
162M
        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
162M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
162M
        _count += to_add;
135
162M
        _remain_element_capacity -= to_add;
136
162M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
162M
        *num_written = to_add;
139
162M
        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
162M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
162M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
162M
                        *reinterpret_cast<const uint32_t*>(vals);
150
162M
                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
162M
        }
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
162M
        return Status::OK();
160
162M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
63.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
63.7k
        DCHECK(!_finished);
111
63.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
63.7k
        uint32_t to_add = cast_set<UInt32>(
127
63.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
63.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
63.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
63.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
63.7k
        _count += to_add;
135
63.7k
        _remain_element_capacity -= to_add;
136
63.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
63.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
63.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
63.7k
        return Status::OK();
160
63.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
7.82k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
7.82k
        DCHECK(!_finished);
111
7.82k
        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.82k
        uint32_t to_add = cast_set<UInt32>(
127
7.82k
                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.82k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
7.82k
        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.82k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
7.82k
        _count += to_add;
135
7.82k
        _remain_element_capacity -= to_add;
136
7.82k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
7.82k
        *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.82k
        memcpy(&_data[orig_size], vals, to_add_size);
159
7.82k
        return Status::OK();
160
7.82k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
459k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
459k
        DCHECK(!_finished);
111
459k
        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
459k
        uint32_t to_add = cast_set<UInt32>(
127
459k
                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
459k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
459k
        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
459k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
459k
        _count += to_add;
135
459k
        _remain_element_capacity -= to_add;
136
459k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
459k
        *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
459k
        memcpy(&_data[orig_size], vals, to_add_size);
159
459k
        return Status::OK();
160
459k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
72.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
72.6k
        DCHECK(!_finished);
111
72.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
72.6k
        uint32_t to_add = cast_set<UInt32>(
127
72.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
72.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
72.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
72.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
72.6k
        _count += to_add;
135
72.6k
        _remain_element_capacity -= to_add;
136
72.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
72.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
72.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
72.6k
        return Status::OK();
160
72.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
9.39k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
9.39k
        DCHECK(!_finished);
111
9.39k
        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
9.39k
        uint32_t to_add = cast_set<UInt32>(
127
9.39k
                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
9.39k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
9.39k
        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
9.39k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
9.39k
        _count += to_add;
135
9.39k
        _remain_element_capacity -= to_add;
136
9.39k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
9.39k
        *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
9.39k
        memcpy(&_data[orig_size], vals, to_add_size);
159
9.39k
        return Status::OK();
160
9.39k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
12.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
12.1k
        DCHECK(!_finished);
111
12.1k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
12.1k
        uint32_t to_add = cast_set<UInt32>(
127
12.1k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
12.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
12.1k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
12.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
12.1k
        _count += to_add;
135
12.1k
        _remain_element_capacity -= to_add;
136
12.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
12.1k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
12.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
12.1k
        return Status::OK();
160
12.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
22.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
22.1k
        DCHECK(!_finished);
111
22.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
22.1k
        uint32_t to_add = cast_set<UInt32>(
127
22.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
22.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
22.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
22.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
22.1k
        _count += to_add;
135
22.1k
        _remain_element_capacity -= to_add;
136
22.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
22.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
22.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
22.1k
        return Status::OK();
160
22.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
193
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
193
        DCHECK(!_finished);
111
193
        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
193
        uint32_t to_add = cast_set<UInt32>(
127
193
                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
193
        int to_add_size = to_add * SIZE_OF_TYPE;
130
193
        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
193
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
193
        _count += to_add;
135
193
        _remain_element_capacity -= to_add;
136
193
        _raw_data_size += to_add_size;
137
        // return added number through count
138
193
        *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
193
        memcpy(&_data[orig_size], vals, to_add_size);
159
193
        return Status::OK();
160
193
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
54.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
54.5k
        DCHECK(!_finished);
111
54.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
54.5k
        uint32_t to_add = cast_set<UInt32>(
127
54.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
54.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
54.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
54.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
54.5k
        _count += to_add;
135
54.5k
        _remain_element_capacity -= to_add;
136
54.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
54.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
54.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
54.5k
        return Status::OK();
160
54.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
46.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
46.2k
        DCHECK(!_finished);
111
46.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
46.2k
        uint32_t to_add = cast_set<UInt32>(
127
46.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
46.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
46.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
46.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
46.2k
        _count += to_add;
135
46.2k
        _remain_element_capacity -= to_add;
136
46.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
46.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
46.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
46.2k
        return Status::OK();
160
46.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
337
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
337
        DCHECK(!_finished);
111
337
        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
337
        uint32_t to_add = cast_set<UInt32>(
127
337
                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
337
        int to_add_size = to_add * SIZE_OF_TYPE;
130
337
        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
337
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
337
        _count += to_add;
135
337
        _remain_element_capacity -= to_add;
136
337
        _raw_data_size += to_add_size;
137
        // return added number through count
138
337
        *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
337
        memcpy(&_data[orig_size], vals, to_add_size);
159
337
        return Status::OK();
160
337
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
6.92k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.92k
        DCHECK(!_finished);
111
6.92k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
6.92k
        uint32_t to_add = cast_set<UInt32>(
127
6.92k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
6.92k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.92k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
6.92k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.92k
        _count += to_add;
135
6.92k
        _remain_element_capacity -= to_add;
136
6.92k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.92k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
6.92k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.92k
        return Status::OK();
160
6.92k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
101
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
101
        DCHECK(!_finished);
111
101
        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
101
        uint32_t to_add = cast_set<UInt32>(
127
101
                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
101
        int to_add_size = to_add * SIZE_OF_TYPE;
130
101
        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
101
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
101
        _count += to_add;
135
101
        _remain_element_capacity -= to_add;
136
101
        _raw_data_size += to_add_size;
137
        // return added number through count
138
101
        *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
101
        memcpy(&_data[orig_size], vals, to_add_size);
159
101
        return Status::OK();
160
101
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.35k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.35k
        DCHECK(!_finished);
111
5.35k
        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.35k
        uint32_t to_add = cast_set<UInt32>(
127
5.35k
                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.35k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.35k
        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.35k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.35k
        _count += to_add;
135
5.35k
        _remain_element_capacity -= to_add;
136
5.35k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.35k
        *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.35k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.35k
        return Status::OK();
160
5.35k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
35.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
35.3k
        DCHECK(!_finished);
111
35.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
35.3k
        uint32_t to_add = cast_set<UInt32>(
127
35.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
35.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
35.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
35.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
35.3k
        _count += to_add;
135
35.3k
        _remain_element_capacity -= to_add;
136
35.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
35.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
35.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
35.3k
        return Status::OK();
160
35.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
17.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
17.2k
        DCHECK(!_finished);
111
17.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
17.2k
        uint32_t to_add = cast_set<UInt32>(
127
17.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
17.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
17.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
17.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
17.2k
        _count += to_add;
135
17.2k
        _remain_element_capacity -= to_add;
136
17.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
17.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
17.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
17.2k
        return Status::OK();
160
17.2k
    }
_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
729
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
729
        DCHECK(!_finished);
111
729
        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
729
        uint32_t to_add = cast_set<UInt32>(
127
729
                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
729
        int to_add_size = to_add * SIZE_OF_TYPE;
130
729
        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
729
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
729
        _count += to_add;
135
729
        _remain_element_capacity -= to_add;
136
729
        _raw_data_size += to_add_size;
137
        // return added number through count
138
729
        *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
729
        memcpy(&_data[orig_size], vals, to_add_size);
159
729
        return Status::OK();
160
729
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
3.13k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
3.13k
        DCHECK(!_finished);
111
3.13k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
3.13k
        uint32_t to_add = cast_set<UInt32>(
127
3.13k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
3.13k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
3.13k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
3.13k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
3.13k
        _count += to_add;
135
3.13k
        _remain_element_capacity -= to_add;
136
3.13k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
3.13k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
3.13k
        memcpy(&_data[orig_size], vals, to_add_size);
159
3.13k
        return Status::OK();
160
3.13k
    }
161
162
906k
    Status finish(OwnedSlice* slice) override {
163
906k
        if (_count > 0) {
164
855k
            _first_value = cell(0);
165
855k
            _last_value = cell(_count - 1);
166
855k
        }
167
906k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
906k
        return Status::OK();
169
906k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
385k
    Status finish(OwnedSlice* slice) override {
163
385k
        if (_count > 0) {
164
348k
            _first_value = cell(0);
165
348k
            _last_value = cell(_count - 1);
166
348k
        }
167
385k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
385k
        return Status::OK();
169
385k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
54.8k
    Status finish(OwnedSlice* slice) override {
163
54.8k
        if (_count > 0) {
164
54.1k
            _first_value = cell(0);
165
54.1k
            _last_value = cell(_count - 1);
166
54.1k
        }
167
54.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
54.8k
        return Status::OK();
169
54.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.74k
    Status finish(OwnedSlice* slice) override {
163
7.74k
        if (_count > 0) {
164
7.62k
            _first_value = cell(0);
165
7.62k
            _last_value = cell(_count - 1);
166
7.62k
        }
167
7.74k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.74k
        return Status::OK();
169
7.74k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
207k
    Status finish(OwnedSlice* slice) override {
163
207k
        if (_count > 0) {
164
205k
            _first_value = cell(0);
165
205k
            _last_value = cell(_count - 1);
166
205k
        }
167
207k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
207k
        return Status::OK();
169
207k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
71.2k
    Status finish(OwnedSlice* slice) override {
163
71.2k
        if (_count > 0) {
164
71.2k
            _first_value = cell(0);
165
71.2k
            _last_value = cell(_count - 1);
166
71.2k
        }
167
71.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
71.2k
        return Status::OK();
169
71.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.68k
    Status finish(OwnedSlice* slice) override {
163
9.68k
        if (_count > 0) {
164
9.30k
            _first_value = cell(0);
165
9.30k
            _last_value = cell(_count - 1);
166
9.30k
        }
167
9.68k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.68k
        return Status::OK();
169
9.68k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.5k
    Status finish(OwnedSlice* slice) override {
163
11.5k
        if (_count > 0) {
164
11.1k
            _first_value = cell(0);
165
11.1k
            _last_value = cell(_count - 1);
166
11.1k
        }
167
11.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.5k
        return Status::OK();
169
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.7k
    Status finish(OwnedSlice* slice) override {
163
19.7k
        if (_count > 0) {
164
19.3k
            _first_value = cell(0);
165
19.3k
            _last_value = cell(_count - 1);
166
19.3k
        }
167
19.7k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.7k
        return Status::OK();
169
19.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
198
    Status finish(OwnedSlice* slice) override {
163
198
        if (_count > 0) {
164
193
            _first_value = cell(0);
165
193
            _last_value = cell(_count - 1);
166
193
        }
167
198
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
198
        return Status::OK();
169
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
37.6k
    Status finish(OwnedSlice* slice) override {
163
37.6k
        if (_count > 0) {
164
36.6k
            _first_value = cell(0);
165
36.6k
            _last_value = cell(_count - 1);
166
36.6k
        }
167
37.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
37.6k
        return Status::OK();
169
37.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
45.5k
    Status finish(OwnedSlice* slice) override {
163
45.5k
        if (_count > 0) {
164
43.9k
            _first_value = cell(0);
165
43.9k
            _last_value = cell(_count - 1);
166
43.9k
        }
167
45.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
45.5k
        return Status::OK();
169
45.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
437
    Status finish(OwnedSlice* slice) override {
163
437
        if (_count > 0) {
164
337
            _first_value = cell(0);
165
337
            _last_value = cell(_count - 1);
166
337
        }
167
437
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
437
        return Status::OK();
169
437
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.11k
    Status finish(OwnedSlice* slice) override {
163
7.11k
        if (_count > 0) {
164
6.92k
            _first_value = cell(0);
165
6.92k
            _last_value = cell(_count - 1);
166
6.92k
        }
167
7.11k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.11k
        return Status::OK();
169
7.11k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
109
    Status finish(OwnedSlice* slice) override {
163
109
        if (_count > 0) {
164
101
            _first_value = cell(0);
165
101
            _last_value = cell(_count - 1);
166
101
        }
167
109
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
109
        return Status::OK();
169
109
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.79k
    Status finish(OwnedSlice* slice) override {
163
9.79k
        if (_count > 0) {
164
4.86k
            _first_value = cell(0);
165
4.86k
            _last_value = cell(_count - 1);
166
4.86k
        }
167
9.79k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.79k
        return Status::OK();
169
9.79k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.1k
    Status finish(OwnedSlice* slice) override {
163
19.1k
        if (_count > 0) {
164
18.1k
            _first_value = cell(0);
165
18.1k
            _last_value = cell(_count - 1);
166
18.1k
        }
167
19.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.1k
        return Status::OK();
169
19.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
16.4k
    Status finish(OwnedSlice* slice) override {
163
16.4k
        if (_count > 0) {
164
15.9k
            _first_value = cell(0);
165
15.9k
            _last_value = cell(_count - 1);
166
15.9k
        }
167
16.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.4k
        return Status::OK();
169
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.06k
    Status finish(OwnedSlice* slice) override {
163
1.06k
        if (_count > 0) {
164
1.01k
            _first_value = cell(0);
165
1.01k
            _last_value = cell(_count - 1);
166
1.01k
        }
167
1.06k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.06k
        return Status::OK();
169
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
714
    Status finish(OwnedSlice* slice) override {
163
714
        if (_count > 0) {
164
665
            _first_value = cell(0);
165
665
            _last_value = cell(_count - 1);
166
665
        }
167
714
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
714
        return Status::OK();
169
714
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
632
    Status finish(OwnedSlice* slice) override {
163
632
        if (_count > 0) {
164
598
            _first_value = cell(0);
165
598
            _last_value = cell(_count - 1);
166
598
        }
167
632
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
632
        return Status::OK();
169
632
    }
170
171
2.14M
    Status reset() override {
172
2.14M
        RETURN_IF_CATCH_EXCEPTION({
173
2.14M
            size_t block_size = _options.data_page_size;
174
2.14M
            _count = 0;
175
2.14M
            _raw_data_size = 0;
176
2.14M
            _data.clear();
177
2.14M
            _data.reserve(block_size);
178
2.14M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.14M
                    << "buffer must be naturally-aligned";
180
2.14M
            _buffer.clear();
181
2.14M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.14M
            _finished = false;
183
2.14M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.14M
        });
185
2.15M
        return Status::OK();
186
2.14M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.11M
    Status reset() override {
172
1.11M
        RETURN_IF_CATCH_EXCEPTION({
173
1.11M
            size_t block_size = _options.data_page_size;
174
1.11M
            _count = 0;
175
1.11M
            _raw_data_size = 0;
176
1.11M
            _data.clear();
177
1.11M
            _data.reserve(block_size);
178
1.11M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.11M
                    << "buffer must be naturally-aligned";
180
1.11M
            _buffer.clear();
181
1.11M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.11M
            _finished = false;
183
1.11M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.11M
        });
185
1.11M
        return Status::OK();
186
1.11M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
110k
    Status reset() override {
172
110k
        RETURN_IF_CATCH_EXCEPTION({
173
110k
            size_t block_size = _options.data_page_size;
174
110k
            _count = 0;
175
110k
            _raw_data_size = 0;
176
110k
            _data.clear();
177
110k
            _data.reserve(block_size);
178
110k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
110k
                    << "buffer must be naturally-aligned";
180
110k
            _buffer.clear();
181
110k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
110k
            _finished = false;
183
110k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
110k
        });
185
110k
        return Status::OK();
186
110k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
16.0k
    Status reset() override {
172
16.0k
        RETURN_IF_CATCH_EXCEPTION({
173
16.0k
            size_t block_size = _options.data_page_size;
174
16.0k
            _count = 0;
175
16.0k
            _raw_data_size = 0;
176
16.0k
            _data.clear();
177
16.0k
            _data.reserve(block_size);
178
16.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
16.0k
                    << "buffer must be naturally-aligned";
180
16.0k
            _buffer.clear();
181
16.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
16.0k
            _finished = false;
183
16.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
16.0k
        });
185
16.0k
        return Status::OK();
186
16.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
410k
    Status reset() override {
172
410k
        RETURN_IF_CATCH_EXCEPTION({
173
410k
            size_t block_size = _options.data_page_size;
174
410k
            _count = 0;
175
410k
            _raw_data_size = 0;
176
410k
            _data.clear();
177
410k
            _data.reserve(block_size);
178
410k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
410k
                    << "buffer must be naturally-aligned";
180
410k
            _buffer.clear();
181
410k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
410k
            _finished = false;
183
410k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
410k
        });
185
410k
        return Status::OK();
186
410k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
142k
    Status reset() override {
172
142k
        RETURN_IF_CATCH_EXCEPTION({
173
142k
            size_t block_size = _options.data_page_size;
174
142k
            _count = 0;
175
142k
            _raw_data_size = 0;
176
142k
            _data.clear();
177
142k
            _data.reserve(block_size);
178
142k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
142k
                    << "buffer must be naturally-aligned";
180
142k
            _buffer.clear();
181
142k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
142k
            _finished = false;
183
142k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
142k
        });
185
142k
        return Status::OK();
186
142k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
19.9k
    Status reset() override {
172
19.9k
        RETURN_IF_CATCH_EXCEPTION({
173
19.9k
            size_t block_size = _options.data_page_size;
174
19.9k
            _count = 0;
175
19.9k
            _raw_data_size = 0;
176
19.9k
            _data.clear();
177
19.9k
            _data.reserve(block_size);
178
19.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.9k
                    << "buffer must be naturally-aligned";
180
19.9k
            _buffer.clear();
181
19.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.9k
            _finished = false;
183
19.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.9k
        });
185
19.9k
        return Status::OK();
186
19.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
23.8k
    Status reset() override {
172
23.8k
        RETURN_IF_CATCH_EXCEPTION({
173
23.8k
            size_t block_size = _options.data_page_size;
174
23.8k
            _count = 0;
175
23.8k
            _raw_data_size = 0;
176
23.8k
            _data.clear();
177
23.8k
            _data.reserve(block_size);
178
23.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
23.8k
                    << "buffer must be naturally-aligned";
180
23.8k
            _buffer.clear();
181
23.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
23.8k
            _finished = false;
183
23.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
23.8k
        });
185
23.8k
        return Status::OK();
186
23.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
39.5k
    Status reset() override {
172
39.5k
        RETURN_IF_CATCH_EXCEPTION({
173
39.5k
            size_t block_size = _options.data_page_size;
174
39.5k
            _count = 0;
175
39.5k
            _raw_data_size = 0;
176
39.5k
            _data.clear();
177
39.5k
            _data.reserve(block_size);
178
39.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
39.5k
                    << "buffer must be naturally-aligned";
180
39.5k
            _buffer.clear();
181
39.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
39.5k
            _finished = false;
183
39.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
39.5k
        });
185
39.5k
        return Status::OK();
186
39.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
384
    Status reset() override {
172
384
        RETURN_IF_CATCH_EXCEPTION({
173
384
            size_t block_size = _options.data_page_size;
174
384
            _count = 0;
175
384
            _raw_data_size = 0;
176
384
            _data.clear();
177
384
            _data.reserve(block_size);
178
384
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
384
                    << "buffer must be naturally-aligned";
180
384
            _buffer.clear();
181
384
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
384
            _finished = false;
183
384
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
384
        });
185
384
        return Status::OK();
186
384
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
74.8k
    Status reset() override {
172
74.8k
        RETURN_IF_CATCH_EXCEPTION({
173
74.8k
            size_t block_size = _options.data_page_size;
174
74.8k
            _count = 0;
175
74.8k
            _raw_data_size = 0;
176
74.8k
            _data.clear();
177
74.8k
            _data.reserve(block_size);
178
74.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
74.8k
                    << "buffer must be naturally-aligned";
180
74.8k
            _buffer.clear();
181
74.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
74.8k
            _finished = false;
183
74.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
74.8k
        });
185
74.8k
        return Status::OK();
186
74.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
92.0k
    Status reset() override {
172
92.0k
        RETURN_IF_CATCH_EXCEPTION({
173
92.0k
            size_t block_size = _options.data_page_size;
174
92.0k
            _count = 0;
175
92.0k
            _raw_data_size = 0;
176
92.0k
            _data.clear();
177
92.0k
            _data.reserve(block_size);
178
92.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
92.0k
                    << "buffer must be naturally-aligned";
180
92.0k
            _buffer.clear();
181
92.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
92.0k
            _finished = false;
183
92.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
92.0k
        });
185
92.0k
        return Status::OK();
186
92.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
719
    Status reset() override {
172
719
        RETURN_IF_CATCH_EXCEPTION({
173
719
            size_t block_size = _options.data_page_size;
174
719
            _count = 0;
175
719
            _raw_data_size = 0;
176
719
            _data.clear();
177
719
            _data.reserve(block_size);
178
719
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
719
                    << "buffer must be naturally-aligned";
180
719
            _buffer.clear();
181
719
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
719
            _finished = false;
183
719
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
719
        });
185
720
        return Status::OK();
186
719
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
171
14.1k
    Status reset() override {
172
14.1k
        RETURN_IF_CATCH_EXCEPTION({
173
14.1k
            size_t block_size = _options.data_page_size;
174
14.1k
            _count = 0;
175
14.1k
            _raw_data_size = 0;
176
14.1k
            _data.clear();
177
14.1k
            _data.reserve(block_size);
178
14.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14.1k
                    << "buffer must be naturally-aligned";
180
14.1k
            _buffer.clear();
181
14.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14.1k
            _finished = false;
183
14.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14.1k
        });
185
14.2k
        return Status::OK();
186
14.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
310
    Status reset() override {
172
310
        RETURN_IF_CATCH_EXCEPTION({
173
310
            size_t block_size = _options.data_page_size;
174
310
            _count = 0;
175
310
            _raw_data_size = 0;
176
310
            _data.clear();
177
310
            _data.reserve(block_size);
178
310
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
310
                    << "buffer must be naturally-aligned";
180
310
            _buffer.clear();
181
310
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
310
            _finished = false;
183
310
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
310
        });
185
310
        return Status::OK();
186
310
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.6k
    Status reset() override {
172
19.6k
        RETURN_IF_CATCH_EXCEPTION({
173
19.6k
            size_t block_size = _options.data_page_size;
174
19.6k
            _count = 0;
175
19.6k
            _raw_data_size = 0;
176
19.6k
            _data.clear();
177
19.6k
            _data.reserve(block_size);
178
19.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.6k
                    << "buffer must be naturally-aligned";
180
19.6k
            _buffer.clear();
181
19.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.6k
            _finished = false;
183
19.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.6k
        });
185
19.6k
        return Status::OK();
186
19.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.7k
    Status reset() override {
172
31.7k
        RETURN_IF_CATCH_EXCEPTION({
173
31.7k
            size_t block_size = _options.data_page_size;
174
31.7k
            _count = 0;
175
31.7k
            _raw_data_size = 0;
176
31.7k
            _data.clear();
177
31.7k
            _data.reserve(block_size);
178
31.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.7k
                    << "buffer must be naturally-aligned";
180
31.7k
            _buffer.clear();
181
31.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.7k
            _finished = false;
183
31.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.7k
        });
185
31.7k
        return Status::OK();
186
31.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
32.7k
    Status reset() override {
172
32.7k
        RETURN_IF_CATCH_EXCEPTION({
173
32.7k
            size_t block_size = _options.data_page_size;
174
32.7k
            _count = 0;
175
32.7k
            _raw_data_size = 0;
176
32.7k
            _data.clear();
177
32.7k
            _data.reserve(block_size);
178
32.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
32.7k
                    << "buffer must be naturally-aligned";
180
32.7k
            _buffer.clear();
181
32.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
32.7k
            _finished = false;
183
32.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
32.7k
        });
185
32.7k
        return Status::OK();
186
32.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.22k
    Status reset() override {
172
2.22k
        RETURN_IF_CATCH_EXCEPTION({
173
2.22k
            size_t block_size = _options.data_page_size;
174
2.22k
            _count = 0;
175
2.22k
            _raw_data_size = 0;
176
2.22k
            _data.clear();
177
2.22k
            _data.reserve(block_size);
178
2.22k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.22k
                    << "buffer must be naturally-aligned";
180
2.22k
            _buffer.clear();
181
2.22k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.22k
            _finished = false;
183
2.22k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.22k
        });
185
2.22k
        return Status::OK();
186
2.22k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.52k
    Status reset() override {
172
1.52k
        RETURN_IF_CATCH_EXCEPTION({
173
1.52k
            size_t block_size = _options.data_page_size;
174
1.52k
            _count = 0;
175
1.52k
            _raw_data_size = 0;
176
1.52k
            _data.clear();
177
1.52k
            _data.reserve(block_size);
178
1.52k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.52k
                    << "buffer must be naturally-aligned";
180
1.52k
            _buffer.clear();
181
1.52k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.52k
            _finished = false;
183
1.52k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.52k
        });
185
1.52k
        return Status::OK();
186
1.52k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.35k
    Status reset() override {
172
1.35k
        RETURN_IF_CATCH_EXCEPTION({
173
1.35k
            size_t block_size = _options.data_page_size;
174
1.35k
            _count = 0;
175
1.35k
            _raw_data_size = 0;
176
1.35k
            _data.clear();
177
1.35k
            _data.reserve(block_size);
178
1.35k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.35k
                    << "buffer must be naturally-aligned";
180
1.35k
            _buffer.clear();
181
1.35k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.35k
            _finished = false;
183
1.35k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.35k
        });
185
1.35k
        return Status::OK();
186
1.35k
    }
187
188
1.50M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
1.50M
    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
40.7k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
21.4k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
4.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
667
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
4.26k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
2.00k
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
941
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
781
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
790
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4sizeEv
Line
Count
Source
190
1.69k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.42k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv
Line
Count
Source
190
157
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
315
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.15k
    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
587k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
66.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
54.8k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
7.74k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
207k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
71.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
192
9.68k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
11.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
19.7k
    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
198
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
37.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
45.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
437
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.11k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
109
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.79k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
19.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
16.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.06k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
714
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
632
    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
910k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
397k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
55.9k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
8.29k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
202k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
71.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
10.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
19.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
186
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
37.1k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
46.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
283
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.05k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
201
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.80k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.6k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
16.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.15k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
808
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
721
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
906k
    OwnedSlice _finish(int final_size_of_type) {
216
906k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
906k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
906k
        int padding_elems = num_elems_after_padding - _count;
221
906k
        int padding_bytes = padding_elems * final_size_of_type;
222
28.3M
        for (int i = 0; i < padding_bytes; i++) {
223
27.4M
            _data.push_back(0);
224
27.4M
        }
225
226
        // reserve enough place for compression
227
906k
        _buffer.resize(
228
906k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
906k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
906k
        int64_t bytes =
232
906k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
906k
                                         num_elems_after_padding, final_size_of_type, 0);
234
906k
        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
906k
        encode_fixed32_le(&_buffer[0], _count);
244
906k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
906k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
906k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
906k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
906k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
906k
        return _buffer.build();
251
906k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
385k
    OwnedSlice _finish(int final_size_of_type) {
216
385k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
385k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
385k
        int padding_elems = num_elems_after_padding - _count;
221
385k
        int padding_bytes = padding_elems * final_size_of_type;
222
7.42M
        for (int i = 0; i < padding_bytes; i++) {
223
7.03M
            _data.push_back(0);
224
7.03M
        }
225
226
        // reserve enough place for compression
227
385k
        _buffer.resize(
228
385k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
385k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
385k
        int64_t bytes =
232
385k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
385k
                                         num_elems_after_padding, final_size_of_type, 0);
234
385k
        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
385k
        encode_fixed32_le(&_buffer[0], _count);
244
385k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
385k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
385k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
385k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
385k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
385k
        return _buffer.build();
251
385k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
54.8k
    OwnedSlice _finish(int final_size_of_type) {
216
54.8k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
54.8k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
54.8k
        int padding_elems = num_elems_after_padding - _count;
221
54.8k
        int padding_bytes = padding_elems * final_size_of_type;
222
356k
        for (int i = 0; i < padding_bytes; i++) {
223
302k
            _data.push_back(0);
224
302k
        }
225
226
        // reserve enough place for compression
227
54.8k
        _buffer.resize(
228
54.8k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
54.8k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
54.8k
        int64_t bytes =
232
54.8k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
54.8k
                                         num_elems_after_padding, final_size_of_type, 0);
234
54.8k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
54.8k
        encode_fixed32_le(&_buffer[0], _count);
244
54.8k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
54.8k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
54.8k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
54.8k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
54.8k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
54.8k
        return _buffer.build();
251
54.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
7.74k
    OwnedSlice _finish(int final_size_of_type) {
216
7.74k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.74k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.74k
        int padding_elems = num_elems_after_padding - _count;
221
7.74k
        int padding_bytes = padding_elems * final_size_of_type;
222
86.7k
        for (int i = 0; i < padding_bytes; i++) {
223
78.9k
            _data.push_back(0);
224
78.9k
        }
225
226
        // reserve enough place for compression
227
7.74k
        _buffer.resize(
228
7.74k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.74k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.74k
        int64_t bytes =
232
7.74k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.74k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.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
7.74k
        encode_fixed32_le(&_buffer[0], _count);
244
7.74k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.74k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.74k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.74k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.74k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.74k
        return _buffer.build();
251
7.74k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
207k
    OwnedSlice _finish(int final_size_of_type) {
216
207k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
207k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
207k
        int padding_elems = num_elems_after_padding - _count;
221
207k
        int padding_bytes = padding_elems * final_size_of_type;
222
10.1M
        for (int i = 0; i < padding_bytes; i++) {
223
9.95M
            _data.push_back(0);
224
9.95M
        }
225
226
        // reserve enough place for compression
227
207k
        _buffer.resize(
228
207k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
207k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
207k
        int64_t bytes =
232
207k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
207k
                                         num_elems_after_padding, final_size_of_type, 0);
234
207k
        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
207k
        encode_fixed32_le(&_buffer[0], _count);
244
207k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
207k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
207k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
207k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
207k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
207k
        return _buffer.build();
251
207k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
71.2k
    OwnedSlice _finish(int final_size_of_type) {
216
71.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
71.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
71.2k
        int padding_elems = num_elems_after_padding - _count;
221
71.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.37M
        for (int i = 0; i < padding_bytes; i++) {
223
3.30M
            _data.push_back(0);
224
3.30M
        }
225
226
        // reserve enough place for compression
227
71.2k
        _buffer.resize(
228
71.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
71.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
71.2k
        int64_t bytes =
232
71.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
71.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
71.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
71.2k
        encode_fixed32_le(&_buffer[0], _count);
244
71.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
71.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
71.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
71.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
71.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
71.2k
        return _buffer.build();
251
71.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
9.68k
    OwnedSlice _finish(int final_size_of_type) {
216
9.68k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.68k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.68k
        int padding_elems = num_elems_after_padding - _count;
221
9.68k
        int padding_bytes = padding_elems * final_size_of_type;
222
722k
        for (int i = 0; i < padding_bytes; i++) {
223
712k
            _data.push_back(0);
224
712k
        }
225
226
        // reserve enough place for compression
227
9.68k
        _buffer.resize(
228
9.68k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.68k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.68k
        int64_t bytes =
232
9.68k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.68k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.68k
        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.68k
        encode_fixed32_le(&_buffer[0], _count);
244
9.68k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.68k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.68k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.68k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.68k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.68k
        return _buffer.build();
251
9.68k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
11.5k
    OwnedSlice _finish(int final_size_of_type) {
216
11.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.5k
        int padding_elems = num_elems_after_padding - _count;
221
11.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
250k
        for (int i = 0; i < padding_bytes; i++) {
223
239k
            _data.push_back(0);
224
239k
        }
225
226
        // reserve enough place for compression
227
11.5k
        _buffer.resize(
228
11.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.5k
        int64_t bytes =
232
11.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.5k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.5k
        encode_fixed32_le(&_buffer[0], _count);
244
11.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.5k
        return _buffer.build();
251
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
19.7k
    OwnedSlice _finish(int final_size_of_type) {
216
19.7k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.7k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.7k
        int padding_elems = num_elems_after_padding - _count;
221
19.7k
        int padding_bytes = padding_elems * final_size_of_type;
222
883k
        for (int i = 0; i < padding_bytes; i++) {
223
864k
            _data.push_back(0);
224
864k
        }
225
226
        // reserve enough place for compression
227
19.7k
        _buffer.resize(
228
19.7k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.7k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.7k
        int64_t bytes =
232
19.7k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.7k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.7k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.7k
        encode_fixed32_le(&_buffer[0], _count);
244
19.7k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.7k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.7k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.7k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.7k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.7k
        return _buffer.build();
251
19.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
198
    OwnedSlice _finish(int final_size_of_type) {
216
198
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
198
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
198
        int padding_elems = num_elems_after_padding - _count;
221
198
        int padding_bytes = padding_elems * final_size_of_type;
222
2.73k
        for (int i = 0; i < padding_bytes; i++) {
223
2.53k
            _data.push_back(0);
224
2.53k
        }
225
226
        // reserve enough place for compression
227
198
        _buffer.resize(
228
198
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
198
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
198
        int64_t bytes =
232
198
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
198
                                         num_elems_after_padding, final_size_of_type, 0);
234
198
        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
198
        encode_fixed32_le(&_buffer[0], _count);
244
198
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
198
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
198
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
198
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
198
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
198
        return _buffer.build();
251
198
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
37.6k
    OwnedSlice _finish(int final_size_of_type) {
216
37.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
37.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
37.6k
        int padding_elems = num_elems_after_padding - _count;
221
37.6k
        int padding_bytes = padding_elems * final_size_of_type;
222
809k
        for (int i = 0; i < padding_bytes; i++) {
223
772k
            _data.push_back(0);
224
772k
        }
225
226
        // reserve enough place for compression
227
37.6k
        _buffer.resize(
228
37.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
37.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
37.6k
        int64_t bytes =
232
37.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
37.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
37.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
37.6k
        encode_fixed32_le(&_buffer[0], _count);
244
37.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
37.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
37.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
37.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
37.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
37.6k
        return _buffer.build();
251
37.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
45.5k
    OwnedSlice _finish(int final_size_of_type) {
216
45.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
45.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
45.5k
        int padding_elems = num_elems_after_padding - _count;
221
45.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.94M
        for (int i = 0; i < padding_bytes; i++) {
223
1.89M
            _data.push_back(0);
224
1.89M
        }
225
226
        // reserve enough place for compression
227
45.5k
        _buffer.resize(
228
45.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
45.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
45.5k
        int64_t bytes =
232
45.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
45.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
45.5k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
45.5k
        encode_fixed32_le(&_buffer[0], _count);
244
45.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
45.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
45.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
45.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
45.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
45.5k
        return _buffer.build();
251
45.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
437
    OwnedSlice _finish(int final_size_of_type) {
216
437
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
437
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
437
        int padding_elems = num_elems_after_padding - _count;
221
437
        int padding_bytes = padding_elems * final_size_of_type;
222
6.98k
        for (int i = 0; i < padding_bytes; i++) {
223
6.55k
            _data.push_back(0);
224
6.55k
        }
225
226
        // reserve enough place for compression
227
437
        _buffer.resize(
228
437
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
437
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
437
        int64_t bytes =
232
437
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
437
                                         num_elems_after_padding, final_size_of_type, 0);
234
437
        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
437
        encode_fixed32_le(&_buffer[0], _count);
244
437
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
437
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
437
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
437
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
437
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
437
        return _buffer.build();
251
437
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.11k
    OwnedSlice _finish(int final_size_of_type) {
216
7.11k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.11k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.11k
        int padding_elems = num_elems_after_padding - _count;
221
7.11k
        int padding_bytes = padding_elems * final_size_of_type;
222
373k
        for (int i = 0; i < padding_bytes; i++) {
223
366k
            _data.push_back(0);
224
366k
        }
225
226
        // reserve enough place for compression
227
7.11k
        _buffer.resize(
228
7.11k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.11k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.11k
        int64_t bytes =
232
7.11k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.11k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.11k
        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.11k
        encode_fixed32_le(&_buffer[0], _count);
244
7.11k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.11k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.11k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.11k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.11k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.11k
        return _buffer.build();
251
7.11k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
109
    OwnedSlice _finish(int final_size_of_type) {
216
109
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
109
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
109
        int padding_elems = num_elems_after_padding - _count;
221
109
        int padding_bytes = padding_elems * final_size_of_type;
222
6.66k
        for (int i = 0; i < padding_bytes; i++) {
223
6.55k
            _data.push_back(0);
224
6.55k
        }
225
226
        // reserve enough place for compression
227
109
        _buffer.resize(
228
109
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
109
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
109
        int64_t bytes =
232
109
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
109
                                         num_elems_after_padding, final_size_of_type, 0);
234
109
        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
109
        encode_fixed32_le(&_buffer[0], _count);
244
109
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
109
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
109
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
109
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
109
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
109
        return _buffer.build();
251
109
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.79k
    OwnedSlice _finish(int final_size_of_type) {
216
9.79k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.79k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.79k
        int padding_elems = num_elems_after_padding - _count;
221
9.79k
        int padding_bytes = padding_elems * final_size_of_type;
222
120k
        for (int i = 0; i < padding_bytes; i++) {
223
110k
            _data.push_back(0);
224
110k
        }
225
226
        // reserve enough place for compression
227
9.79k
        _buffer.resize(
228
9.79k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.79k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.79k
        int64_t bytes =
232
9.79k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.79k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.79k
        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.79k
        encode_fixed32_le(&_buffer[0], _count);
244
9.79k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.79k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.79k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.79k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.79k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.79k
        return _buffer.build();
251
9.79k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
19.1k
    OwnedSlice _finish(int final_size_of_type) {
216
19.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.1k
        int padding_elems = num_elems_after_padding - _count;
221
19.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
515k
        for (int i = 0; i < padding_bytes; i++) {
223
496k
            _data.push_back(0);
224
496k
        }
225
226
        // reserve enough place for compression
227
19.1k
        _buffer.resize(
228
19.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.1k
        int64_t bytes =
232
19.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.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
19.1k
        encode_fixed32_le(&_buffer[0], _count);
244
19.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.1k
        return _buffer.build();
251
19.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
16.4k
    OwnedSlice _finish(int final_size_of_type) {
216
16.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.4k
        int padding_elems = num_elems_after_padding - _count;
221
16.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.13M
        for (int i = 0; i < padding_bytes; i++) {
223
1.11M
            _data.push_back(0);
224
1.11M
        }
225
226
        // reserve enough place for compression
227
16.4k
        _buffer.resize(
228
16.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.4k
        int64_t bytes =
232
16.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.4k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
16.4k
        encode_fixed32_le(&_buffer[0], _count);
244
16.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.4k
        return _buffer.build();
251
16.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
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
714
    OwnedSlice _finish(int final_size_of_type) {
216
714
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
714
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
714
        int padding_elems = num_elems_after_padding - _count;
221
714
        int padding_bytes = padding_elems * final_size_of_type;
222
15.0k
        for (int i = 0; i < padding_bytes; i++) {
223
14.3k
            _data.push_back(0);
224
14.3k
        }
225
226
        // reserve enough place for compression
227
714
        _buffer.resize(
228
714
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
714
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
714
        int64_t bytes =
232
714
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
714
                                         num_elems_after_padding, final_size_of_type, 0);
234
714
        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
714
        encode_fixed32_le(&_buffer[0], _count);
244
714
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
714
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
714
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
714
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
714
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
714
        return _buffer.build();
251
714
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
632
    OwnedSlice _finish(int final_size_of_type) {
216
632
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
632
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
632
        int padding_elems = num_elems_after_padding - _count;
221
632
        int padding_bytes = padding_elems * final_size_of_type;
222
51.7k
        for (int i = 0; i < padding_bytes; i++) {
223
51.0k
            _data.push_back(0);
224
51.0k
        }
225
226
        // reserve enough place for compression
227
632
        _buffer.resize(
228
632
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
632
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
632
        int64_t bytes =
232
632
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
632
                                         num_elems_after_padding, final_size_of_type, 0);
234
632
        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
632
        encode_fixed32_le(&_buffer[0], _count);
244
632
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
632
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
632
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
632
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
632
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
632
        return _buffer.build();
251
632
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.71M
    CppType cell(int idx) const {
256
1.71M
        DCHECK_GE(idx, 0);
257
1.71M
        CppType ret;
258
1.71M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.71M
        return ret;
260
1.71M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
696k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
696k
        CppType ret;
258
696k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
696k
        return ret;
260
696k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
108k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
108k
        CppType ret;
258
108k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
108k
        return ret;
260
108k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
15.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
15.2k
        CppType ret;
258
15.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
15.2k
        return ret;
260
15.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
409k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
409k
        CppType ret;
258
409k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
409k
        return ret;
260
409k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
142k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
142k
        CppType ret;
258
142k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
142k
        return ret;
260
142k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
18.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
18.6k
        CppType ret;
258
18.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
18.6k
        return ret;
260
18.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
22.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
22.2k
        CppType ret;
258
22.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
22.2k
        return ret;
260
22.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
38.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
38.7k
        CppType ret;
258
38.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
38.7k
        return ret;
260
38.7k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
386
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
386
        CppType ret;
258
386
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
386
        return ret;
260
386
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
73.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
73.2k
        CppType ret;
258
73.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
73.2k
        return ret;
260
73.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
87.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
87.9k
        CppType ret;
258
87.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
87.9k
        return ret;
260
87.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
674
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
674
        CppType ret;
258
674
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
674
        return ret;
260
674
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
13.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.8k
        CppType ret;
258
13.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.8k
        return ret;
260
13.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
202
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
202
        CppType ret;
258
202
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
202
        return ret;
260
202
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.72k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.72k
        CppType ret;
258
9.72k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.72k
        return ret;
260
9.72k
    }
_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.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.8k
        CppType ret;
258
31.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.8k
        return ret;
260
31.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.02k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.02k
        CppType ret;
258
2.02k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.02k
        return ret;
260
2.02k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.33k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.33k
        CppType ret;
258
1.33k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.33k
        return ret;
260
1.33k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.19k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.19k
        CppType ret;
258
1.19k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.19k
        return ret;
260
1.19k
    }
261
262
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
263
    PageBuilderOptions _options;
264
    uint32_t _count;
265
    uint32_t _remain_element_capacity;
266
    bool _finished;
267
    faststring _data;
268
    faststring _buffer;
269
    CppType _first_value;
270
    CppType _last_value;
271
    uint64_t _raw_data_size = 0;
272
};
273
274
inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
275
                                       size_t& compressed_size, size_t& num_element_after_padding,
276
2.12M
                                       int& size_of_element) {
277
2.12M
    if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) {
278
0
        return Status::InternalError("file corruption: invalid data size:{}, header size:{}",
279
0
                                     data.size, BITSHUFFLE_PAGE_HEADER_SIZE);
280
0
    }
281
282
2.12M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.12M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.12M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.12M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.12M
    if (num_element_after_padding != ALIGN_UP(num_elements, 8)) {
287
0
        return Status::InternalError(
288
0
                "num of element information corrupted,"
289
0
                " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{},"
290
0
                " compressed_size:{}, size_of_element:{}, data_size:{}",
291
0
                num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size,
292
0
                size_of_element, data.size);
293
0
    }
294
2.12M
    switch (size_of_element) {
295
125k
    case 1:
296
145k
    case 2:
297
148k
    case 3:
298
1.31M
    case 4:
299
2.05M
    case 8:
300
2.05M
    case 12:
301
2.12M
    case 16:
302
2.12M
    case 32:
303
2.12M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.12M
    }
307
2.12M
    return Status::OK();
308
2.12M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.32M
            : _data(data),
315
1.32M
              _options(options),
316
1.32M
              _parsed(false),
317
1.32M
              _num_elements(0),
318
1.32M
              _num_element_after_padding(0),
319
1.32M
              _size_of_element(0),
320
1.32M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
622k
            : _data(data),
315
622k
              _options(options),
316
622k
              _parsed(false),
317
622k
              _num_elements(0),
318
622k
              _num_element_after_padding(0),
319
622k
              _size_of_element(0),
320
622k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
73.4k
            : _data(data),
315
73.4k
              _options(options),
316
73.4k
              _parsed(false),
317
73.4k
              _num_elements(0),
318
73.4k
              _num_element_after_padding(0),
319
73.4k
              _size_of_element(0),
320
73.4k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
13.0k
            : _data(data),
315
13.0k
              _options(options),
316
13.0k
              _parsed(false),
317
13.0k
              _num_elements(0),
318
13.0k
              _num_element_after_padding(0),
319
13.0k
              _size_of_element(0),
320
13.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
214k
            : _data(data),
315
214k
              _options(options),
316
214k
              _parsed(false),
317
214k
              _num_elements(0),
318
214k
              _num_element_after_padding(0),
319
214k
              _size_of_element(0),
320
214k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
92.0k
            : _data(data),
315
92.0k
              _options(options),
316
92.0k
              _parsed(false),
317
92.0k
              _num_elements(0),
318
92.0k
              _num_element_after_padding(0),
319
92.0k
              _size_of_element(0),
320
92.0k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
11.1k
            : _data(data),
315
11.1k
              _options(options),
316
11.1k
              _parsed(false),
317
11.1k
              _num_elements(0),
318
11.1k
              _num_element_after_padding(0),
319
11.1k
              _size_of_element(0),
320
11.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
20.9k
            : _data(data),
315
20.9k
              _options(options),
316
20.9k
              _parsed(false),
317
20.9k
              _num_elements(0),
318
20.9k
              _num_element_after_padding(0),
319
20.9k
              _size_of_element(0),
320
20.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
31.7k
            : _data(data),
315
31.7k
              _options(options),
316
31.7k
              _parsed(false),
317
31.7k
              _num_elements(0),
318
31.7k
              _num_element_after_padding(0),
319
31.7k
              _size_of_element(0),
320
31.7k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.57k
            : _data(data),
315
2.57k
              _options(options),
316
2.57k
              _parsed(false),
317
2.57k
              _num_elements(0),
318
2.57k
              _num_element_after_padding(0),
319
2.57k
              _size_of_element(0),
320
2.57k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
61.6k
            : _data(data),
315
61.6k
              _options(options),
316
61.6k
              _parsed(false),
317
61.6k
              _num_elements(0),
318
61.6k
              _num_element_after_padding(0),
319
61.6k
              _size_of_element(0),
320
61.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
71.1k
            : _data(data),
315
71.1k
              _options(options),
316
71.1k
              _parsed(false),
317
71.1k
              _num_elements(0),
318
71.1k
              _num_element_after_padding(0),
319
71.1k
              _size_of_element(0),
320
71.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
3.23k
            : _data(data),
315
3.23k
              _options(options),
316
3.23k
              _parsed(false),
317
3.23k
              _num_elements(0),
318
3.23k
              _num_element_after_padding(0),
319
3.23k
              _size_of_element(0),
320
3.23k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.0k
            : _data(data),
315
15.0k
              _options(options),
316
15.0k
              _parsed(false),
317
15.0k
              _num_elements(0),
318
15.0k
              _num_element_after_padding(0),
319
15.0k
              _size_of_element(0),
320
15.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.29k
            : _data(data),
315
1.29k
              _options(options),
316
1.29k
              _parsed(false),
317
1.29k
              _num_elements(0),
318
1.29k
              _num_element_after_padding(0),
319
1.29k
              _size_of_element(0),
320
1.29k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.6k
            : _data(data),
315
15.6k
              _options(options),
316
15.6k
              _parsed(false),
317
15.6k
              _num_elements(0),
318
15.6k
              _num_element_after_padding(0),
319
15.6k
              _size_of_element(0),
320
15.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
40.5k
            : _data(data),
315
40.5k
              _options(options),
316
40.5k
              _parsed(false),
317
40.5k
              _num_elements(0),
318
40.5k
              _num_element_after_padding(0),
319
40.5k
              _size_of_element(0),
320
40.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
31.9k
            : _data(data),
315
31.9k
              _options(options),
316
31.9k
              _parsed(false),
317
31.9k
              _num_elements(0),
318
31.9k
              _num_element_after_padding(0),
319
31.9k
              _size_of_element(0),
320
31.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.79k
            : _data(data),
315
1.79k
              _options(options),
316
1.79k
              _parsed(false),
317
1.79k
              _num_elements(0),
318
1.79k
              _num_element_after_padding(0),
319
1.79k
              _size_of_element(0),
320
1.79k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.20k
            : _data(data),
315
1.20k
              _options(options),
316
1.20k
              _parsed(false),
317
1.20k
              _num_elements(0),
318
1.20k
              _num_element_after_padding(0),
319
1.20k
              _size_of_element(0),
320
1.20k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.16k
            : _data(data),
315
1.16k
              _options(options),
316
1.16k
              _parsed(false),
317
1.16k
              _num_elements(0),
318
1.16k
              _num_element_after_padding(0),
319
1.16k
              _size_of_element(0),
320
1.16k
              _cur_index(0) {}
321
322
1.32M
    Status init() override {
323
1.32M
        CHECK(!_parsed);
324
1.32M
        size_t unused;
325
1.32M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.32M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.32M
        if (_data.size !=
329
1.32M
            _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.32M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.32M
                     _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.32M
        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.32M
        _parsed = true;
349
1.32M
        return Status::OK();
350
1.32M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
622k
    Status init() override {
323
622k
        CHECK(!_parsed);
324
622k
        size_t unused;
325
622k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
622k
                                                 _num_element_after_padding, _size_of_element));
327
328
622k
        if (_data.size !=
329
622k
            _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
622k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
622k
                     _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
622k
        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
622k
        _parsed = true;
349
622k
        return Status::OK();
350
622k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
73.4k
    Status init() override {
323
73.4k
        CHECK(!_parsed);
324
73.4k
        size_t unused;
325
73.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
73.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
73.4k
        if (_data.size !=
329
73.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
73.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
73.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
73.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
73.4k
        _parsed = true;
349
73.4k
        return Status::OK();
350
73.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
13.0k
    Status init() override {
323
13.0k
        CHECK(!_parsed);
324
13.0k
        size_t unused;
325
13.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
13.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
13.0k
        if (_data.size !=
329
13.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
13.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
13.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
13.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
13.0k
        _parsed = true;
349
13.0k
        return Status::OK();
350
13.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
214k
    Status init() override {
323
214k
        CHECK(!_parsed);
324
214k
        size_t unused;
325
214k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
214k
                                                 _num_element_after_padding, _size_of_element));
327
328
214k
        if (_data.size !=
329
214k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
214k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
214k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
214k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
214k
        _parsed = true;
349
214k
        return Status::OK();
350
214k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
92.0k
    Status init() override {
323
92.0k
        CHECK(!_parsed);
324
92.0k
        size_t unused;
325
92.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
92.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
92.0k
        if (_data.size !=
329
92.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
92.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
92.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
92.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
92.0k
        _parsed = true;
349
92.0k
        return Status::OK();
350
92.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
11.1k
    Status init() override {
323
11.1k
        CHECK(!_parsed);
324
11.1k
        size_t unused;
325
11.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
11.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
11.1k
        if (_data.size !=
329
11.1k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
11.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
11.1k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
11.1k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
11.1k
        _parsed = true;
349
11.1k
        return Status::OK();
350
11.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
20.9k
    Status init() override {
323
20.9k
        CHECK(!_parsed);
324
20.9k
        size_t unused;
325
20.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
20.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
20.9k
        if (_data.size !=
329
20.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
20.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
20.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
20.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
20.9k
        _parsed = true;
349
20.9k
        return Status::OK();
350
20.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
31.6k
    Status init() override {
323
31.6k
        CHECK(!_parsed);
324
31.6k
        size_t unused;
325
31.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
31.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
31.6k
        if (_data.size !=
329
31.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
31.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
31.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
31.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
31.6k
        _parsed = true;
349
31.6k
        return Status::OK();
350
31.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
2.57k
    Status init() override {
323
2.57k
        CHECK(!_parsed);
324
2.57k
        size_t unused;
325
2.57k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.57k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.57k
        if (_data.size !=
329
2.57k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
2.57k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.57k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
2.57k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
2.57k
        _parsed = true;
349
2.57k
        return Status::OK();
350
2.57k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
61.6k
    Status init() override {
323
61.6k
        CHECK(!_parsed);
324
61.6k
        size_t unused;
325
61.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
61.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
61.6k
        if (_data.size !=
329
61.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
61.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
61.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
61.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
61.6k
        _parsed = true;
349
61.6k
        return Status::OK();
350
61.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
71.1k
    Status init() override {
323
71.1k
        CHECK(!_parsed);
324
71.1k
        size_t unused;
325
71.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
71.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
71.1k
        if (_data.size !=
329
71.1k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
71.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
71.1k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
71.1k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
71.1k
        _parsed = true;
349
71.1k
        return Status::OK();
350
71.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
3.23k
    Status init() override {
323
3.23k
        CHECK(!_parsed);
324
3.23k
        size_t unused;
325
3.23k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
3.23k
                                                 _num_element_after_padding, _size_of_element));
327
328
3.23k
        if (_data.size !=
329
3.23k
            _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
3.23k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
3.23k
                     _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
3.23k
        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
3.23k
        _parsed = true;
349
3.23k
        return Status::OK();
350
3.23k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
15.0k
    Status init() override {
323
15.0k
        CHECK(!_parsed);
324
15.0k
        size_t unused;
325
15.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.0k
        if (_data.size !=
329
15.0k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
15.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.0k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
15.0k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
15.0k
        _parsed = true;
349
15.0k
        return Status::OK();
350
15.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.29k
    Status init() override {
323
1.29k
        CHECK(!_parsed);
324
1.29k
        size_t unused;
325
1.29k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.29k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.29k
        if (_data.size !=
329
1.29k
            _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.29k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.29k
                     _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.29k
        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.29k
        _parsed = true;
349
1.29k
        return Status::OK();
350
1.29k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.6k
    Status init() override {
323
15.6k
        CHECK(!_parsed);
324
15.6k
        size_t unused;
325
15.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.6k
        if (_data.size !=
329
15.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
15.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.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
15.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
15.6k
        _parsed = true;
349
15.6k
        return Status::OK();
350
15.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
40.5k
    Status init() override {
323
40.5k
        CHECK(!_parsed);
324
40.5k
        size_t unused;
325
40.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
40.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
40.5k
        if (_data.size !=
329
40.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
40.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
40.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
40.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
40.5k
        _parsed = true;
349
40.5k
        return Status::OK();
350
40.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
31.9k
    Status init() override {
323
31.9k
        CHECK(!_parsed);
324
31.9k
        size_t unused;
325
31.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
31.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
31.9k
        if (_data.size !=
329
31.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
31.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
31.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
31.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
31.9k
        _parsed = true;
349
31.9k
        return Status::OK();
350
31.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.79k
    Status init() override {
323
1.79k
        CHECK(!_parsed);
324
1.79k
        size_t unused;
325
1.79k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.79k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.79k
        if (_data.size !=
329
1.79k
            _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.79k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.79k
                     _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.79k
        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.79k
        _parsed = true;
349
1.79k
        return Status::OK();
350
1.79k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.20k
    Status init() override {
323
1.20k
        CHECK(!_parsed);
324
1.20k
        size_t unused;
325
1.20k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.20k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.20k
        if (_data.size !=
329
1.20k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.20k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.20k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.20k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.20k
        _parsed = true;
349
1.20k
        return Status::OK();
350
1.20k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.16k
    Status init() override {
323
1.16k
        CHECK(!_parsed);
324
1.16k
        size_t unused;
325
1.16k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.16k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.16k
        if (_data.size !=
329
1.16k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.16k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.16k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.16k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.16k
        _parsed = true;
349
1.16k
        return Status::OK();
350
1.16k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
1.17M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.17M
        if (_num_elements == 0) [[unlikely]] {
361
6.17k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
6.17k
        }
366
367
1.17M
        DCHECK_LE(pos, _num_elements);
368
1.17M
        _cur_index = pos;
369
1.17M
        return Status::OK();
370
1.17M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
453k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
453k
        if (_num_elements == 0) [[unlikely]] {
361
2.37k
            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.37k
        }
366
367
453k
        DCHECK_LE(pos, _num_elements);
368
453k
        _cur_index = pos;
369
453k
        return Status::OK();
370
453k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
90.4k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
90.4k
        if (_num_elements == 0) [[unlikely]] {
361
531
            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
531
        }
366
367
90.4k
        DCHECK_LE(pos, _num_elements);
368
90.4k
        _cur_index = pos;
369
90.4k
        return Status::OK();
370
90.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
3.38k
    Status seek_to_position_in_page(size_t pos) override {
359
3.38k
        DCHECK(_parsed) << "Must call init()";
360
3.38k
        if (_num_elements == 0) [[unlikely]] {
361
970
            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
970
        }
366
367
3.38k
        DCHECK_LE(pos, _num_elements);
368
3.38k
        _cur_index = pos;
369
3.38k
        return Status::OK();
370
3.38k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
128k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
128k
        if (_num_elements == 0) [[unlikely]] {
361
1.07k
            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.07k
        }
366
367
128k
        DCHECK_LE(pos, _num_elements);
368
128k
        _cur_index = pos;
369
128k
        return Status::OK();
370
128k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
8.87k
    Status seek_to_position_in_page(size_t pos) override {
359
8.87k
        DCHECK(_parsed) << "Must call init()";
360
8.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
8.87k
        DCHECK_LE(pos, _num_elements);
368
8.87k
        _cur_index = pos;
369
8.87k
        return Status::OK();
370
8.87k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
3.88k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
3.88k
        if (_num_elements == 0) [[unlikely]] {
361
6
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
6
        }
366
367
3.88k
        DCHECK_LE(pos, _num_elements);
368
3.88k
        _cur_index = pos;
369
3.88k
        return Status::OK();
370
3.88k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.9k
    Status seek_to_position_in_page(size_t pos) override {
359
16.9k
        DCHECK(_parsed) << "Must call init()";
360
16.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
16.9k
        DCHECK_LE(pos, _num_elements);
368
16.9k
        _cur_index = pos;
369
16.9k
        return Status::OK();
370
16.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
13.9k
    Status seek_to_position_in_page(size_t pos) override {
359
13.9k
        DCHECK(_parsed) << "Must call init()";
360
13.9k
        if (_num_elements == 0) [[unlikely]] {
361
5
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
5
        }
366
367
13.9k
        DCHECK_LE(pos, _num_elements);
368
13.9k
        _cur_index = pos;
369
13.9k
        return Status::OK();
370
13.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.0k
    Status seek_to_position_in_page(size_t pos) override {
359
12.0k
        DCHECK(_parsed) << "Must call init()";
360
12.0k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
12.0k
        DCHECK_LE(pos, _num_elements);
368
12.0k
        _cur_index = pos;
369
12.0k
        return Status::OK();
370
12.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
353k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
353k
        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
353k
        DCHECK_LE(pos, _num_elements);
368
353k
        _cur_index = pos;
369
353k
        return Status::OK();
370
353k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
43.4k
    Status seek_to_position_in_page(size_t pos) override {
359
43.4k
        DCHECK(_parsed) << "Must call init()";
360
43.4k
        if (_num_elements == 0) [[unlikely]] {
361
19
            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
19
        }
366
367
43.4k
        DCHECK_LE(pos, _num_elements);
368
43.4k
        _cur_index = pos;
369
43.4k
        return Status::OK();
370
43.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
7.20k
    Status seek_to_position_in_page(size_t pos) override {
359
7.20k
        DCHECK(_parsed) << "Must call init()";
360
7.20k
        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.20k
        DCHECK_LE(pos, _num_elements);
368
7.20k
        _cur_index = pos;
369
7.20k
        return Status::OK();
370
7.20k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.70k
    Status seek_to_position_in_page(size_t pos) override {
359
6.70k
        DCHECK(_parsed) << "Must call init()";
360
6.70k
        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.70k
        DCHECK_LE(pos, _num_elements);
368
6.70k
        _cur_index = pos;
369
6.70k
        return Status::OK();
370
6.70k
    }
_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
742
    Status seek_to_position_in_page(size_t pos) override {
359
742
        DCHECK(_parsed) << "Must call init()";
360
742
        if (_num_elements == 0) [[unlikely]] {
361
31
            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
31
        }
366
367
742
        DCHECK_LE(pos, _num_elements);
368
742
        _cur_index = pos;
369
742
        return Status::OK();
370
742
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.3k
    Status seek_to_position_in_page(size_t pos) override {
359
16.3k
        DCHECK(_parsed) << "Must call init()";
360
16.3k
        if (_num_elements == 0) [[unlikely]] {
361
12
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
12
        }
366
367
16.3k
        DCHECK_LE(pos, _num_elements);
368
16.3k
        _cur_index = pos;
369
16.3k
        return Status::OK();
370
16.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
11.0k
    Status seek_to_position_in_page(size_t pos) override {
359
11.0k
        DCHECK(_parsed) << "Must call init()";
360
11.0k
        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.0k
        DCHECK_LE(pos, _num_elements);
368
11.0k
        _cur_index = pos;
369
11.0k
        return Status::OK();
370
11.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.97k
    Status seek_to_position_in_page(size_t pos) override {
359
1.97k
        DCHECK(_parsed) << "Must call init()";
360
1.97k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
1.97k
        DCHECK_LE(pos, _num_elements);
368
1.97k
        _cur_index = pos;
369
1.97k
        return Status::OK();
370
1.97k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
67
    Status seek_to_position_in_page(size_t pos) override {
359
67
        DCHECK(_parsed) << "Must call init()";
360
67
        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
67
        DCHECK_LE(pos, _num_elements);
368
67
        _cur_index = pos;
369
67
        return Status::OK();
370
67
    }
_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.47M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.47M
        DCHECK(_parsed);
413
2.47M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.47M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.47M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.47M
        *n = max_fetch;
422
2.47M
        if constexpr (forward_index) {
423
1.87M
            _cur_index += max_fetch;
424
1.87M
        }
425
426
2.47M
        return Status::OK();
427
2.47M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
322k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
322k
        DCHECK(_parsed);
413
322k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
322k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
322k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
322k
        *n = max_fetch;
422
322k
        if constexpr (forward_index) {
423
322k
            _cur_index += max_fetch;
424
322k
        }
425
426
322k
        return Status::OK();
427
322k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
398k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
398k
        DCHECK(_parsed);
413
398k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
398k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
398k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
398k
        *n = max_fetch;
422
398k
        if constexpr (forward_index) {
423
398k
            _cur_index += max_fetch;
424
398k
        }
425
426
398k
        return Status::OK();
427
398k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
8.39k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.39k
        DCHECK(_parsed);
413
8.39k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.39k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.39k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.39k
        *n = max_fetch;
422
8.39k
        if constexpr (forward_index) {
423
8.39k
            _cur_index += max_fetch;
424
8.39k
        }
425
426
8.39k
        return Status::OK();
427
8.39k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
115k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
115k
        DCHECK(_parsed);
413
115k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
115k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
115k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
115k
        *n = max_fetch;
422
115k
        if constexpr (forward_index) {
423
115k
            _cur_index += max_fetch;
424
115k
        }
425
426
115k
        return Status::OK();
427
115k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
351k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
351k
        DCHECK(_parsed);
413
351k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
351k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
351k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
351k
        *n = max_fetch;
422
351k
        if constexpr (forward_index) {
423
351k
            _cur_index += max_fetch;
424
351k
        }
425
426
351k
        return Status::OK();
427
351k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
603k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
603k
        DCHECK(_parsed);
413
603k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
603k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
603k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
603k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
603k
        return Status::OK();
427
603k
    }
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
8.41k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.41k
        DCHECK(_parsed);
413
8.41k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.41k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.41k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.41k
        *n = max_fetch;
422
8.41k
        if constexpr (forward_index) {
423
8.41k
            _cur_index += max_fetch;
424
8.41k
        }
425
426
8.41k
        return Status::OK();
427
8.41k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
15.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
15.5k
        DCHECK(_parsed);
413
15.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
15.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
15.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
15.5k
        *n = max_fetch;
422
15.5k
        if constexpr (forward_index) {
423
15.5k
            _cur_index += max_fetch;
424
15.5k
        }
425
426
15.5k
        return Status::OK();
427
15.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
29.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
29.5k
        DCHECK(_parsed);
413
29.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
29.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
29.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
29.5k
        *n = max_fetch;
422
29.5k
        if constexpr (forward_index) {
423
29.5k
            _cur_index += max_fetch;
424
29.5k
        }
425
426
29.5k
        return Status::OK();
427
29.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
4.77k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
4.77k
        DCHECK(_parsed);
413
4.77k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
4.77k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
4.77k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
4.77k
        *n = max_fetch;
422
4.77k
        if constexpr (forward_index) {
423
4.77k
            _cur_index += max_fetch;
424
4.77k
        }
425
426
4.77k
        return Status::OK();
427
4.77k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
454k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
454k
        DCHECK(_parsed);
413
454k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
454k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
454k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
454k
        *n = max_fetch;
422
454k
        if constexpr (forward_index) {
423
454k
            _cur_index += max_fetch;
424
454k
        }
425
426
454k
        return Status::OK();
427
454k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
69.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
69.8k
        DCHECK(_parsed);
413
69.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
69.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
69.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
69.8k
        *n = max_fetch;
422
69.8k
        if constexpr (forward_index) {
423
69.8k
            _cur_index += max_fetch;
424
69.8k
        }
425
426
69.8k
        return Status::OK();
427
69.8k
    }
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.98k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.98k
        DCHECK(_parsed);
413
1.98k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.98k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.98k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.98k
        *n = max_fetch;
422
1.98k
        if constexpr (forward_index) {
423
1.98k
            _cur_index += max_fetch;
424
1.98k
        }
425
426
1.98k
        return Status::OK();
427
1.98k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
6.97k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.97k
        DCHECK(_parsed);
413
6.97k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.97k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.97k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.97k
        *n = max_fetch;
422
6.97k
        if constexpr (forward_index) {
423
6.97k
            _cur_index += max_fetch;
424
6.97k
        }
425
426
6.97k
        return Status::OK();
427
6.97k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.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
8.74k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.74k
        DCHECK(_parsed);
413
8.75k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.74k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.74k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.74k
        *n = max_fetch;
422
8.74k
        if constexpr (forward_index) {
423
8.74k
            _cur_index += max_fetch;
424
8.74k
        }
425
426
8.74k
        return Status::OK();
427
8.74k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
42.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
42.5k
        DCHECK(_parsed);
413
42.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
42.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
42.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
42.5k
        *n = max_fetch;
422
42.5k
        if constexpr (forward_index) {
423
42.5k
            _cur_index += max_fetch;
424
42.5k
        }
425
426
42.5k
        return Status::OK();
427
42.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
22.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
22.7k
        DCHECK(_parsed);
413
22.7k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
22.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
22.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
22.7k
        *n = max_fetch;
422
22.7k
        if constexpr (forward_index) {
423
22.7k
            _cur_index += max_fetch;
424
22.7k
        }
425
426
22.7k
        return Status::OK();
427
22.7k
    }
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.22k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.22k
        DCHECK(_parsed);
413
3.22k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.22k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.22k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.22k
        *n = max_fetch;
422
3.22k
        if constexpr (forward_index) {
423
3.22k
            _cur_index += max_fetch;
424
3.22k
        }
425
426
3.22k
        return Status::OK();
427
3.22k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
764
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
764
        DCHECK(_parsed);
413
764
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
764
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
764
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
764
        *n = max_fetch;
422
764
        if constexpr (forward_index) {
423
764
            _cur_index += max_fetch;
424
764
        }
425
426
764
        return Status::OK();
427
764
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.27k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.27k
        DCHECK(_parsed);
413
3.27k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.27k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.27k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.27k
        *n = max_fetch;
422
3.27k
        if constexpr (forward_index) {
423
3.27k
            _cur_index += max_fetch;
424
3.27k
        }
425
426
3.27k
        return Status::OK();
427
3.27k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
1.87M
    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
322k
    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
398k
    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
8.39k
    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
115k
    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
351k
    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
8.41k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
15.5k
    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
29.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
4.77k
    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
454k
    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
69.8k
    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.98k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
6.97k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.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
8.75k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
42.6k
    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
22.7k
    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.22k
    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
764
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.27k
    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
369k
                          MutableColumnPtr& dst) override {
433
369k
        DCHECK(_parsed);
434
369k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
369k
        auto total = *n;
440
369k
        auto read_count = 0;
441
369k
        _buffer.resize(total);
442
98.1M
        for (size_t i = 0; i < total; ++i) {
443
97.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
97.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
8.90k
                break;
446
8.90k
            }
447
448
97.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
97.7M
        }
450
451
369k
        if (LIKELY(read_count > 0)) {
452
369k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
369k
        }
454
455
369k
        *n = read_count;
456
369k
        return Status::OK();
457
369k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
69.6k
                          MutableColumnPtr& dst) override {
433
69.6k
        DCHECK(_parsed);
434
69.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
69.6k
        auto total = *n;
440
69.6k
        auto read_count = 0;
441
69.6k
        _buffer.resize(total);
442
33.8M
        for (size_t i = 0; i < total; ++i) {
443
33.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
33.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
488
                break;
446
488
            }
447
448
33.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
33.7M
        }
450
451
69.7k
        if (LIKELY(read_count > 0)) {
452
69.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
69.7k
        }
454
455
69.6k
        *n = read_count;
456
69.6k
        return Status::OK();
457
69.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.1k
                          MutableColumnPtr& dst) override {
433
30.1k
        DCHECK(_parsed);
434
30.1k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.1k
        auto total = *n;
440
30.1k
        auto read_count = 0;
441
30.1k
        _buffer.resize(total);
442
815k
        for (size_t i = 0; i < total; ++i) {
443
785k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
785k
            if (UNLIKELY(ord >= _num_elements)) {
445
7
                break;
446
7
            }
447
448
785k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
785k
        }
450
451
30.1k
        if (LIKELY(read_count > 0)) {
452
30.1k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.1k
        }
454
455
30.1k
        *n = read_count;
456
30.1k
        return Status::OK();
457
30.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
7.30k
                          MutableColumnPtr& dst) override {
433
7.30k
        DCHECK(_parsed);
434
7.30k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
7.30k
        auto total = *n;
440
7.30k
        auto read_count = 0;
441
7.30k
        _buffer.resize(total);
442
71.8k
        for (size_t i = 0; i < total; ++i) {
443
64.5k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
64.5k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
64.5k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
64.5k
        }
450
451
7.30k
        if (LIKELY(read_count > 0)) {
452
7.29k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
7.29k
        }
454
455
7.30k
        *n = read_count;
456
7.30k
        return Status::OK();
457
7.30k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
72.3k
                          MutableColumnPtr& dst) override {
433
72.3k
        DCHECK(_parsed);
434
72.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
72.3k
        auto total = *n;
440
72.3k
        auto read_count = 0;
441
72.3k
        _buffer.resize(total);
442
10.9M
        for (size_t i = 0; i < total; ++i) {
443
10.8M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
10.8M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.63k
                break;
446
1.63k
            }
447
448
10.8M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.8M
        }
450
451
72.4k
        if (LIKELY(read_count > 0)) {
452
72.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
72.4k
        }
454
455
72.3k
        *n = read_count;
456
72.3k
        return Status::OK();
457
72.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
28.0k
                          MutableColumnPtr& dst) override {
433
28.0k
        DCHECK(_parsed);
434
28.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
28.0k
        auto total = *n;
440
28.0k
        auto read_count = 0;
441
28.0k
        _buffer.resize(total);
442
636k
        for (size_t i = 0; i < total; ++i) {
443
608k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
608k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
608k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
608k
        }
450
451
28.0k
        if (LIKELY(read_count > 0)) {
452
28.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
28.0k
        }
454
455
28.0k
        *n = read_count;
456
28.0k
        return Status::OK();
457
28.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
6.44k
                          MutableColumnPtr& dst) override {
433
6.44k
        DCHECK(_parsed);
434
6.44k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
6.44k
        auto total = *n;
440
6.44k
        auto read_count = 0;
441
6.44k
        _buffer.resize(total);
442
13.9k
        for (size_t i = 0; i < total; ++i) {
443
7.54k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.54k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
7.54k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.54k
        }
450
451
6.44k
        if (LIKELY(read_count > 0)) {
452
6.44k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
6.44k
        }
454
455
6.44k
        *n = read_count;
456
6.44k
        return Status::OK();
457
6.44k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.6k
                          MutableColumnPtr& dst) override {
433
10.6k
        DCHECK(_parsed);
434
10.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.6k
        auto total = *n;
440
10.6k
        auto read_count = 0;
441
10.6k
        _buffer.resize(total);
442
1.12M
        for (size_t i = 0; i < total; ++i) {
443
1.11M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.11M
            if (UNLIKELY(ord >= _num_elements)) {
445
28
                break;
446
28
            }
447
448
1.11M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.11M
        }
450
451
10.6k
        if (LIKELY(read_count > 0)) {
452
10.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.6k
        }
454
455
10.6k
        *n = read_count;
456
10.6k
        return Status::OK();
457
10.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
16.9k
                          MutableColumnPtr& dst) override {
433
16.9k
        DCHECK(_parsed);
434
16.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
16.9k
        auto total = *n;
440
16.9k
        auto read_count = 0;
441
16.9k
        _buffer.resize(total);
442
4.75M
        for (size_t i = 0; i < total; ++i) {
443
4.73M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4.73M
            if (UNLIKELY(ord >= _num_elements)) {
445
858
                break;
446
858
            }
447
448
4.73M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4.73M
        }
450
451
16.9k
        if (LIKELY(read_count > 0)) {
452
16.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
16.9k
        }
454
455
16.9k
        *n = read_count;
456
16.9k
        return Status::OK();
457
16.9k
    }
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.01k
                          MutableColumnPtr& dst) override {
433
2.01k
        DCHECK(_parsed);
434
2.01k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.01k
        auto total = *n;
440
2.01k
        auto read_count = 0;
441
2.01k
        _buffer.resize(total);
442
520k
        for (size_t i = 0; i < total; ++i) {
443
518k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
518k
            if (UNLIKELY(ord >= _num_elements)) {
445
14
                break;
446
14
            }
447
448
518k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
518k
        }
450
451
2.01k
        if (LIKELY(read_count > 0)) {
452
2.01k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.01k
        }
454
455
2.01k
        *n = read_count;
456
2.01k
        return Status::OK();
457
2.01k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
29.5k
                          MutableColumnPtr& dst) override {
433
29.5k
        DCHECK(_parsed);
434
29.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
29.5k
        auto total = *n;
440
29.5k
        auto read_count = 0;
441
29.5k
        _buffer.resize(total);
442
6.77M
        for (size_t i = 0; i < total; ++i) {
443
6.74M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
6.74M
            if (UNLIKELY(ord >= _num_elements)) {
445
388
                break;
446
388
            }
447
448
6.74M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
6.74M
        }
450
451
29.6k
        if (LIKELY(read_count > 0)) {
452
29.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
29.6k
        }
454
455
29.5k
        *n = read_count;
456
29.5k
        return Status::OK();
457
29.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
33.0k
                          MutableColumnPtr& dst) override {
433
33.0k
        DCHECK(_parsed);
434
33.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
33.0k
        auto total = *n;
440
33.0k
        auto read_count = 0;
441
33.0k
        _buffer.resize(total);
442
7.60M
        for (size_t i = 0; i < total; ++i) {
443
7.56M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.56M
            if (UNLIKELY(ord >= _num_elements)) {
445
85
                break;
446
85
            }
447
448
7.56M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.56M
        }
450
451
33.0k
        if (LIKELY(read_count > 0)) {
452
33.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
33.0k
        }
454
455
33.0k
        *n = read_count;
456
33.0k
        return Status::OK();
457
33.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.18k
                          MutableColumnPtr& dst) override {
433
2.18k
        DCHECK(_parsed);
434
2.18k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.18k
        auto total = *n;
440
2.18k
        auto read_count = 0;
441
2.18k
        _buffer.resize(total);
442
503k
        for (size_t i = 0; i < total; ++i) {
443
501k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
501k
            if (UNLIKELY(ord >= _num_elements)) {
445
74
                break;
446
74
            }
447
448
501k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
501k
        }
450
451
2.18k
        if (LIKELY(read_count > 0)) {
452
2.18k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.18k
        }
454
455
2.18k
        *n = read_count;
456
2.18k
        return Status::OK();
457
2.18k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.9k
                          MutableColumnPtr& dst) override {
433
11.9k
        DCHECK(_parsed);
434
11.9k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.9k
        auto total = *n;
440
11.9k
        auto read_count = 0;
441
11.9k
        _buffer.resize(total);
442
25.3k
        for (size_t i = 0; i < total; ++i) {
443
13.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.4k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.4k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.4k
        }
450
451
11.9k
        if (LIKELY(read_count > 0)) {
452
11.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.9k
        }
454
455
11.9k
        *n = read_count;
456
11.9k
        return Status::OK();
457
11.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
94
                          MutableColumnPtr& dst) override {
433
94
        DCHECK(_parsed);
434
94
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
94
        auto total = *n;
440
94
        auto read_count = 0;
441
94
        _buffer.resize(total);
442
193
        for (size_t i = 0; i < total; ++i) {
443
99
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
99
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
99
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
99
        }
450
451
94
        if (LIKELY(read_count > 0)) {
452
94
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
94
        }
454
455
94
        *n = read_count;
456
94
        return Status::OK();
457
94
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.83k
                          MutableColumnPtr& dst) override {
433
4.83k
        DCHECK(_parsed);
434
4.83k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.83k
        auto total = *n;
440
4.83k
        auto read_count = 0;
441
4.83k
        _buffer.resize(total);
442
19.6k
        for (size_t i = 0; i < total; ++i) {
443
14.8k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.8k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.8k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.8k
        }
450
451
4.83k
        if (LIKELY(read_count > 0)) {
452
4.83k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.83k
        }
454
455
4.83k
        *n = read_count;
456
4.83k
        return Status::OK();
457
4.83k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
26.2k
                          MutableColumnPtr& dst) override {
433
26.2k
        DCHECK(_parsed);
434
26.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
26.2k
        auto total = *n;
440
26.2k
        auto read_count = 0;
441
26.2k
        _buffer.resize(total);
442
19.7M
        for (size_t i = 0; i < total; ++i) {
443
19.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
19.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
4.91k
                break;
446
4.91k
            }
447
448
19.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
19.7M
        }
450
451
26.2k
        if (LIKELY(read_count > 0)) {
452
26.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
26.2k
        }
454
455
26.2k
        *n = read_count;
456
26.2k
        return Status::OK();
457
26.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.6k
                          MutableColumnPtr& dst) override {
433
15.6k
        DCHECK(_parsed);
434
15.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.6k
        auto total = *n;
440
15.6k
        auto read_count = 0;
441
15.6k
        _buffer.resize(total);
442
10.7M
        for (size_t i = 0; i < total; ++i) {
443
10.6M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
10.6M
            if (UNLIKELY(ord >= _num_elements)) {
445
410
                break;
446
410
            }
447
448
10.6M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.6M
        }
450
451
15.6k
        if (LIKELY(read_count > 0)) {
452
15.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.6k
        }
454
455
15.6k
        *n = read_count;
456
15.6k
        return Status::OK();
457
15.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
964
                          MutableColumnPtr& dst) override {
433
964
        DCHECK(_parsed);
434
964
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
964
        auto total = *n;
440
964
        auto read_count = 0;
441
964
        _buffer.resize(total);
442
2.78k
        for (size_t i = 0; i < total; ++i) {
443
1.81k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.81k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.81k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.81k
        }
450
451
964
        if (LIKELY(read_count > 0)) {
452
964
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
964
        }
454
455
964
        *n = read_count;
456
964
        return Status::OK();
457
964
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
468
                          MutableColumnPtr& dst) override {
433
468
        DCHECK(_parsed);
434
468
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
468
        auto total = *n;
440
468
        auto read_count = 0;
441
468
        _buffer.resize(total);
442
1.18k
        for (size_t i = 0; i < total; ++i) {
443
712
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
712
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
712
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
712
        }
450
451
468
        if (LIKELY(read_count > 0)) {
452
468
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
468
        }
454
455
468
        *n = read_count;
456
468
        return Status::OK();
457
468
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
402
                          MutableColumnPtr& dst) override {
433
402
        DCHECK(_parsed);
434
402
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
402
        auto total = *n;
440
402
        auto read_count = 0;
441
402
        _buffer.resize(total);
442
1.31k
        for (size_t i = 0; i < total; ++i) {
443
917
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
917
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
917
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
917
        }
450
451
402
        if (LIKELY(read_count > 0)) {
452
402
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
402
        }
454
455
402
        *n = read_count;
456
402
        return Status::OK();
457
402
    }
458
459
604k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
604k
        return next_batch<false>(n, dst);
461
604k
    }
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
604k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
604k
        return next_batch<false>(n, dst);
461
604k
    }
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
399k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
228k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
953
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
453
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
83.7k
    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
317
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
14.1k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
9.70k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
6.24k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
27.8k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
14.0k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
4.38k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
1.00k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
6
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.49k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
791
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
3.51k
    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
40
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
101
    size_t current_index() const override { return _cur_index; }
466
467
100M
    char* get_data(size_t index) const {
468
100M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
100M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
34.7M
    char* get_data(size_t index) const {
468
34.7M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
34.7M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
1.18M
    char* get_data(size_t index) const {
468
1.18M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.18M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
72.9k
    char* get_data(size_t index) const {
468
72.9k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
72.9k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
10.9M
    char* get_data(size_t index) const {
468
10.9M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.9M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
1.56M
    char* get_data(size_t index) const {
468
1.56M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.56M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
15.9k
    char* get_data(size_t index) const {
468
15.9k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
15.9k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.13M
    char* get_data(size_t index) const {
468
1.13M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.13M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
4.76M
    char* get_data(size_t index) const {
468
4.76M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.76M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
523k
    char* get_data(size_t index) const {
468
523k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
523k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
7.19M
    char* get_data(size_t index) const {
468
7.19M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.19M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
7.63M
    char* get_data(size_t index) const {
468
7.63M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.63M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
503k
    char* get_data(size_t index) const {
468
503k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
503k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
20.4k
    char* get_data(size_t index) const {
468
20.4k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
20.4k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.32k
    char* get_data(size_t index) const {
468
1.32k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.32k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
23.5k
    char* get_data(size_t index) const {
468
23.5k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
23.5k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
19.8M
    char* get_data(size_t index) const {
468
19.8M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
19.8M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
10.7M
    char* get_data(size_t index) const {
468
10.7M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.7M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
5.04k
    char* get_data(size_t index) const {
468
5.04k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5.04k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
1.47k
    char* get_data(size_t index) const {
468
1.47k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.47k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
4.19k
    char* get_data(size_t index) const {
468
4.19k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.19k
    }
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