Coverage Report

Created: 2026-04-06 09:26

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
681k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
332k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
33.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
7.92k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
78.5k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
68.1k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
10.4k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
11.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
14.2k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
184
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
36.0k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
41.3k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
282
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
7.02k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
196
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.52k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
11.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
15.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.15k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
788
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
704
    Status init() override { return reset(); }
97
98
147M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
146M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
34.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
12.9k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
304k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
68.7k
    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
45.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
11.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
16.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
98
191
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
113k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
83.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
336
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.89k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
98
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.13k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
34.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
24.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Line
Count
Source
98
1.36k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Line
Count
Source
98
28.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
5.63k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.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
749k
    Status add(const uint8_t* vals, size_t* count) override {
101
749k
        return add_internal<false>(vals, count);
102
749k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
34.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
34.1k
        return add_internal<false>(vals, count);
102
34.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
12.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
12.9k
        return add_internal<false>(vals, count);
102
12.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
304k
    Status add(const uint8_t* vals, size_t* count) override {
101
304k
        return add_internal<false>(vals, count);
102
304k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
68.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
68.7k
        return add_internal<false>(vals, count);
102
68.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
45.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
45.3k
        return add_internal<false>(vals, count);
102
45.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
11.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.6k
        return add_internal<false>(vals, count);
102
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
16.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
16.5k
        return add_internal<false>(vals, count);
102
16.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
191
    Status add(const uint8_t* vals, size_t* count) override {
101
191
        return add_internal<false>(vals, count);
102
191
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
113k
    Status add(const uint8_t* vals, size_t* count) override {
101
113k
        return add_internal<false>(vals, count);
102
113k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
83.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
83.5k
        return add_internal<false>(vals, count);
102
83.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
336
    Status add(const uint8_t* vals, size_t* count) override {
101
336
        return add_internal<false>(vals, count);
102
336
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
6.89k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.89k
        return add_internal<false>(vals, count);
102
6.89k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
98
    Status add(const uint8_t* vals, size_t* count) override {
101
98
        return add_internal<false>(vals, count);
102
98
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.13k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.13k
        return add_internal<false>(vals, count);
102
5.13k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
100
34.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
34.2k
        return add_internal<false>(vals, count);
102
34.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
24.4k
    Status add(const uint8_t* vals, size_t* count) override {
101
24.4k
        return add_internal<false>(vals, count);
102
24.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
100
1.36k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.36k
        return add_internal<false>(vals, count);
102
1.36k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
100
28.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
28.2k
        return add_internal<false>(vals, count);
102
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
5.63k
    Status add(const uint8_t* vals, size_t* count) override {
101
5.63k
        return add_internal<false>(vals, count);
102
5.63k
    }
103
104
148M
    Status single_add(const uint8_t* vals, size_t* count) {
105
148M
        return add_internal<true>(vals, count);
106
148M
    }
107
108
    template <bool single>
109
148M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
148M
        DCHECK(!_finished);
111
148M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
148M
        uint32_t to_add = cast_set<UInt32>(
127
148M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
148M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
148M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
148M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
148M
        _count += to_add;
135
148M
        _remain_element_capacity -= to_add;
136
148M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
148M
        *num_written = to_add;
139
148M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
146M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
146M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
146M
                        *reinterpret_cast<const uint32_t*>(vals);
150
146M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
146M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
148M
        return Status::OK();
160
148M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
749k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
749k
        DCHECK(!_finished);
111
749k
        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
749k
        uint32_t to_add = cast_set<UInt32>(
127
749k
                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
749k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
749k
        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
749k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
749k
        _count += to_add;
135
749k
        _remain_element_capacity -= to_add;
136
749k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
749k
        *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
749k
        memcpy(&_data[orig_size], vals, to_add_size);
159
749k
        return Status::OK();
160
749k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
147M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
147M
        DCHECK(!_finished);
111
147M
        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
147M
        uint32_t to_add = cast_set<UInt32>(
127
147M
                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
147M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
147M
        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
147M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
146M
        _count += to_add;
135
146M
        _remain_element_capacity -= to_add;
136
146M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
146M
        *num_written = to_add;
139
146M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
146M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
146M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
146M
                        *reinterpret_cast<const uint32_t*>(vals);
150
146M
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
146M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
146M
        return Status::OK();
160
147M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
34.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
34.1k
        DCHECK(!_finished);
111
34.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
34.1k
        uint32_t to_add = cast_set<UInt32>(
127
34.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
34.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
34.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
34.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
34.1k
        _count += to_add;
135
34.1k
        _remain_element_capacity -= to_add;
136
34.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
34.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
34.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
34.1k
        return Status::OK();
160
34.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
12.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
12.9k
        DCHECK(!_finished);
111
12.9k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
12.9k
        uint32_t to_add = cast_set<UInt32>(
127
12.9k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
12.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
12.9k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
12.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
12.9k
        _count += to_add;
135
12.9k
        _remain_element_capacity -= to_add;
136
12.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
12.9k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
12.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
12.9k
        return Status::OK();
160
12.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
304k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
304k
        DCHECK(!_finished);
111
304k
        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
304k
        uint32_t to_add = cast_set<UInt32>(
127
304k
                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
304k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
304k
        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
304k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
304k
        _count += to_add;
135
304k
        _remain_element_capacity -= to_add;
136
304k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
304k
        *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
304k
        memcpy(&_data[orig_size], vals, to_add_size);
159
304k
        return Status::OK();
160
304k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
68.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
68.7k
        DCHECK(!_finished);
111
68.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
68.7k
        uint32_t to_add = cast_set<UInt32>(
127
68.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
68.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
68.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
68.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
68.7k
        _count += to_add;
135
68.7k
        _remain_element_capacity -= to_add;
136
68.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
68.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
68.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
68.7k
        return Status::OK();
160
68.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
45.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
45.3k
        DCHECK(!_finished);
111
45.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
45.3k
        uint32_t to_add = cast_set<UInt32>(
127
45.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
45.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
45.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
45.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
45.3k
        _count += to_add;
135
45.3k
        _remain_element_capacity -= to_add;
136
45.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
45.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
45.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
45.3k
        return Status::OK();
160
45.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.6k
        DCHECK(!_finished);
111
11.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
11.6k
        uint32_t to_add = cast_set<UInt32>(
127
11.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
11.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
11.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.6k
        _count += to_add;
135
11.6k
        _remain_element_capacity -= to_add;
136
11.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
11.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.6k
        return Status::OK();
160
11.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
16.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
16.5k
        DCHECK(!_finished);
111
16.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
16.5k
        uint32_t to_add = cast_set<UInt32>(
127
16.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
16.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
16.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
16.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
16.5k
        _count += to_add;
135
16.5k
        _remain_element_capacity -= to_add;
136
16.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
16.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
16.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
16.5k
        return Status::OK();
160
16.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
191
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
191
        DCHECK(!_finished);
111
191
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
191
        uint32_t to_add = cast_set<UInt32>(
127
191
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
191
        int to_add_size = to_add * SIZE_OF_TYPE;
130
191
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
191
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
191
        _count += to_add;
135
191
        _remain_element_capacity -= to_add;
136
191
        _raw_data_size += to_add_size;
137
        // return added number through count
138
191
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
191
        memcpy(&_data[orig_size], vals, to_add_size);
159
191
        return Status::OK();
160
191
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
113k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
113k
        DCHECK(!_finished);
111
113k
        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
113k
        uint32_t to_add = cast_set<UInt32>(
127
113k
                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
113k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
113k
        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
113k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
113k
        _count += to_add;
135
113k
        _remain_element_capacity -= to_add;
136
113k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
113k
        *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
113k
        memcpy(&_data[orig_size], vals, to_add_size);
159
113k
        return Status::OK();
160
113k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
83.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
83.5k
        DCHECK(!_finished);
111
83.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
83.5k
        uint32_t to_add = cast_set<UInt32>(
127
83.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
83.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
83.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
83.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
83.5k
        _count += to_add;
135
83.5k
        _remain_element_capacity -= to_add;
136
83.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
83.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
83.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
83.5k
        return Status::OK();
160
83.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
336
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
336
        DCHECK(!_finished);
111
336
        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
336
        uint32_t to_add = cast_set<UInt32>(
127
336
                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
336
        int to_add_size = to_add * SIZE_OF_TYPE;
130
336
        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
336
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
336
        _count += to_add;
135
336
        _remain_element_capacity -= to_add;
136
336
        _raw_data_size += to_add_size;
137
        // return added number through count
138
336
        *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
336
        memcpy(&_data[orig_size], vals, to_add_size);
159
336
        return Status::OK();
160
336
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
6.89k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.89k
        DCHECK(!_finished);
111
6.89k
        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.89k
        uint32_t to_add = cast_set<UInt32>(
127
6.89k
                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.89k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.89k
        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.89k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.89k
        _count += to_add;
135
6.89k
        _remain_element_capacity -= to_add;
136
6.89k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.89k
        *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.89k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.89k
        return Status::OK();
160
6.89k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
98
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
98
        DCHECK(!_finished);
111
98
        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
98
        uint32_t to_add = cast_set<UInt32>(
127
98
                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
98
        int to_add_size = to_add * SIZE_OF_TYPE;
130
98
        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
98
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
98
        _count += to_add;
135
98
        _remain_element_capacity -= to_add;
136
98
        _raw_data_size += to_add_size;
137
        // return added number through count
138
98
        *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
98
        memcpy(&_data[orig_size], vals, to_add_size);
159
98
        return Status::OK();
160
98
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.13k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.13k
        DCHECK(!_finished);
111
5.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
5.13k
        uint32_t to_add = cast_set<UInt32>(
127
5.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
5.13k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.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
5.13k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.13k
        _count += to_add;
135
5.13k
        _remain_element_capacity -= to_add;
136
5.13k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.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
5.13k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.13k
        return Status::OK();
160
5.13k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
34.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
34.2k
        DCHECK(!_finished);
111
34.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
34.2k
        uint32_t to_add = cast_set<UInt32>(
127
34.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
34.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
34.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
34.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
34.2k
        _count += to_add;
135
34.2k
        _remain_element_capacity -= to_add;
136
34.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
34.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
34.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
34.2k
        return Status::OK();
160
34.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
24.4k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
24.4k
        DCHECK(!_finished);
111
24.4k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
24.4k
        uint32_t to_add = cast_set<UInt32>(
127
24.4k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
24.4k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
24.4k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
24.4k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
24.4k
        _count += to_add;
135
24.4k
        _remain_element_capacity -= to_add;
136
24.4k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
24.4k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
24.4k
        memcpy(&_data[orig_size], vals, to_add_size);
159
24.4k
        return Status::OK();
160
24.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.36k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.36k
        DCHECK(!_finished);
111
1.36k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
1.36k
        uint32_t to_add = cast_set<UInt32>(
127
1.36k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
1.36k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.36k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
1.36k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.36k
        _count += to_add;
135
1.36k
        _remain_element_capacity -= to_add;
136
1.36k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.36k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
1.36k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.36k
        return Status::OK();
160
1.36k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
28.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
28.2k
        DCHECK(!_finished);
111
28.2k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
28.2k
        uint32_t to_add = cast_set<UInt32>(
127
28.2k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
28.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
28.2k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
28.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
28.2k
        _count += to_add;
135
28.2k
        _remain_element_capacity -= to_add;
136
28.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
28.2k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
28.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
28.2k
        return Status::OK();
160
28.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.63k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
5.63k
        DCHECK(!_finished);
111
5.63k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
5.63k
        uint32_t to_add = cast_set<UInt32>(
127
5.63k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
5.63k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
5.63k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
5.63k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
5.63k
        _count += to_add;
135
5.63k
        _remain_element_capacity -= to_add;
136
5.63k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
5.63k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
5.63k
        memcpy(&_data[orig_size], vals, to_add_size);
159
5.63k
        return Status::OK();
160
5.63k
    }
161
162
676k
    Status finish(OwnedSlice* slice) override {
163
676k
        if (_count > 0) {
164
635k
            _first_value = cell(0);
165
635k
            _last_value = cell(_count - 1);
166
635k
        }
167
676k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
676k
        return Status::OK();
169
676k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
318k
    Status finish(OwnedSlice* slice) override {
163
318k
        if (_count > 0) {
164
289k
            _first_value = cell(0);
165
289k
            _last_value = cell(_count - 1);
166
289k
        }
167
318k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
318k
        return Status::OK();
169
318k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
32.8k
    Status finish(OwnedSlice* slice) override {
163
32.8k
        if (_count > 0) {
164
32.4k
            _first_value = cell(0);
165
32.4k
            _last_value = cell(_count - 1);
166
32.4k
        }
167
32.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
32.8k
        return Status::OK();
169
32.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.60k
    Status finish(OwnedSlice* slice) override {
163
7.60k
        if (_count > 0) {
164
7.47k
            _first_value = cell(0);
165
7.47k
            _last_value = cell(_count - 1);
166
7.47k
        }
167
7.60k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.60k
        return Status::OK();
169
7.60k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
82.6k
    Status finish(OwnedSlice* slice) override {
163
82.6k
        if (_count > 0) {
164
81.7k
            _first_value = cell(0);
165
81.7k
            _last_value = cell(_count - 1);
166
81.7k
        }
167
82.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
82.6k
        return Status::OK();
169
82.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
68.0k
    Status finish(OwnedSlice* slice) override {
163
68.0k
        if (_count > 0) {
164
68.0k
            _first_value = cell(0);
165
68.0k
            _last_value = cell(_count - 1);
166
68.0k
        }
167
68.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
68.0k
        return Status::OK();
169
68.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.4k
    Status finish(OwnedSlice* slice) override {
163
10.4k
        if (_count > 0) {
164
10.1k
            _first_value = cell(0);
165
10.1k
            _last_value = cell(_count - 1);
166
10.1k
        }
167
10.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.4k
        return Status::OK();
169
10.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11.0k
    Status finish(OwnedSlice* slice) override {
163
11.0k
        if (_count > 0) {
164
10.6k
            _first_value = cell(0);
165
10.6k
            _last_value = cell(_count - 1);
166
10.6k
        }
167
11.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11.0k
        return Status::OK();
169
11.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
14.2k
    Status finish(OwnedSlice* slice) override {
163
14.2k
        if (_count > 0) {
164
13.9k
            _first_value = cell(0);
165
13.9k
            _last_value = cell(_count - 1);
166
13.9k
        }
167
14.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
14.2k
        return Status::OK();
169
14.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
196
    Status finish(OwnedSlice* slice) override {
163
196
        if (_count > 0) {
164
191
            _first_value = cell(0);
165
191
            _last_value = cell(_count - 1);
166
191
        }
167
196
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
196
        return Status::OK();
169
196
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
36.6k
    Status finish(OwnedSlice* slice) override {
163
36.6k
        if (_count > 0) {
164
35.6k
            _first_value = cell(0);
165
35.6k
            _last_value = cell(_count - 1);
166
35.6k
        }
167
36.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
36.6k
        return Status::OK();
169
36.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
40.3k
    Status finish(OwnedSlice* slice) override {
163
40.3k
        if (_count > 0) {
164
38.9k
            _first_value = cell(0);
165
38.9k
            _last_value = cell(_count - 1);
166
38.9k
        }
167
40.3k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
40.3k
        return Status::OK();
169
40.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
436
    Status finish(OwnedSlice* slice) override {
163
436
        if (_count > 0) {
164
336
            _first_value = cell(0);
165
336
            _last_value = cell(_count - 1);
166
336
        }
167
436
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
436
        return Status::OK();
169
436
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.08k
    Status finish(OwnedSlice* slice) override {
163
7.08k
        if (_count > 0) {
164
6.89k
            _first_value = cell(0);
165
6.89k
            _last_value = cell(_count - 1);
166
6.89k
        }
167
7.08k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.09k
        return Status::OK();
169
7.08k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
106
    Status finish(OwnedSlice* slice) override {
163
106
        if (_count > 0) {
164
98
            _first_value = cell(0);
165
98
            _last_value = cell(_count - 1);
166
98
        }
167
106
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
106
        return Status::OK();
169
106
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.51k
    Status finish(OwnedSlice* slice) override {
163
9.51k
        if (_count > 0) {
164
4.64k
            _first_value = cell(0);
165
4.64k
            _last_value = cell(_count - 1);
166
4.64k
        }
167
9.51k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.51k
        return Status::OK();
169
9.51k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
18.2k
    Status finish(OwnedSlice* slice) override {
163
18.2k
        if (_count > 0) {
164
17.3k
            _first_value = cell(0);
165
17.3k
            _last_value = cell(_count - 1);
166
17.3k
        }
167
18.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
18.2k
        return Status::OK();
169
18.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
16.0k
    Status finish(OwnedSlice* slice) override {
163
16.0k
        if (_count > 0) {
164
15.5k
            _first_value = cell(0);
165
15.5k
            _last_value = cell(_count - 1);
166
15.5k
        }
167
16.0k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
16.0k
        return Status::OK();
169
16.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.05k
    Status finish(OwnedSlice* slice) override {
163
1.05k
        if (_count > 0) {
164
1.00k
            _first_value = cell(0);
165
1.00k
            _last_value = cell(_count - 1);
166
1.00k
        }
167
1.05k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.05k
        return Status::OK();
169
1.05k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
700
    Status finish(OwnedSlice* slice) override {
163
700
        if (_count > 0) {
164
650
            _first_value = cell(0);
165
650
            _last_value = cell(_count - 1);
166
650
        }
167
700
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
700
        return Status::OK();
169
700
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
622
    Status finish(OwnedSlice* slice) override {
163
622
        if (_count > 0) {
164
587
            _first_value = cell(0);
165
587
            _last_value = cell(_count - 1);
166
587
        }
167
622
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
622
        return Status::OK();
169
622
    }
170
171
1.62M
    Status reset() override {
172
1.62M
        RETURN_IF_CATCH_EXCEPTION({
173
1.62M
            size_t block_size = _options.data_page_size;
174
1.62M
            _count = 0;
175
1.62M
            _raw_data_size = 0;
176
1.62M
            _data.clear();
177
1.62M
            _data.reserve(block_size);
178
1.62M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.62M
                    << "buffer must be naturally-aligned";
180
1.62M
            _buffer.clear();
181
1.62M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.62M
            _finished = false;
183
1.62M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.62M
        });
185
1.62M
        return Status::OK();
186
1.62M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
918k
    Status reset() override {
172
918k
        RETURN_IF_CATCH_EXCEPTION({
173
918k
            size_t block_size = _options.data_page_size;
174
918k
            _count = 0;
175
918k
            _raw_data_size = 0;
176
918k
            _data.clear();
177
918k
            _data.reserve(block_size);
178
918k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
918k
                    << "buffer must be naturally-aligned";
180
918k
            _buffer.clear();
181
918k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
918k
            _finished = false;
183
918k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
918k
        });
185
919k
        return Status::OK();
186
918k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
66.0k
    Status reset() override {
172
66.0k
        RETURN_IF_CATCH_EXCEPTION({
173
66.0k
            size_t block_size = _options.data_page_size;
174
66.0k
            _count = 0;
175
66.0k
            _raw_data_size = 0;
176
66.0k
            _data.clear();
177
66.0k
            _data.reserve(block_size);
178
66.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
66.0k
                    << "buffer must be naturally-aligned";
180
66.0k
            _buffer.clear();
181
66.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
66.0k
            _finished = false;
183
66.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
66.0k
        });
185
66.0k
        return Status::OK();
186
66.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
15.5k
    Status reset() override {
172
15.5k
        RETURN_IF_CATCH_EXCEPTION({
173
15.5k
            size_t block_size = _options.data_page_size;
174
15.5k
            _count = 0;
175
15.5k
            _raw_data_size = 0;
176
15.5k
            _data.clear();
177
15.5k
            _data.reserve(block_size);
178
15.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
15.5k
                    << "buffer must be naturally-aligned";
180
15.5k
            _buffer.clear();
181
15.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
15.5k
            _finished = false;
183
15.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
15.5k
        });
185
15.5k
        return Status::OK();
186
15.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
161k
    Status reset() override {
172
161k
        RETURN_IF_CATCH_EXCEPTION({
173
161k
            size_t block_size = _options.data_page_size;
174
161k
            _count = 0;
175
161k
            _raw_data_size = 0;
176
161k
            _data.clear();
177
161k
            _data.reserve(block_size);
178
161k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
161k
                    << "buffer must be naturally-aligned";
180
161k
            _buffer.clear();
181
161k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
161k
            _finished = false;
183
161k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
161k
        });
185
161k
        return Status::OK();
186
161k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
136k
    Status reset() override {
172
136k
        RETURN_IF_CATCH_EXCEPTION({
173
136k
            size_t block_size = _options.data_page_size;
174
136k
            _count = 0;
175
136k
            _raw_data_size = 0;
176
136k
            _data.clear();
177
136k
            _data.reserve(block_size);
178
136k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
136k
                    << "buffer must be naturally-aligned";
180
136k
            _buffer.clear();
181
136k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
136k
            _finished = false;
183
136k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
136k
        });
185
136k
        return Status::OK();
186
136k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
20.9k
    Status reset() override {
172
20.9k
        RETURN_IF_CATCH_EXCEPTION({
173
20.9k
            size_t block_size = _options.data_page_size;
174
20.9k
            _count = 0;
175
20.9k
            _raw_data_size = 0;
176
20.9k
            _data.clear();
177
20.9k
            _data.reserve(block_size);
178
20.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
20.9k
                    << "buffer must be naturally-aligned";
180
20.9k
            _buffer.clear();
181
20.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
20.9k
            _finished = false;
183
20.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
20.9k
        });
185
20.9k
        return Status::OK();
186
20.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
22.8k
    Status reset() override {
172
22.8k
        RETURN_IF_CATCH_EXCEPTION({
173
22.8k
            size_t block_size = _options.data_page_size;
174
22.8k
            _count = 0;
175
22.8k
            _raw_data_size = 0;
176
22.8k
            _data.clear();
177
22.8k
            _data.reserve(block_size);
178
22.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.8k
                    << "buffer must be naturally-aligned";
180
22.8k
            _buffer.clear();
181
22.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.8k
            _finished = false;
183
22.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.8k
        });
185
22.8k
        return Status::OK();
186
22.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
28.5k
    Status reset() override {
172
28.5k
        RETURN_IF_CATCH_EXCEPTION({
173
28.5k
            size_t block_size = _options.data_page_size;
174
28.5k
            _count = 0;
175
28.5k
            _raw_data_size = 0;
176
28.5k
            _data.clear();
177
28.5k
            _data.reserve(block_size);
178
28.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
28.5k
                    << "buffer must be naturally-aligned";
180
28.5k
            _buffer.clear();
181
28.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
28.5k
            _finished = false;
183
28.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
28.5k
        });
185
28.5k
        return Status::OK();
186
28.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
380
    Status reset() override {
172
380
        RETURN_IF_CATCH_EXCEPTION({
173
380
            size_t block_size = _options.data_page_size;
174
380
            _count = 0;
175
380
            _raw_data_size = 0;
176
380
            _data.clear();
177
380
            _data.reserve(block_size);
178
380
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
380
                    << "buffer must be naturally-aligned";
180
380
            _buffer.clear();
181
380
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
380
            _finished = false;
183
380
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
380
        });
185
380
        return Status::OK();
186
380
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
72.6k
    Status reset() override {
172
72.6k
        RETURN_IF_CATCH_EXCEPTION({
173
72.6k
            size_t block_size = _options.data_page_size;
174
72.6k
            _count = 0;
175
72.6k
            _raw_data_size = 0;
176
72.6k
            _data.clear();
177
72.6k
            _data.reserve(block_size);
178
72.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
72.6k
                    << "buffer must be naturally-aligned";
180
72.6k
            _buffer.clear();
181
72.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
72.6k
            _finished = false;
183
72.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
72.6k
        });
185
72.7k
        return Status::OK();
186
72.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
81.7k
    Status reset() override {
172
81.7k
        RETURN_IF_CATCH_EXCEPTION({
173
81.7k
            size_t block_size = _options.data_page_size;
174
81.7k
            _count = 0;
175
81.7k
            _raw_data_size = 0;
176
81.7k
            _data.clear();
177
81.7k
            _data.reserve(block_size);
178
81.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
81.7k
                    << "buffer must be naturally-aligned";
180
81.7k
            _buffer.clear();
181
81.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
81.7k
            _finished = false;
183
81.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
81.7k
        });
185
81.7k
        return Status::OK();
186
81.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
718
    Status reset() override {
172
718
        RETURN_IF_CATCH_EXCEPTION({
173
718
            size_t block_size = _options.data_page_size;
174
718
            _count = 0;
175
718
            _raw_data_size = 0;
176
718
            _data.clear();
177
718
            _data.reserve(block_size);
178
718
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
718
                    << "buffer must be naturally-aligned";
180
718
            _buffer.clear();
181
718
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
718
            _finished = false;
183
718
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
718
        });
185
718
        return Status::OK();
186
718
    }
_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.1k
        return Status::OK();
186
14.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
302
    Status reset() override {
172
302
        RETURN_IF_CATCH_EXCEPTION({
173
302
            size_t block_size = _options.data_page_size;
174
302
            _count = 0;
175
302
            _raw_data_size = 0;
176
302
            _data.clear();
177
302
            _data.reserve(block_size);
178
302
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
302
                    << "buffer must be naturally-aligned";
180
302
            _buffer.clear();
181
302
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
302
            _finished = false;
183
302
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
302
        });
185
302
        return Status::OK();
186
302
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.0k
    Status reset() override {
172
19.0k
        RETURN_IF_CATCH_EXCEPTION({
173
19.0k
            size_t block_size = _options.data_page_size;
174
19.0k
            _count = 0;
175
19.0k
            _raw_data_size = 0;
176
19.0k
            _data.clear();
177
19.0k
            _data.reserve(block_size);
178
19.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.0k
                    << "buffer must be naturally-aligned";
180
19.0k
            _buffer.clear();
181
19.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.0k
            _finished = false;
183
19.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.0k
        });
185
19.0k
        return Status::OK();
186
19.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
30.1k
    Status reset() override {
172
30.1k
        RETURN_IF_CATCH_EXCEPTION({
173
30.1k
            size_t block_size = _options.data_page_size;
174
30.1k
            _count = 0;
175
30.1k
            _raw_data_size = 0;
176
30.1k
            _data.clear();
177
30.1k
            _data.reserve(block_size);
178
30.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
30.1k
                    << "buffer must be naturally-aligned";
180
30.1k
            _buffer.clear();
181
30.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
30.1k
            _finished = false;
183
30.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
30.1k
        });
185
30.1k
        return Status::OK();
186
30.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
31.9k
    Status reset() override {
172
31.9k
        RETURN_IF_CATCH_EXCEPTION({
173
31.9k
            size_t block_size = _options.data_page_size;
174
31.9k
            _count = 0;
175
31.9k
            _raw_data_size = 0;
176
31.9k
            _data.clear();
177
31.9k
            _data.reserve(block_size);
178
31.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.9k
                    << "buffer must be naturally-aligned";
180
31.9k
            _buffer.clear();
181
31.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.9k
            _finished = false;
183
31.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.9k
        });
185
31.9k
        return Status::OK();
186
31.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.20k
    Status reset() override {
172
2.20k
        RETURN_IF_CATCH_EXCEPTION({
173
2.20k
            size_t block_size = _options.data_page_size;
174
2.20k
            _count = 0;
175
2.20k
            _raw_data_size = 0;
176
2.20k
            _data.clear();
177
2.20k
            _data.reserve(block_size);
178
2.20k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.20k
                    << "buffer must be naturally-aligned";
180
2.20k
            _buffer.clear();
181
2.20k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.20k
            _finished = false;
183
2.20k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.20k
        });
185
2.20k
        return Status::OK();
186
2.20k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.48k
    Status reset() override {
172
1.48k
        RETURN_IF_CATCH_EXCEPTION({
173
1.48k
            size_t block_size = _options.data_page_size;
174
1.48k
            _count = 0;
175
1.48k
            _raw_data_size = 0;
176
1.48k
            _data.clear();
177
1.48k
            _data.reserve(block_size);
178
1.48k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.48k
                    << "buffer must be naturally-aligned";
180
1.48k
            _buffer.clear();
181
1.48k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.48k
            _finished = false;
183
1.48k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.48k
        });
185
1.49k
        return Status::OK();
186
1.48k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.32k
    Status reset() override {
172
1.32k
        RETURN_IF_CATCH_EXCEPTION({
173
1.32k
            size_t block_size = _options.data_page_size;
174
1.32k
            _count = 0;
175
1.32k
            _raw_data_size = 0;
176
1.32k
            _data.clear();
177
1.32k
            _data.reserve(block_size);
178
1.32k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.32k
                    << "buffer must be naturally-aligned";
180
1.32k
            _buffer.clear();
181
1.32k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.32k
            _finished = false;
183
1.32k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.32k
        });
185
1.32k
        return Status::OK();
186
1.32k
    }
187
188
1.48M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
1.48M
    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
34.5k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
18.1k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
3.12k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
1.01k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
3.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
810
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
1.55k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
763
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
775
    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.58k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.17k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv
Line
Count
Source
190
6
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv
Line
Count
Source
190
129
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Line
Count
Source
190
291
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Line
Count
Source
190
1.11k
    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
421k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
63.7k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
32.8k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
7.60k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
82.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
68.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
192
10.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
11.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
14.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Line
Count
Source
192
196
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
36.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
40.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
436
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.08k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
106
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.51k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
18.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
16.0k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.05k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
700
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
622
    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
681k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
332k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
33.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.92k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
78.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
68.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
10.4k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
14.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
184
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
36.0k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
41.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
282
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.04k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
196
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.52k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
15.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.15k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
790
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
704
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
676k
    OwnedSlice _finish(int final_size_of_type) {
216
676k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
676k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
676k
        int padding_elems = num_elems_after_padding - _count;
221
676k
        int padding_bytes = padding_elems * final_size_of_type;
222
19.5M
        for (int i = 0; i < padding_bytes; i++) {
223
18.8M
            _data.push_back(0);
224
18.8M
        }
225
226
        // reserve enough place for compression
227
676k
        _buffer.resize(
228
676k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
676k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
676k
        int64_t bytes =
232
676k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
676k
                                         num_elems_after_padding, final_size_of_type, 0);
234
676k
        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
676k
        encode_fixed32_le(&_buffer[0], _count);
244
676k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
676k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
676k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
676k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
676k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
676k
        return _buffer.build();
251
676k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
318k
    OwnedSlice _finish(int final_size_of_type) {
216
318k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
318k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
318k
        int padding_elems = num_elems_after_padding - _count;
221
318k
        int padding_bytes = padding_elems * final_size_of_type;
222
6.01M
        for (int i = 0; i < padding_bytes; i++) {
223
5.69M
            _data.push_back(0);
224
5.69M
        }
225
226
        // reserve enough place for compression
227
318k
        _buffer.resize(
228
318k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
318k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
318k
        int64_t bytes =
232
318k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
318k
                                         num_elems_after_padding, final_size_of_type, 0);
234
318k
        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
318k
        encode_fixed32_le(&_buffer[0], _count);
244
318k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
318k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
318k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
318k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
318k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
318k
        return _buffer.build();
251
318k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
32.7k
    OwnedSlice _finish(int final_size_of_type) {
216
32.7k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
32.7k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
32.7k
        int padding_elems = num_elems_after_padding - _count;
221
32.7k
        int padding_bytes = padding_elems * final_size_of_type;
222
206k
        for (int i = 0; i < padding_bytes; i++) {
223
173k
            _data.push_back(0);
224
173k
        }
225
226
        // reserve enough place for compression
227
32.7k
        _buffer.resize(
228
32.7k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
32.7k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
32.7k
        int64_t bytes =
232
32.7k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
32.7k
                                         num_elems_after_padding, final_size_of_type, 0);
234
32.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
32.7k
        encode_fixed32_le(&_buffer[0], _count);
244
32.7k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
32.7k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
32.7k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
32.7k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
32.7k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
32.7k
        return _buffer.build();
251
32.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
7.60k
    OwnedSlice _finish(int final_size_of_type) {
216
7.60k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.60k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.60k
        int padding_elems = num_elems_after_padding - _count;
221
7.60k
        int padding_bytes = padding_elems * final_size_of_type;
222
80.6k
        for (int i = 0; i < padding_bytes; i++) {
223
73.0k
            _data.push_back(0);
224
73.0k
        }
225
226
        // reserve enough place for compression
227
7.60k
        _buffer.resize(
228
7.60k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.60k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.60k
        int64_t bytes =
232
7.60k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.60k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.60k
        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.60k
        encode_fixed32_le(&_buffer[0], _count);
244
7.60k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.60k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.60k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.60k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.60k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.60k
        return _buffer.build();
251
7.60k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
82.6k
    OwnedSlice _finish(int final_size_of_type) {
216
82.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
82.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
82.6k
        int padding_elems = num_elems_after_padding - _count;
221
82.6k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.72M
        for (int i = 0; i < padding_bytes; i++) {
223
3.63M
            _data.push_back(0);
224
3.63M
        }
225
226
        // reserve enough place for compression
227
82.6k
        _buffer.resize(
228
82.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
82.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
82.6k
        int64_t bytes =
232
82.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
82.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
82.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
82.6k
        encode_fixed32_le(&_buffer[0], _count);
244
82.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
82.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
82.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
82.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
82.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
82.6k
        return _buffer.build();
251
82.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
68.0k
    OwnedSlice _finish(int final_size_of_type) {
216
68.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
68.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
68.0k
        int padding_elems = num_elems_after_padding - _count;
221
68.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
3.21M
        for (int i = 0; i < padding_bytes; i++) {
223
3.14M
            _data.push_back(0);
224
3.14M
        }
225
226
        // reserve enough place for compression
227
68.0k
        _buffer.resize(
228
68.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
68.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
68.0k
        int64_t bytes =
232
68.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
68.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
68.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
68.0k
        encode_fixed32_le(&_buffer[0], _count);
244
68.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
68.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
68.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
68.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
68.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
68.0k
        return _buffer.build();
251
68.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
10.4k
    OwnedSlice _finish(int final_size_of_type) {
216
10.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.4k
        int padding_elems = num_elems_after_padding - _count;
221
10.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
707k
        for (int i = 0; i < padding_bytes; i++) {
223
696k
            _data.push_back(0);
224
696k
        }
225
226
        // reserve enough place for compression
227
10.4k
        _buffer.resize(
228
10.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.4k
        int64_t bytes =
232
10.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.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
10.4k
        encode_fixed32_le(&_buffer[0], _count);
244
10.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.4k
        return _buffer.build();
251
10.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
11.0k
    OwnedSlice _finish(int final_size_of_type) {
216
11.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11.0k
        int padding_elems = num_elems_after_padding - _count;
221
11.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
239k
        for (int i = 0; i < padding_bytes; i++) {
223
228k
            _data.push_back(0);
224
228k
        }
225
226
        // reserve enough place for compression
227
11.0k
        _buffer.resize(
228
11.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11.0k
        int64_t bytes =
232
11.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
11.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11.0k
        encode_fixed32_le(&_buffer[0], _count);
244
11.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11.0k
        return _buffer.build();
251
11.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
14.2k
    OwnedSlice _finish(int final_size_of_type) {
216
14.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
14.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
14.2k
        int padding_elems = num_elems_after_padding - _count;
221
14.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
590k
        for (int i = 0; i < padding_bytes; i++) {
223
576k
            _data.push_back(0);
224
576k
        }
225
226
        // reserve enough place for compression
227
14.2k
        _buffer.resize(
228
14.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
14.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
14.2k
        int64_t bytes =
232
14.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
14.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
14.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
14.2k
        encode_fixed32_le(&_buffer[0], _count);
244
14.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
14.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
14.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
14.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
14.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
14.2k
        return _buffer.build();
251
14.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
196
    OwnedSlice _finish(int final_size_of_type) {
216
196
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
196
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
196
        int padding_elems = num_elems_after_padding - _count;
221
196
        int padding_bytes = padding_elems * final_size_of_type;
222
2.68k
        for (int i = 0; i < padding_bytes; i++) {
223
2.49k
            _data.push_back(0);
224
2.49k
        }
225
226
        // reserve enough place for compression
227
196
        _buffer.resize(
228
196
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
196
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
196
        int64_t bytes =
232
196
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
196
                                         num_elems_after_padding, final_size_of_type, 0);
234
196
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
196
        encode_fixed32_le(&_buffer[0], _count);
244
196
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
196
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
196
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
196
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
196
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
196
        return _buffer.build();
251
196
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
36.6k
    OwnedSlice _finish(int final_size_of_type) {
216
36.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
36.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
36.6k
        int padding_elems = num_elems_after_padding - _count;
221
36.6k
        int padding_bytes = padding_elems * final_size_of_type;
222
786k
        for (int i = 0; i < padding_bytes; i++) {
223
749k
            _data.push_back(0);
224
749k
        }
225
226
        // reserve enough place for compression
227
36.6k
        _buffer.resize(
228
36.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
36.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
36.6k
        int64_t bytes =
232
36.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
36.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
36.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
36.6k
        encode_fixed32_le(&_buffer[0], _count);
244
36.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
36.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
36.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
36.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
36.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
36.6k
        return _buffer.build();
251
36.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
40.3k
    OwnedSlice _finish(int final_size_of_type) {
216
40.3k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
40.3k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
40.3k
        int padding_elems = num_elems_after_padding - _count;
221
40.3k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.69M
        for (int i = 0; i < padding_bytes; i++) {
223
1.65M
            _data.push_back(0);
224
1.65M
        }
225
226
        // reserve enough place for compression
227
40.3k
        _buffer.resize(
228
40.3k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
40.3k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
40.3k
        int64_t bytes =
232
40.3k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
40.3k
                                         num_elems_after_padding, final_size_of_type, 0);
234
40.3k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
40.3k
        encode_fixed32_le(&_buffer[0], _count);
244
40.3k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
40.3k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
40.3k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
40.3k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
40.3k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
40.3k
        return _buffer.build();
251
40.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
436
    OwnedSlice _finish(int final_size_of_type) {
216
436
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
436
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
436
        int padding_elems = num_elems_after_padding - _count;
221
436
        int padding_bytes = padding_elems * final_size_of_type;
222
6.94k
        for (int i = 0; i < padding_bytes; i++) {
223
6.51k
            _data.push_back(0);
224
6.51k
        }
225
226
        // reserve enough place for compression
227
436
        _buffer.resize(
228
436
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
436
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
436
        int64_t bytes =
232
436
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
436
                                         num_elems_after_padding, final_size_of_type, 0);
234
436
        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
436
        encode_fixed32_le(&_buffer[0], _count);
244
436
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
436
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
436
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
436
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
436
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
436
        return _buffer.build();
251
436
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.08k
    OwnedSlice _finish(int final_size_of_type) {
216
7.08k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.08k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.08k
        int padding_elems = num_elems_after_padding - _count;
221
7.08k
        int padding_bytes = padding_elems * final_size_of_type;
222
371k
        for (int i = 0; i < padding_bytes; i++) {
223
364k
            _data.push_back(0);
224
364k
        }
225
226
        // reserve enough place for compression
227
7.08k
        _buffer.resize(
228
7.08k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.08k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.08k
        int64_t bytes =
232
7.08k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.08k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.08k
        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.08k
        encode_fixed32_le(&_buffer[0], _count);
244
7.08k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.08k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.08k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.08k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.08k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.08k
        return _buffer.build();
251
7.08k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
106
    OwnedSlice _finish(int final_size_of_type) {
216
106
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
106
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
106
        int padding_elems = num_elems_after_padding - _count;
221
106
        int padding_bytes = padding_elems * final_size_of_type;
222
6.57k
        for (int i = 0; i < padding_bytes; i++) {
223
6.46k
            _data.push_back(0);
224
6.46k
        }
225
226
        // reserve enough place for compression
227
106
        _buffer.resize(
228
106
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
106
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
106
        int64_t bytes =
232
106
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
106
                                         num_elems_after_padding, final_size_of_type, 0);
234
106
        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
106
        encode_fixed32_le(&_buffer[0], _count);
244
106
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
106
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
106
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
106
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
106
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
106
        return _buffer.build();
251
106
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.51k
    OwnedSlice _finish(int final_size_of_type) {
216
9.51k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.51k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.51k
        int padding_elems = num_elems_after_padding - _count;
221
9.51k
        int padding_bytes = padding_elems * final_size_of_type;
222
114k
        for (int i = 0; i < padding_bytes; i++) {
223
105k
            _data.push_back(0);
224
105k
        }
225
226
        // reserve enough place for compression
227
9.51k
        _buffer.resize(
228
9.51k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.51k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.51k
        int64_t bytes =
232
9.51k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.51k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.51k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
9.51k
        encode_fixed32_le(&_buffer[0], _count);
244
9.51k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.51k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.51k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.51k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.51k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.51k
        return _buffer.build();
251
9.51k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
18.2k
    OwnedSlice _finish(int final_size_of_type) {
216
18.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
18.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
18.2k
        int padding_elems = num_elems_after_padding - _count;
221
18.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
478k
        for (int i = 0; i < padding_bytes; i++) {
223
460k
            _data.push_back(0);
224
460k
        }
225
226
        // reserve enough place for compression
227
18.2k
        _buffer.resize(
228
18.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
18.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
18.2k
        int64_t bytes =
232
18.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
18.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
18.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
18.2k
        encode_fixed32_le(&_buffer[0], _count);
244
18.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
18.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
18.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
18.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
18.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
18.2k
        return _buffer.build();
251
18.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
16.0k
    OwnedSlice _finish(int final_size_of_type) {
216
16.0k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
16.0k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
16.0k
        int padding_elems = num_elems_after_padding - _count;
221
16.0k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.09M
        for (int i = 0; i < padding_bytes; i++) {
223
1.08M
            _data.push_back(0);
224
1.08M
        }
225
226
        // reserve enough place for compression
227
16.0k
        _buffer.resize(
228
16.0k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
16.0k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
16.0k
        int64_t bytes =
232
16.0k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
16.0k
                                         num_elems_after_padding, final_size_of_type, 0);
234
16.0k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
16.0k
        encode_fixed32_le(&_buffer[0], _count);
244
16.0k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
16.0k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
16.0k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
16.0k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
16.0k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
16.0k
        return _buffer.build();
251
16.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.05k
    OwnedSlice _finish(int final_size_of_type) {
216
1.05k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.05k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.05k
        int padding_elems = num_elems_after_padding - _count;
221
1.05k
        int padding_bytes = padding_elems * final_size_of_type;
222
160k
        for (int i = 0; i < padding_bytes; i++) {
223
159k
            _data.push_back(0);
224
159k
        }
225
226
        // reserve enough place for compression
227
1.05k
        _buffer.resize(
228
1.05k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.05k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.05k
        int64_t bytes =
232
1.05k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.05k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.05k
        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.05k
        encode_fixed32_le(&_buffer[0], _count);
244
1.05k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.05k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.05k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.05k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.05k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.05k
        return _buffer.build();
251
1.05k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
700
    OwnedSlice _finish(int final_size_of_type) {
216
700
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
700
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
700
        int padding_elems = num_elems_after_padding - _count;
221
700
        int padding_bytes = padding_elems * final_size_of_type;
222
14.6k
        for (int i = 0; i < padding_bytes; i++) {
223
13.9k
            _data.push_back(0);
224
13.9k
        }
225
226
        // reserve enough place for compression
227
700
        _buffer.resize(
228
700
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
700
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
700
        int64_t bytes =
232
700
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
700
                                         num_elems_after_padding, final_size_of_type, 0);
234
700
        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
700
        encode_fixed32_le(&_buffer[0], _count);
244
700
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
700
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
700
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
700
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
700
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
700
        return _buffer.build();
251
700
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
622
    OwnedSlice _finish(int final_size_of_type) {
216
622
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
622
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
622
        int padding_elems = num_elems_after_padding - _count;
221
622
        int padding_bytes = padding_elems * final_size_of_type;
222
49.9k
        for (int i = 0; i < padding_bytes; i++) {
223
49.2k
            _data.push_back(0);
224
49.2k
        }
225
226
        // reserve enough place for compression
227
622
        _buffer.resize(
228
622
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
622
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
622
        int64_t bytes =
232
622
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
622
                                         num_elems_after_padding, final_size_of_type, 0);
234
622
        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
622
        encode_fixed32_le(&_buffer[0], _count);
244
622
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
622
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
622
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
622
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
622
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
622
        return _buffer.build();
251
622
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.27M
    CppType cell(int idx) const {
256
1.27M
        DCHECK_GE(idx, 0);
257
1.27M
        CppType ret;
258
1.27M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.27M
        return ret;
260
1.27M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
578k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
578k
        CppType ret;
258
578k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
578k
        return ret;
260
578k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
64.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
64.8k
        CppType ret;
258
64.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
64.8k
        return ret;
260
64.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
14.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
14.9k
        CppType ret;
258
14.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
14.9k
        return ret;
260
14.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
163k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
163k
        CppType ret;
258
163k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
163k
        return ret;
260
163k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
136k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
136k
        CppType ret;
258
136k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
136k
        return ret;
260
136k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
20.2k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
20.2k
        CppType ret;
258
20.2k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
20.2k
        return ret;
260
20.2k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
21.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.3k
        CppType ret;
258
21.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.3k
        return ret;
260
21.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
27.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
27.8k
        CppType ret;
258
27.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
27.8k
        return ret;
260
27.8k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
382
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
382
        CppType ret;
258
382
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
382
        return ret;
260
382
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
71.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
71.3k
        CppType ret;
258
71.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
71.3k
        return ret;
260
71.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
77.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
77.9k
        CppType ret;
258
77.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
77.9k
        return ret;
260
77.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
672
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
672
        CppType ret;
258
672
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
672
        return ret;
260
672
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
13.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.7k
        CppType ret;
258
13.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.7k
        return ret;
260
13.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
196
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
196
        CppType ret;
258
196
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
196
        return ret;
260
196
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.27k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.27k
        CppType ret;
258
9.27k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.27k
        return ret;
260
9.27k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
34.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
34.7k
        CppType ret;
258
34.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
34.7k
        return ret;
260
34.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.1k
        CppType ret;
258
31.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.1k
        return ret;
260
31.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.00k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.00k
        CppType ret;
258
2.00k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.00k
        return ret;
260
2.00k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.30k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.30k
        CppType ret;
258
1.30k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.30k
        return ret;
260
1.30k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.17k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.17k
        CppType ret;
258
1.17k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.17k
        return ret;
260
1.17k
    }
261
262
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
263
    PageBuilderOptions _options;
264
    uint32_t _count;
265
    uint32_t _remain_element_capacity;
266
    bool _finished;
267
    faststring _data;
268
    faststring _buffer;
269
    CppType _first_value;
270
    CppType _last_value;
271
    uint64_t _raw_data_size = 0;
272
};
273
274
inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
275
                                       size_t& compressed_size, size_t& num_element_after_padding,
276
1.78M
                                       int& size_of_element) {
277
1.78M
    if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) {
278
0
        return Status::InternalError("file corruption: invalid data size:{}, header size:{}",
279
0
                                     data.size, BITSHUFFLE_PAGE_HEADER_SIZE);
280
0
    }
281
282
1.78M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
1.78M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
1.78M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
1.78M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
1.78M
    if (num_element_after_padding != ALIGN_UP(num_elements, 8)) {
287
0
        return Status::InternalError(
288
0
                "num of element information corrupted,"
289
0
                " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{},"
290
0
                " compressed_size:{}, size_of_element:{}, data_size:{}",
291
0
                num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size,
292
0
                size_of_element, data.size);
293
0
    }
294
1.78M
    switch (size_of_element) {
295
90.4k
    case 1:
296
113k
    case 2:
297
115k
    case 3:
298
1.20M
    case 4:
299
1.71M
    case 8:
300
1.71M
    case 12:
301
1.78M
    case 16:
302
1.78M
    case 32:
303
1.78M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
1.78M
    }
307
1.78M
    return Status::OK();
308
1.78M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.17M
            : _data(data),
315
1.17M
              _options(options),
316
1.17M
              _parsed(false),
317
1.17M
              _num_elements(0),
318
1.17M
              _num_element_after_padding(0),
319
1.17M
              _size_of_element(0),
320
1.17M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
634k
            : _data(data),
315
634k
              _options(options),
316
634k
              _parsed(false),
317
634k
              _num_elements(0),
318
634k
              _num_element_after_padding(0),
319
634k
              _size_of_element(0),
320
634k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
60.3k
            : _data(data),
315
60.3k
              _options(options),
316
60.3k
              _parsed(false),
317
60.3k
              _num_elements(0),
318
60.3k
              _num_element_after_padding(0),
319
60.3k
              _size_of_element(0),
320
60.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
16.5k
            : _data(data),
315
16.5k
              _options(options),
316
16.5k
              _parsed(false),
317
16.5k
              _num_elements(0),
318
16.5k
              _num_element_after_padding(0),
319
16.5k
              _size_of_element(0),
320
16.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
69.3k
            : _data(data),
315
69.3k
              _options(options),
316
69.3k
              _parsed(false),
317
69.3k
              _num_elements(0),
318
69.3k
              _num_element_after_padding(0),
319
69.3k
              _size_of_element(0),
320
69.3k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
93.5k
            : _data(data),
315
93.5k
              _options(options),
316
93.5k
              _parsed(false),
317
93.5k
              _num_elements(0),
318
93.5k
              _num_element_after_padding(0),
319
93.5k
              _size_of_element(0),
320
93.5k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.2k
            : _data(data),
315
14.2k
              _options(options),
316
14.2k
              _parsed(false),
317
14.2k
              _num_elements(0),
318
14.2k
              _num_element_after_padding(0),
319
14.2k
              _size_of_element(0),
320
14.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.5k
            : _data(data),
315
19.5k
              _options(options),
316
19.5k
              _parsed(false),
317
19.5k
              _num_elements(0),
318
19.5k
              _num_element_after_padding(0),
319
19.5k
              _size_of_element(0),
320
19.5k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.4k
            : _data(data),
315
30.4k
              _options(options),
316
30.4k
              _parsed(false),
317
30.4k
              _num_elements(0),
318
30.4k
              _num_element_after_padding(0),
319
30.4k
              _size_of_element(0),
320
30.4k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.13k
            : _data(data),
315
2.13k
              _options(options),
316
2.13k
              _parsed(false),
317
2.13k
              _num_elements(0),
318
2.13k
              _num_element_after_padding(0),
319
2.13k
              _size_of_element(0),
320
2.13k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
58.0k
            : _data(data),
315
58.0k
              _options(options),
316
58.0k
              _parsed(false),
317
58.0k
              _num_elements(0),
318
58.0k
              _num_element_after_padding(0),
319
58.0k
              _size_of_element(0),
320
58.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
64.9k
            : _data(data),
315
64.9k
              _options(options),
316
64.9k
              _parsed(false),
317
64.9k
              _num_elements(0),
318
64.9k
              _num_element_after_padding(0),
319
64.9k
              _size_of_element(0),
320
64.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.87k
            : _data(data),
315
2.87k
              _options(options),
316
2.87k
              _parsed(false),
317
2.87k
              _num_elements(0),
318
2.87k
              _num_element_after_padding(0),
319
2.87k
              _size_of_element(0),
320
2.87k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.6k
            : _data(data),
315
14.6k
              _options(options),
316
14.6k
              _parsed(false),
317
14.6k
              _num_elements(0),
318
14.6k
              _num_element_after_padding(0),
319
14.6k
              _size_of_element(0),
320
14.6k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.45k
            : _data(data),
315
1.45k
              _options(options),
316
1.45k
              _parsed(false),
317
1.45k
              _num_elements(0),
318
1.45k
              _num_element_after_padding(0),
319
1.45k
              _size_of_element(0),
320
1.45k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.9k
            : _data(data),
315
14.9k
              _options(options),
316
14.9k
              _parsed(false),
317
14.9k
              _num_elements(0),
318
14.9k
              _num_element_after_padding(0),
319
14.9k
              _size_of_element(0),
320
14.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
38.9k
            : _data(data),
315
38.9k
              _options(options),
316
38.9k
              _parsed(false),
317
38.9k
              _num_elements(0),
318
38.9k
              _num_element_after_padding(0),
319
38.9k
              _size_of_element(0),
320
38.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.0k
            : _data(data),
315
30.0k
              _options(options),
316
30.0k
              _parsed(false),
317
30.0k
              _num_elements(0),
318
30.0k
              _num_element_after_padding(0),
319
30.0k
              _size_of_element(0),
320
30.0k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.74k
            : _data(data),
315
1.74k
              _options(options),
316
1.74k
              _parsed(false),
317
1.74k
              _num_elements(0),
318
1.74k
              _num_element_after_padding(0),
319
1.74k
              _size_of_element(0),
320
1.74k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.19k
            : _data(data),
315
1.19k
              _options(options),
316
1.19k
              _parsed(false),
317
1.19k
              _num_elements(0),
318
1.19k
              _num_element_after_padding(0),
319
1.19k
              _size_of_element(0),
320
1.19k
              _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.16M
    Status init() override {
323
1.16M
        CHECK(!_parsed);
324
1.16M
        size_t unused;
325
1.16M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.16M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.16M
        if (_data.size !=
329
1.16M
            _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.16M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.16M
                     _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.16M
        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.16M
        _parsed = true;
349
1.16M
        return Status::OK();
350
1.16M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
633k
    Status init() override {
323
633k
        CHECK(!_parsed);
324
633k
        size_t unused;
325
633k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
633k
                                                 _num_element_after_padding, _size_of_element));
327
328
633k
        if (_data.size !=
329
633k
            _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
633k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
633k
                     _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
633k
        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
633k
        _parsed = true;
349
633k
        return Status::OK();
350
633k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
60.2k
    Status init() override {
323
60.2k
        CHECK(!_parsed);
324
60.2k
        size_t unused;
325
60.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
60.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
60.2k
        if (_data.size !=
329
60.2k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
60.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
60.2k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
60.2k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
60.2k
        _parsed = true;
349
60.2k
        return Status::OK();
350
60.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
16.5k
    Status init() override {
323
16.5k
        CHECK(!_parsed);
324
16.5k
        size_t unused;
325
16.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
16.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
16.5k
        if (_data.size !=
329
16.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
16.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
16.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
16.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
16.5k
        _parsed = true;
349
16.5k
        return Status::OK();
350
16.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
69.2k
    Status init() override {
323
69.2k
        CHECK(!_parsed);
324
69.2k
        size_t unused;
325
69.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
69.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
69.2k
        if (_data.size !=
329
69.2k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
69.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
69.2k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
69.2k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
69.2k
        _parsed = true;
349
69.2k
        return Status::OK();
350
69.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
93.5k
    Status init() override {
323
93.5k
        CHECK(!_parsed);
324
93.5k
        size_t unused;
325
93.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
93.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
93.5k
        if (_data.size !=
329
93.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
93.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
93.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
93.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
93.5k
        _parsed = true;
349
93.5k
        return Status::OK();
350
93.5k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
14.2k
    Status init() override {
323
14.2k
        CHECK(!_parsed);
324
14.2k
        size_t unused;
325
14.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.2k
        if (_data.size !=
329
14.2k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
14.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.2k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
14.2k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
14.2k
        _parsed = true;
349
14.2k
        return Status::OK();
350
14.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
19.5k
    Status init() override {
323
19.5k
        CHECK(!_parsed);
324
19.5k
        size_t unused;
325
19.5k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.5k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.5k
        if (_data.size !=
329
19.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
19.5k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.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
19.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
19.5k
        _parsed = true;
349
19.5k
        return Status::OK();
350
19.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
30.4k
    Status init() override {
323
30.4k
        CHECK(!_parsed);
324
30.4k
        size_t unused;
325
30.4k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.4k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.4k
        if (_data.size !=
329
30.4k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
30.4k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.4k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
30.4k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
30.4k
        _parsed = true;
349
30.4k
        return Status::OK();
350
30.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
2.13k
    Status init() override {
323
2.13k
        CHECK(!_parsed);
324
2.13k
        size_t unused;
325
2.13k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.13k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.13k
        if (_data.size !=
329
2.13k
            _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.13k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.13k
                     _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.13k
        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.13k
        _parsed = true;
349
2.13k
        return Status::OK();
350
2.13k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
58.0k
    Status init() override {
323
58.0k
        CHECK(!_parsed);
324
58.0k
        size_t unused;
325
58.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
58.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
58.0k
        if (_data.size !=
329
58.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
58.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
58.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
58.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
58.0k
        _parsed = true;
349
58.0k
        return Status::OK();
350
58.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
64.9k
    Status init() override {
323
64.9k
        CHECK(!_parsed);
324
64.9k
        size_t unused;
325
64.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
64.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
64.9k
        if (_data.size !=
329
64.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
64.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
64.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
64.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
64.9k
        _parsed = true;
349
64.9k
        return Status::OK();
350
64.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.87k
    Status init() override {
323
2.87k
        CHECK(!_parsed);
324
2.87k
        size_t unused;
325
2.87k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.87k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.87k
        if (_data.size !=
329
2.87k
            _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.87k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.87k
                     _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.87k
        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.87k
        _parsed = true;
349
2.87k
        return Status::OK();
350
2.87k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
14.6k
    Status init() override {
323
14.6k
        CHECK(!_parsed);
324
14.6k
        size_t unused;
325
14.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.6k
        if (_data.size !=
329
14.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
14.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.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
14.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
14.6k
        _parsed = true;
349
14.6k
        return Status::OK();
350
14.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.45k
    Status init() override {
323
1.45k
        CHECK(!_parsed);
324
1.45k
        size_t unused;
325
1.45k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.45k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.45k
        if (_data.size !=
329
1.45k
            _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.45k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.45k
                     _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.45k
        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.45k
        _parsed = true;
349
1.45k
        return Status::OK();
350
1.45k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
14.9k
    Status init() override {
323
14.9k
        CHECK(!_parsed);
324
14.9k
        size_t unused;
325
14.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.9k
        if (_data.size !=
329
14.9k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
14.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.9k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
14.9k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
14.9k
        _parsed = true;
349
14.9k
        return Status::OK();
350
14.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
38.9k
    Status init() override {
323
38.9k
        CHECK(!_parsed);
324
38.9k
        size_t unused;
325
38.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
38.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
38.9k
        if (_data.size !=
329
38.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
38.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
38.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
38.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
38.9k
        _parsed = true;
349
38.9k
        return Status::OK();
350
38.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
29.9k
    Status init() override {
323
29.9k
        CHECK(!_parsed);
324
29.9k
        size_t unused;
325
29.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
29.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
29.9k
        if (_data.size !=
329
29.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
29.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
29.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
29.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
29.9k
        _parsed = true;
349
29.9k
        return Status::OK();
350
29.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
322
1.74k
    Status init() override {
323
1.74k
        CHECK(!_parsed);
324
1.74k
        size_t unused;
325
1.74k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.74k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.74k
        if (_data.size !=
329
1.74k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.74k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.74k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.74k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.74k
        _parsed = true;
349
1.74k
        return Status::OK();
350
1.74k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
322
1.19k
    Status init() override {
323
1.19k
        CHECK(!_parsed);
324
1.19k
        size_t unused;
325
1.19k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.19k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.19k
        if (_data.size !=
329
1.19k
            _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.19k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.19k
                     _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.19k
        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.19k
        _parsed = true;
349
1.19k
        return Status::OK();
350
1.19k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.15k
    Status init() override {
323
1.15k
        CHECK(!_parsed);
324
1.15k
        size_t unused;
325
1.15k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.15k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.15k
        if (_data.size !=
329
1.15k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.15k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.15k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.15k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.15k
        _parsed = true;
349
1.15k
        return Status::OK();
350
1.15k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
1.43M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
1.43M
        if (_num_elements == 0) [[unlikely]] {
361
4.24k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
4.24k
        }
366
367
1.43M
        DCHECK_LE(pos, _num_elements);
368
1.43M
        _cur_index = pos;
369
1.43M
        return Status::OK();
370
1.43M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
857k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
857k
        if (_num_elements == 0) [[unlikely]] {
361
2.27k
            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.27k
        }
366
367
857k
        DCHECK_LE(pos, _num_elements);
368
857k
        _cur_index = pos;
369
857k
        return Status::OK();
370
857k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
67.4k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
67.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
67.4k
        DCHECK_LE(pos, _num_elements);
368
67.4k
        _cur_index = pos;
369
67.4k
        return Status::OK();
370
67.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.23k
    Status seek_to_position_in_page(size_t pos) override {
359
1.23k
        DCHECK(_parsed) << "Must call init()";
360
1.23k
        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.23k
        DCHECK_LE(pos, _num_elements);
368
1.23k
        _cur_index = pos;
369
1.23k
        return Status::OK();
370
1.23k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
37.9k
    Status seek_to_position_in_page(size_t pos) override {
359
37.9k
        DCHECK(_parsed) << "Must call init()";
360
37.9k
        if (_num_elements == 0) [[unlikely]] {
361
494
            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
494
        }
366
367
37.9k
        DCHECK_LE(pos, _num_elements);
368
37.9k
        _cur_index = pos;
369
37.9k
        return Status::OK();
370
37.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
10.3k
    Status seek_to_position_in_page(size_t pos) override {
359
10.3k
        DCHECK(_parsed) << "Must call init()";
360
10.3k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
10.3k
        DCHECK_LE(pos, _num_elements);
368
10.3k
        _cur_index = pos;
369
10.3k
        return Status::OK();
370
10.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
4.16k
    Status seek_to_position_in_page(size_t pos) override {
359
4.16k
        DCHECK(_parsed) << "Must call init()";
360
4.16k
        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
4.16k
        DCHECK_LE(pos, _num_elements);
368
4.16k
        _cur_index = pos;
369
4.16k
        return Status::OK();
370
4.16k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.8k
    Status seek_to_position_in_page(size_t pos) override {
359
17.8k
        DCHECK(_parsed) << "Must call init()";
360
17.8k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
17.8k
        DCHECK_LE(pos, _num_elements);
368
17.8k
        _cur_index = pos;
369
17.8k
        return Status::OK();
370
17.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
14.9k
    Status seek_to_position_in_page(size_t pos) override {
359
14.9k
        DCHECK(_parsed) << "Must call init()";
360
14.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
14.9k
        DCHECK_LE(pos, _num_elements);
368
14.9k
        _cur_index = pos;
369
14.9k
        return Status::OK();
370
14.9k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
13.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
13.5k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
13.5k
        DCHECK_LE(pos, _num_elements);
368
13.5k
        _cur_index = pos;
369
13.5k
        return Status::OK();
370
13.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
295k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
295k
        if (_num_elements == 0) [[unlikely]] {
361
486
            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
486
        }
366
367
295k
        DCHECK_LE(pos, _num_elements);
368
295k
        _cur_index = pos;
369
295k
        return Status::OK();
370
295k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
65.8k
    Status seek_to_position_in_page(size_t pos) override {
359
65.8k
        DCHECK(_parsed) << "Must call init()";
360
65.8k
        if (_num_elements == 0) [[unlikely]] {
361
13
            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
13
        }
366
367
65.8k
        DCHECK_LE(pos, _num_elements);
368
65.8k
        _cur_index = pos;
369
65.8k
        return Status::OK();
370
65.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
8.24k
    Status seek_to_position_in_page(size_t pos) override {
359
8.24k
        DCHECK(_parsed) << "Must call init()";
360
8.24k
        if (_num_elements == 0) [[unlikely]] {
361
16
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
16
        }
366
367
8.24k
        DCHECK_LE(pos, _num_elements);
368
8.24k
        _cur_index = pos;
369
8.24k
        return Status::OK();
370
8.24k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.41k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
6.41k
        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.41k
        DCHECK_LE(pos, _num_elements);
368
6.41k
        _cur_index = pos;
369
6.41k
        return Status::OK();
370
6.41k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
128
    Status seek_to_position_in_page(size_t pos) override {
359
128
        DCHECK(_parsed) << "Must call init()";
360
128
        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
128
        DCHECK_LE(pos, _num_elements);
368
128
        _cur_index = pos;
369
128
        return Status::OK();
370
128
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
788
    Status seek_to_position_in_page(size_t pos) override {
359
788
        DCHECK(_parsed) << "Must call init()";
360
788
        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
788
        DCHECK_LE(pos, _num_elements);
368
788
        _cur_index = pos;
369
788
        return Status::OK();
370
788
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
17.0k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
17.0k
        if (_num_elements == 0) [[unlikely]] {
361
12
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
12
        }
366
367
17.0k
        DCHECK_LE(pos, _num_elements);
368
17.0k
        _cur_index = pos;
369
17.0k
        return Status::OK();
370
17.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
15.9k
    Status seek_to_position_in_page(size_t pos) override {
359
15.9k
        DCHECK(_parsed) << "Must call init()";
360
15.9k
        if (_num_elements == 0) [[unlikely]] {
361
10
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
10
        }
366
367
15.9k
        DCHECK_LE(pos, _num_elements);
368
15.9k
        _cur_index = pos;
369
15.9k
        return Status::OK();
370
15.9k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.92k
    Status seek_to_position_in_page(size_t pos) override {
359
1.92k
        DCHECK(_parsed) << "Must call init()";
360
1.92k
        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.92k
        DCHECK_LE(pos, _num_elements);
368
1.92k
        _cur_index = pos;
369
1.92k
        return Status::OK();
370
1.92k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
72
    Status seek_to_position_in_page(size_t pos) override {
359
72
        DCHECK(_parsed) << "Must call init()";
360
72
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
72
        DCHECK_LE(pos, _num_elements);
368
72
        _cur_index = pos;
369
72
        return Status::OK();
370
72
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
Line
Count
Source
358
89
    Status seek_to_position_in_page(size_t pos) override {
359
89
        DCHECK(_parsed) << "Must call init()";
360
89
        if (_num_elements == 0) [[unlikely]] {
361
1
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
1
        }
366
367
89
        DCHECK_LE(pos, _num_elements);
368
89
        _cur_index = pos;
369
89
        return Status::OK();
370
89
    }
371
372
0
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
373
0
        DCHECK(_parsed) << "Must call init() firstly";
374
375
0
        if (_num_elements == 0) {
376
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
377
0
        }
378
379
0
        size_t left = 0;
380
0
        size_t right = _num_elements;
381
382
0
        void* mid_value = nullptr;
383
384
        // find the first value >= target. after loop,
385
        // - left == index of first value >= target when found
386
        // - left == _num_elements when not found (all values < target)
387
0
        while (left < right) {
388
0
            size_t mid = left + (right - left) / 2;
389
0
            mid_value = get_data(mid);
390
0
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
391
0
                left = mid + 1;
392
0
            } else {
393
0
                right = mid;
394
0
            }
395
0
        }
396
0
        if (left >= _num_elements) {
397
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
398
0
        }
399
0
        void* find_value = get_data(left);
400
0
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
401
0
            *exact_match = true;
402
0
        } else {
403
0
            *exact_match = false;
404
0
        }
405
406
0
        _cur_index = left;
407
0
        return Status::OK();
408
0
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb
409
410
    template <bool forward_index = true>
411
2.82M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2.82M
        DCHECK(_parsed);
413
2.82M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2.82M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2.82M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2.82M
        *n = max_fetch;
422
2.82M
        if constexpr (forward_index) {
423
2.04M
            _cur_index += max_fetch;
424
2.04M
        }
425
426
2.82M
        return Status::OK();
427
2.82M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
711k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
711k
        DCHECK(_parsed);
413
711k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
711k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
711k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
711k
        *n = max_fetch;
422
711k
        if constexpr (forward_index) {
423
711k
            _cur_index += max_fetch;
424
711k
        }
425
426
711k
        return Status::OK();
427
711k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
155k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
155k
        DCHECK(_parsed);
413
155k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
155k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
155k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
155k
        *n = max_fetch;
422
155k
        if constexpr (forward_index) {
423
155k
            _cur_index += max_fetch;
424
155k
        }
425
426
155k
        return Status::OK();
427
155k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
11.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
11.4k
        DCHECK(_parsed);
413
11.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
11.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
11.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
11.4k
        *n = max_fetch;
422
11.4k
        if constexpr (forward_index) {
423
11.4k
            _cur_index += max_fetch;
424
11.4k
        }
425
426
11.4k
        return Status::OK();
427
11.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
77.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
77.7k
        DCHECK(_parsed);
413
77.7k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
77.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
77.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
77.7k
        *n = max_fetch;
422
77.7k
        if constexpr (forward_index) {
423
77.7k
            _cur_index += max_fetch;
424
77.7k
        }
425
426
77.7k
        return Status::OK();
427
77.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
438k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
438k
        DCHECK(_parsed);
413
439k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
438k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
438k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
438k
        *n = max_fetch;
422
438k
        if constexpr (forward_index) {
423
438k
            _cur_index += max_fetch;
424
438k
        }
425
426
438k
        return Status::OK();
427
438k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
774k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
774k
        DCHECK(_parsed);
413
775k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
774k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
774k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
774k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
774k
        return Status::OK();
427
774k
    }
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
24.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
24.4k
        DCHECK(_parsed);
413
24.4k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
24.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
24.4k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
24.4k
        *n = max_fetch;
422
24.4k
        if constexpr (forward_index) {
423
24.4k
            _cur_index += max_fetch;
424
24.4k
        }
425
426
24.4k
        return Status::OK();
427
24.4k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
14.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.3k
        DCHECK(_parsed);
413
14.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.3k
        *n = max_fetch;
422
14.3k
        if constexpr (forward_index) {
423
14.3k
            _cur_index += max_fetch;
424
14.3k
        }
425
426
14.3k
        return Status::OK();
427
14.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
23.1k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
23.1k
        DCHECK(_parsed);
413
23.1k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
23.1k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
23.1k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
23.1k
        *n = max_fetch;
422
23.1k
        if constexpr (forward_index) {
423
23.1k
            _cur_index += max_fetch;
424
23.1k
        }
425
426
23.1k
        return Status::OK();
427
23.1k
    }
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
5.79k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.79k
        DCHECK(_parsed);
413
5.79k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.79k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.79k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.79k
        *n = max_fetch;
422
5.79k
        if constexpr (forward_index) {
423
5.79k
            _cur_index += max_fetch;
424
5.79k
        }
425
426
5.79k
        return Status::OK();
427
5.79k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
393k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
393k
        DCHECK(_parsed);
413
393k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
393k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
393k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
393k
        *n = max_fetch;
422
393k
        if constexpr (forward_index) {
423
393k
            _cur_index += max_fetch;
424
393k
        }
425
426
393k
        return Status::OK();
427
393k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
85.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
85.6k
        DCHECK(_parsed);
413
85.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
85.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
85.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
85.6k
        *n = max_fetch;
422
85.6k
        if constexpr (forward_index) {
423
85.6k
            _cur_index += max_fetch;
424
85.6k
        }
425
426
85.6k
        return Status::OK();
427
85.6k
    }
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.63k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.63k
        DCHECK(_parsed);
413
1.63k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.63k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.63k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.63k
        *n = max_fetch;
422
1.63k
        if constexpr (forward_index) {
423
1.63k
            _cur_index += max_fetch;
424
1.63k
        }
425
426
1.63k
        return Status::OK();
427
1.63k
    }
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.73k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.73k
        DCHECK(_parsed);
413
6.73k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.73k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.73k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.73k
        *n = max_fetch;
422
6.73k
        if constexpr (forward_index) {
423
6.73k
            _cur_index += max_fetch;
424
6.73k
        }
425
426
6.73k
        return Status::OK();
427
6.73k
    }
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.33k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.33k
        DCHECK(_parsed);
413
1.33k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.33k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.33k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.33k
        *n = max_fetch;
422
1.33k
        if constexpr (forward_index) {
423
1.33k
            _cur_index += max_fetch;
424
1.33k
        }
425
426
1.33k
        return Status::OK();
427
1.33k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
9.47k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
9.47k
        DCHECK(_parsed);
413
9.47k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
9.47k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
9.47k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
9.47k
        *n = max_fetch;
422
9.47k
        if constexpr (forward_index) {
423
9.47k
            _cur_index += max_fetch;
424
9.47k
        }
425
426
9.47k
        return Status::OK();
427
9.47k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
41.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
41.7k
        DCHECK(_parsed);
413
41.7k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
41.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
41.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
41.7k
        *n = max_fetch;
422
41.7k
        if constexpr (forward_index) {
423
41.7k
            _cur_index += max_fetch;
424
41.7k
        }
425
426
41.7k
        return Status::OK();
427
41.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
30.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
30.3k
        DCHECK(_parsed);
413
30.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
30.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
30.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
30.3k
        *n = max_fetch;
422
30.3k
        if constexpr (forward_index) {
423
30.3k
            _cur_index += max_fetch;
424
30.3k
        }
425
426
30.3k
        return Status::OK();
427
30.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.17k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.17k
        DCHECK(_parsed);
413
3.17k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.17k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.17k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.17k
        *n = max_fetch;
422
3.17k
        if constexpr (forward_index) {
423
3.17k
            _cur_index += max_fetch;
424
3.17k
        }
425
426
3.17k
        return Status::OK();
427
3.17k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.77k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.77k
        DCHECK(_parsed);
413
5.77k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.77k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.77k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.77k
        *n = max_fetch;
422
5.77k
        if constexpr (forward_index) {
423
5.77k
            _cur_index += max_fetch;
424
5.77k
        }
425
426
5.77k
        return Status::OK();
427
5.77k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
5.79k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
5.79k
        DCHECK(_parsed);
413
5.79k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
5.79k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
5.79k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
5.79k
        *n = max_fetch;
422
5.79k
        if constexpr (forward_index) {
423
5.79k
            _cur_index += max_fetch;
424
5.79k
        }
425
426
5.79k
        return Status::OK();
427
5.79k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
2.04M
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
712k
    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
155k
    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
11.4k
    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
77.7k
    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
439k
    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
24.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
14.3k
    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
23.1k
    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
5.79k
    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
393k
    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
85.7k
    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.63k
    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.73k
    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.33k
    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
9.47k
    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
41.7k
    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
30.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.17k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.77k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
5.79k
    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
324k
                          MutableColumnPtr& dst) override {
433
324k
        DCHECK(_parsed);
434
324k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
324k
        auto total = *n;
440
324k
        auto read_count = 0;
441
324k
        _buffer.resize(total);
442
103M
        for (size_t i = 0; i < total; ++i) {
443
102M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
102M
            if (UNLIKELY(ord >= _num_elements)) {
445
10.5k
                break;
446
10.5k
            }
447
448
102M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
102M
        }
450
451
324k
        if (LIKELY(read_count > 0)) {
452
324k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
324k
        }
454
455
324k
        *n = read_count;
456
324k
        return Status::OK();
457
324k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
77.3k
                          MutableColumnPtr& dst) override {
433
77.3k
        DCHECK(_parsed);
434
77.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
77.3k
        auto total = *n;
440
77.3k
        auto read_count = 0;
441
77.3k
        _buffer.resize(total);
442
32.2M
        for (size_t i = 0; i < total; ++i) {
443
32.1M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
32.1M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.16k
                break;
446
1.16k
            }
447
448
32.1M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
32.1M
        }
450
451
77.3k
        if (LIKELY(read_count > 0)) {
452
77.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
77.3k
        }
454
455
77.3k
        *n = read_count;
456
77.3k
        return Status::OK();
457
77.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
22.4k
                          MutableColumnPtr& dst) override {
433
22.4k
        DCHECK(_parsed);
434
22.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
22.4k
        auto total = *n;
440
22.4k
        auto read_count = 0;
441
22.4k
        _buffer.resize(total);
442
806k
        for (size_t i = 0; i < total; ++i) {
443
784k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
784k
            if (UNLIKELY(ord >= _num_elements)) {
445
49
                break;
446
49
            }
447
448
784k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
784k
        }
450
451
22.4k
        if (LIKELY(read_count > 0)) {
452
22.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
22.4k
        }
454
455
22.4k
        *n = read_count;
456
22.4k
        return Status::OK();
457
22.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
7.51k
                          MutableColumnPtr& dst) override {
433
7.51k
        DCHECK(_parsed);
434
7.51k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
7.51k
        auto total = *n;
440
7.51k
        auto read_count = 0;
441
7.51k
        _buffer.resize(total);
442
81.9k
        for (size_t i = 0; i < total; ++i) {
443
74.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
74.4k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
74.4k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
74.4k
        }
450
451
7.51k
        if (LIKELY(read_count > 0)) {
452
7.51k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
7.51k
        }
454
455
7.51k
        *n = read_count;
456
7.51k
        return Status::OK();
457
7.51k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.8k
                          MutableColumnPtr& dst) override {
433
30.8k
        DCHECK(_parsed);
434
30.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.8k
        auto total = *n;
440
30.8k
        auto read_count = 0;
441
30.8k
        _buffer.resize(total);
442
14.2M
        for (size_t i = 0; i < total; ++i) {
443
14.1M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.1M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.49k
                break;
446
1.49k
            }
447
448
14.1M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.1M
        }
450
451
30.9k
        if (LIKELY(read_count > 0)) {
452
30.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.9k
        }
454
455
30.8k
        *n = read_count;
456
30.8k
        return Status::OK();
457
30.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
28.6k
                          MutableColumnPtr& dst) override {
433
28.6k
        DCHECK(_parsed);
434
28.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
28.6k
        auto total = *n;
440
28.6k
        auto read_count = 0;
441
28.6k
        _buffer.resize(total);
442
375k
        for (size_t i = 0; i < total; ++i) {
443
347k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
347k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
347k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
347k
        }
450
451
28.6k
        if (LIKELY(read_count > 0)) {
452
28.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
28.6k
        }
454
455
28.6k
        *n = read_count;
456
28.6k
        return Status::OK();
457
28.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
6.63k
                          MutableColumnPtr& dst) override {
433
6.63k
        DCHECK(_parsed);
434
6.63k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
6.63k
        auto total = *n;
440
6.63k
        auto read_count = 0;
441
6.63k
        _buffer.resize(total);
442
15.3k
        for (size_t i = 0; i < total; ++i) {
443
8.67k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8.67k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
8.67k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8.67k
        }
450
451
6.63k
        if (LIKELY(read_count > 0)) {
452
6.63k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
6.63k
        }
454
455
6.63k
        *n = read_count;
456
6.63k
        return Status::OK();
457
6.63k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
10.5k
                          MutableColumnPtr& dst) override {
433
10.5k
        DCHECK(_parsed);
434
10.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.5k
        auto total = *n;
440
10.5k
        auto read_count = 0;
441
10.5k
        _buffer.resize(total);
442
1.16M
        for (size_t i = 0; i < total; ++i) {
443
1.15M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.15M
            if (UNLIKELY(ord >= _num_elements)) {
445
29
                break;
446
29
            }
447
448
1.15M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.15M
        }
450
451
10.5k
        if (LIKELY(read_count > 0)) {
452
10.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.5k
        }
454
455
10.5k
        *n = read_count;
456
10.5k
        return Status::OK();
457
10.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.8k
                          MutableColumnPtr& dst) override {
433
15.8k
        DCHECK(_parsed);
434
15.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.8k
        auto total = *n;
440
15.8k
        auto read_count = 0;
441
15.8k
        _buffer.resize(total);
442
4.75M
        for (size_t i = 0; i < total; ++i) {
443
4.74M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4.74M
            if (UNLIKELY(ord >= _num_elements)) {
445
990
                break;
446
990
            }
447
448
4.74M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4.74M
        }
450
451
15.8k
        if (LIKELY(read_count > 0)) {
452
15.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.8k
        }
454
455
15.8k
        *n = read_count;
456
15.8k
        return Status::OK();
457
15.8k
    }
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.09k
                          MutableColumnPtr& dst) override {
433
2.09k
        DCHECK(_parsed);
434
2.09k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.09k
        auto total = *n;
440
2.09k
        auto read_count = 0;
441
2.09k
        _buffer.resize(total);
442
534k
        for (size_t i = 0; i < total; ++i) {
443
532k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
532k
            if (UNLIKELY(ord >= _num_elements)) {
445
12
                break;
446
12
            }
447
448
532k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
532k
        }
450
451
2.09k
        if (LIKELY(read_count > 0)) {
452
2.09k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.09k
        }
454
455
2.09k
        *n = read_count;
456
2.09k
        return Status::OK();
457
2.09k
    }
_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
7.50M
        for (size_t i = 0; i < total; ++i) {
443
7.47M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.47M
            if (UNLIKELY(ord >= _num_elements)) {
445
697
                break;
446
697
            }
447
448
7.47M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.47M
        }
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
31.1k
                          MutableColumnPtr& dst) override {
433
31.1k
        DCHECK(_parsed);
434
31.1k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
31.1k
        auto total = *n;
440
31.1k
        auto read_count = 0;
441
31.1k
        _buffer.resize(total);
442
9.39M
        for (size_t i = 0; i < total; ++i) {
443
9.36M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
9.36M
            if (UNLIKELY(ord >= _num_elements)) {
445
95
                break;
446
95
            }
447
448
9.36M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
9.36M
        }
450
451
31.1k
        if (LIKELY(read_count > 0)) {
452
31.1k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
31.1k
        }
454
455
31.1k
        *n = read_count;
456
31.1k
        return Status::OK();
457
31.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.33k
                          MutableColumnPtr& dst) override {
433
2.33k
        DCHECK(_parsed);
434
2.33k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.33k
        auto total = *n;
440
2.33k
        auto read_count = 0;
441
2.33k
        _buffer.resize(total);
442
536k
        for (size_t i = 0; i < total; ++i) {
443
534k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
534k
            if (UNLIKELY(ord >= _num_elements)) {
445
86
                break;
446
86
            }
447
448
534k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
534k
        }
450
451
2.33k
        if (LIKELY(read_count > 0)) {
452
2.33k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.33k
        }
454
455
2.33k
        *n = read_count;
456
2.33k
        return Status::OK();
457
2.33k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.6k
                          MutableColumnPtr& dst) override {
433
11.6k
        DCHECK(_parsed);
434
11.6k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.6k
        auto total = *n;
440
11.6k
        auto read_count = 0;
441
11.6k
        _buffer.resize(total);
442
24.8k
        for (size_t i = 0; i < total; ++i) {
443
13.1k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.1k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.1k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.1k
        }
450
451
11.6k
        if (LIKELY(read_count > 0)) {
452
11.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.6k
        }
454
455
11.6k
        *n = read_count;
456
11.6k
        return Status::OK();
457
11.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
199
                          MutableColumnPtr& dst) override {
433
199
        DCHECK(_parsed);
434
199
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
199
        auto total = *n;
440
199
        auto read_count = 0;
441
199
        _buffer.resize(total);
442
406
        for (size_t i = 0; i < total; ++i) {
443
207
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
207
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
207
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
207
        }
450
451
199
        if (LIKELY(read_count > 0)) {
452
199
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
199
        }
454
455
199
        *n = read_count;
456
199
        return Status::OK();
457
199
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.39k
                          MutableColumnPtr& dst) override {
433
4.39k
        DCHECK(_parsed);
434
4.39k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.39k
        auto total = *n;
440
4.39k
        auto read_count = 0;
441
4.39k
        _buffer.resize(total);
442
18.6k
        for (size_t i = 0; i < total; ++i) {
443
14.2k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.2k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.2k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.2k
        }
450
451
4.39k
        if (LIKELY(read_count > 0)) {
452
4.39k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.39k
        }
454
455
4.39k
        *n = read_count;
456
4.39k
        return Status::OK();
457
4.39k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
27.0k
                          MutableColumnPtr& dst) override {
433
27.0k
        DCHECK(_parsed);
434
27.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
27.0k
        auto total = *n;
440
27.0k
        auto read_count = 0;
441
27.0k
        _buffer.resize(total);
442
22.8M
        for (size_t i = 0; i < total; ++i) {
443
22.8M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
22.8M
            if (UNLIKELY(ord >= _num_elements)) {
445
5.51k
                break;
446
5.51k
            }
447
448
22.8M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
22.8M
        }
450
451
27.0k
        if (LIKELY(read_count > 0)) {
452
27.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
27.0k
        }
454
455
27.0k
        *n = read_count;
456
27.0k
        return Status::OK();
457
27.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
14.7k
                          MutableColumnPtr& dst) override {
433
14.7k
        DCHECK(_parsed);
434
14.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
14.7k
        auto total = *n;
440
14.7k
        auto read_count = 0;
441
14.7k
        _buffer.resize(total);
442
8.73M
        for (size_t i = 0; i < total; ++i) {
443
8.71M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8.71M
            if (UNLIKELY(ord >= _num_elements)) {
445
471
                break;
446
471
            }
447
448
8.71M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8.71M
        }
450
451
14.7k
        if (LIKELY(read_count > 0)) {
452
14.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
14.7k
        }
454
455
14.7k
        *n = read_count;
456
14.7k
        return Status::OK();
457
14.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
928
                          MutableColumnPtr& dst) override {
433
928
        DCHECK(_parsed);
434
928
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
928
        auto total = *n;
440
928
        auto read_count = 0;
441
928
        _buffer.resize(total);
442
2.37k
        for (size_t i = 0; i < total; ++i) {
443
1.44k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.44k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.44k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.44k
        }
450
451
928
        if (LIKELY(read_count > 0)) {
452
928
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
928
        }
454
455
928
        *n = read_count;
456
928
        return Status::OK();
457
928
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
480
                          MutableColumnPtr& dst) override {
433
480
        DCHECK(_parsed);
434
480
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
480
        auto total = *n;
440
480
        auto read_count = 0;
441
480
        _buffer.resize(total);
442
1.20k
        for (size_t i = 0; i < total; ++i) {
443
724
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
724
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
724
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
724
        }
450
451
480
        if (LIKELY(read_count > 0)) {
452
480
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
480
        }
454
455
480
        *n = read_count;
456
480
        return Status::OK();
457
480
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
412
                          MutableColumnPtr& dst) override {
433
412
        DCHECK(_parsed);
434
412
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
412
        auto total = *n;
440
412
        auto read_count = 0;
441
412
        _buffer.resize(total);
442
1.33k
        for (size_t i = 0; i < total; ++i) {
443
927
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
927
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
927
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
927
        }
450
451
412
        if (LIKELY(read_count > 0)) {
452
412
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
412
        }
454
455
412
        *n = read_count;
456
412
        return Status::OK();
457
412
    }
458
459
776k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
776k
        return next_batch<false>(n, dst);
461
776k
    }
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
776k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
776k
        return next_batch<false>(n, dst);
461
776k
    }
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
355k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
233k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
1.38k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
808
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
5.07k
    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
442
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
15.4k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
11.0k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
7.41k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
20.7k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
38.5k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
5.99k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
986
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
17
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Line
Count
Source
465
3.45k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
660
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
9.51k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv
Line
Count
Source
465
304
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv
Line
Count
Source
465
55
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
104
    size_t current_index() const override { return _cur_index; }
466
467
106M
    char* get_data(size_t index) const {
468
106M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
106M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
33.4M
    char* get_data(size_t index) const {
468
33.4M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
33.4M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
940k
    char* get_data(size_t index) const {
468
940k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
940k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
85.8k
    char* get_data(size_t index) const {
468
85.8k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
85.8k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
14.2M
    char* get_data(size_t index) const {
468
14.2M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
14.2M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
1.55M
    char* get_data(size_t index) const {
468
1.55M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.55M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
33.1k
    char* get_data(size_t index) const {
468
33.1k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
33.1k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.16M
    char* get_data(size_t index) const {
468
1.16M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.16M
    }
_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
538k
    char* get_data(size_t index) const {
468
538k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
538k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
7.86M
    char* get_data(size_t index) const {
468
7.86M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.86M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
9.44M
    char* get_data(size_t index) const {
468
9.44M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
9.44M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
536k
    char* get_data(size_t index) const {
468
536k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
536k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
19.9k
    char* get_data(size_t index) const {
468
19.9k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
19.9k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.54k
    char* get_data(size_t index) const {
468
1.54k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.54k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
23.7k
    char* get_data(size_t index) const {
468
23.7k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
23.7k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
22.8M
    char* get_data(size_t index) const {
468
22.8M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.8M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
8.74M
    char* get_data(size_t index) const {
468
8.74M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
8.74M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
4.62k
    char* get_data(size_t index) const {
468
4.62k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.62k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
6.50k
    char* get_data(size_t index) const {
468
6.50k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.50k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
6.71k
    char* get_data(size_t index) const {
468
6.71k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.71k
    }
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