Coverage Report

Created: 2026-03-26 04:49

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
784k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
371k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
48.5k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
7.25k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
125k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
67.7k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
8.99k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
11.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
96
14.2k
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
517
    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
44.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
315
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
96
6.94k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
199
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
96
9.58k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
96
12.2k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
96
15.8k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
96
1.16k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
96
797
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
96
709
    Status init() override { return reset(); }
97
98
150M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
149M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
56.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
9.52k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
328k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
68.0k
    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
16.1k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
11.5k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
98
16.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
98
507
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
74.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
53.9k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
379
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
98
6.88k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
102
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
98
5.13k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
98
29.8k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
98
19.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Line
Count
Source
98
1.37k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Line
Count
Source
98
25.7k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
98
3.13k
    bool is_page_full() override { return _remain_element_capacity == 0; }
99
100
1.47M
    Status add(const uint8_t* vals, size_t* count) override {
101
1.47M
        return add_internal<false>(vals, count);
102
1.47M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
745k
    Status add(const uint8_t* vals, size_t* count) override {
101
745k
        return add_internal<false>(vals, count);
102
745k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
56.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
56.3k
        return add_internal<false>(vals, count);
102
56.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
9.52k
    Status add(const uint8_t* vals, size_t* count) override {
101
9.52k
        return add_internal<false>(vals, count);
102
9.52k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
328k
    Status add(const uint8_t* vals, size_t* count) override {
101
328k
        return add_internal<false>(vals, count);
102
328k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
68.0k
    Status add(const uint8_t* vals, size_t* count) override {
101
68.0k
        return add_internal<false>(vals, count);
102
68.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
16.1k
    Status add(const uint8_t* vals, size_t* count) override {
101
16.1k
        return add_internal<false>(vals, count);
102
16.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
11.5k
    Status add(const uint8_t* vals, size_t* count) override {
101
11.5k
        return add_internal<false>(vals, count);
102
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
100
16.2k
    Status add(const uint8_t* vals, size_t* count) override {
101
16.2k
        return add_internal<false>(vals, count);
102
16.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
507
    Status add(const uint8_t* vals, size_t* count) override {
101
507
        return add_internal<false>(vals, count);
102
507
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
74.4k
    Status add(const uint8_t* vals, size_t* count) override {
101
74.4k
        return add_internal<false>(vals, count);
102
74.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
53.9k
    Status add(const uint8_t* vals, size_t* count) override {
101
53.9k
        return add_internal<false>(vals, count);
102
53.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
379
    Status add(const uint8_t* vals, size_t* count) override {
101
379
        return add_internal<false>(vals, count);
102
379
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
100
6.88k
    Status add(const uint8_t* vals, size_t* count) override {
101
6.88k
        return add_internal<false>(vals, count);
102
6.88k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
102
    Status add(const uint8_t* vals, size_t* count) override {
101
102
        return add_internal<false>(vals, count);
102
102
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
100
5.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
29.8k
    Status add(const uint8_t* vals, size_t* count) override {
101
29.8k
        return add_internal<false>(vals, count);
102
29.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
100
19.3k
    Status add(const uint8_t* vals, size_t* count) override {
101
19.3k
        return add_internal<false>(vals, count);
102
19.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
100
1.37k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.37k
        return add_internal<false>(vals, count);
102
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
100
25.7k
    Status add(const uint8_t* vals, size_t* count) override {
101
25.7k
        return add_internal<false>(vals, count);
102
25.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
100
3.13k
    Status add(const uint8_t* vals, size_t* count) override {
101
3.13k
        return add_internal<false>(vals, count);
102
3.13k
    }
103
104
148M
    Status single_add(const uint8_t* vals, size_t* count) {
105
148M
        return add_internal<true>(vals, count);
106
148M
    }
107
108
    template <bool single>
109
149M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
149M
        DCHECK(!_finished);
111
149M
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
149M
        uint32_t to_add = cast_set<UInt32>(
127
149M
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
149M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
149M
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
149M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
148M
        _count += to_add;
135
148M
        _remain_element_capacity -= to_add;
136
148M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
148M
        *num_written = to_add;
139
148M
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
147M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
147M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
147M
                        *reinterpret_cast<const uint32_t*>(vals);
150
147M
                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
147M
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
0
        memcpy(&_data[orig_size], vals, to_add_size);
159
148M
        return Status::OK();
160
149M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
745k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
745k
        DCHECK(!_finished);
111
745k
        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
745k
        uint32_t to_add = cast_set<UInt32>(
127
745k
                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
745k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
745k
        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
745k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
745k
        _count += to_add;
135
745k
        _remain_element_capacity -= to_add;
136
745k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
745k
        *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
745k
        memcpy(&_data[orig_size], vals, to_add_size);
159
745k
        return Status::OK();
160
745k
    }
_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
147M
        _count += to_add;
135
147M
        _remain_element_capacity -= to_add;
136
147M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
147M
        *num_written = to_add;
139
147M
        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
147M
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
147M
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
147M
                        *reinterpret_cast<const uint32_t*>(vals);
150
147M
                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
147M
        }
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
147M
        return Status::OK();
160
147M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
56.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
56.3k
        DCHECK(!_finished);
111
56.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
56.3k
        uint32_t to_add = cast_set<UInt32>(
127
56.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
56.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
56.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
56.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
56.3k
        _count += to_add;
135
56.3k
        _remain_element_capacity -= to_add;
136
56.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
56.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
56.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
56.3k
        return Status::OK();
160
56.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
9.52k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
9.52k
        DCHECK(!_finished);
111
9.52k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
9.52k
        uint32_t to_add = cast_set<UInt32>(
127
9.52k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
9.52k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
9.52k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
9.52k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
9.52k
        _count += to_add;
135
9.52k
        _remain_element_capacity -= to_add;
136
9.52k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
9.52k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
9.52k
        memcpy(&_data[orig_size], vals, to_add_size);
159
9.52k
        return Status::OK();
160
9.52k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
328k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
328k
        DCHECK(!_finished);
111
328k
        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
328k
        uint32_t to_add = cast_set<UInt32>(
127
328k
                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
328k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
328k
        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
328k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
328k
        _count += to_add;
135
328k
        _remain_element_capacity -= to_add;
136
328k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
328k
        *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
328k
        memcpy(&_data[orig_size], vals, to_add_size);
159
328k
        return Status::OK();
160
328k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
68.0k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
68.0k
        DCHECK(!_finished);
111
68.0k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
68.0k
        uint32_t to_add = cast_set<UInt32>(
127
68.0k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
68.0k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
68.0k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
68.0k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
68.0k
        _count += to_add;
135
68.0k
        _remain_element_capacity -= to_add;
136
68.0k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
68.0k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
68.0k
        memcpy(&_data[orig_size], vals, to_add_size);
159
68.0k
        return Status::OK();
160
68.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
16.1k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
16.1k
        DCHECK(!_finished);
111
16.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
16.1k
        uint32_t to_add = cast_set<UInt32>(
127
16.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
16.1k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
16.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
16.1k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
16.1k
        _count += to_add;
135
16.1k
        _remain_element_capacity -= to_add;
136
16.1k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
16.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
16.1k
        memcpy(&_data[orig_size], vals, to_add_size);
159
16.1k
        return Status::OK();
160
16.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11.5k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11.5k
        DCHECK(!_finished);
111
11.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
11.5k
        uint32_t to_add = cast_set<UInt32>(
127
11.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
11.5k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11.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
11.5k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11.5k
        _count += to_add;
135
11.5k
        _remain_element_capacity -= to_add;
136
11.5k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11.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
11.5k
        memcpy(&_data[orig_size], vals, to_add_size);
159
11.5k
        return Status::OK();
160
11.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
16.2k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
16.2k
        DCHECK(!_finished);
111
16.2k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
16.2k
        uint32_t to_add = cast_set<UInt32>(
127
16.2k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
16.2k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
16.2k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
16.2k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
16.2k
        _count += to_add;
135
16.2k
        _remain_element_capacity -= to_add;
136
16.2k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
16.2k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
16.2k
        memcpy(&_data[orig_size], vals, to_add_size);
159
16.2k
        return Status::OK();
160
16.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
507
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
507
        DCHECK(!_finished);
111
507
        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
507
        uint32_t to_add = cast_set<UInt32>(
127
507
                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
507
        int to_add_size = to_add * SIZE_OF_TYPE;
130
507
        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
507
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
507
        _count += to_add;
135
507
        _remain_element_capacity -= to_add;
136
507
        _raw_data_size += to_add_size;
137
        // return added number through count
138
507
        *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
507
        memcpy(&_data[orig_size], vals, to_add_size);
159
507
        return Status::OK();
160
507
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
74.4k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
74.4k
        DCHECK(!_finished);
111
74.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
74.4k
        uint32_t to_add = cast_set<UInt32>(
127
74.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
74.4k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
74.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
74.4k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
74.4k
        _count += to_add;
135
74.4k
        _remain_element_capacity -= to_add;
136
74.4k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
74.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
74.4k
        memcpy(&_data[orig_size], vals, to_add_size);
159
74.4k
        return Status::OK();
160
74.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
53.9k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
53.9k
        DCHECK(!_finished);
111
53.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
53.9k
        uint32_t to_add = cast_set<UInt32>(
127
53.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
53.9k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
53.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
53.9k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
53.9k
        _count += to_add;
135
53.9k
        _remain_element_capacity -= to_add;
136
53.9k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
53.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
53.9k
        memcpy(&_data[orig_size], vals, to_add_size);
159
53.9k
        return Status::OK();
160
53.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
379
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
379
        DCHECK(!_finished);
111
379
        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
379
        uint32_t to_add = cast_set<UInt32>(
127
379
                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
379
        int to_add_size = to_add * SIZE_OF_TYPE;
130
379
        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
379
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
379
        _count += to_add;
135
379
        _remain_element_capacity -= to_add;
136
379
        _raw_data_size += to_add_size;
137
        // return added number through count
138
379
        *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
379
        memcpy(&_data[orig_size], vals, to_add_size);
159
379
        return Status::OK();
160
379
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
6.88k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
6.88k
        DCHECK(!_finished);
111
6.88k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
6.88k
        uint32_t to_add = cast_set<UInt32>(
127
6.88k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
6.88k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
6.88k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
6.88k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
6.88k
        _count += to_add;
135
6.88k
        _remain_element_capacity -= to_add;
136
6.88k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
6.88k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
6.88k
        memcpy(&_data[orig_size], vals, to_add_size);
159
6.88k
        return Status::OK();
160
6.88k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
102
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
102
        DCHECK(!_finished);
111
102
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
102
        uint32_t to_add = cast_set<UInt32>(
127
102
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
102
        int to_add_size = to_add * SIZE_OF_TYPE;
130
102
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
102
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
102
        _count += to_add;
135
102
        _remain_element_capacity -= to_add;
136
102
        _raw_data_size += to_add_size;
137
        // return added number through count
138
102
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
102
        memcpy(&_data[orig_size], vals, to_add_size);
159
102
        return Status::OK();
160
102
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
5.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
29.8k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
29.8k
        DCHECK(!_finished);
111
29.8k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
29.8k
        uint32_t to_add = cast_set<UInt32>(
127
29.8k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
29.8k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
29.8k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
29.8k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
29.8k
        _count += to_add;
135
29.8k
        _remain_element_capacity -= to_add;
136
29.8k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
29.8k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
29.8k
        memcpy(&_data[orig_size], vals, to_add_size);
159
29.8k
        return Status::OK();
160
29.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
19.3k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
19.3k
        DCHECK(!_finished);
111
19.3k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
19.3k
        uint32_t to_add = cast_set<UInt32>(
127
19.3k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
19.3k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
19.3k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
19.3k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
19.3k
        _count += to_add;
135
19.3k
        _remain_element_capacity -= to_add;
136
19.3k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
19.3k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
19.3k
        memcpy(&_data[orig_size], vals, to_add_size);
159
19.3k
        return Status::OK();
160
19.3k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.37k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.37k
        DCHECK(!_finished);
111
1.37k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
1.37k
        uint32_t to_add = cast_set<UInt32>(
127
1.37k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
1.37k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.37k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
1.37k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.37k
        _count += to_add;
135
1.37k
        _remain_element_capacity -= to_add;
136
1.37k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.37k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
1.37k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.37k
        return Status::OK();
160
1.37k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
25.7k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
25.7k
        DCHECK(!_finished);
111
25.7k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
25.7k
        uint32_t to_add = cast_set<UInt32>(
127
25.7k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
25.7k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
25.7k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
25.7k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
25.7k
        _count += to_add;
135
25.7k
        _remain_element_capacity -= to_add;
136
25.7k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
25.7k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
25.7k
        memcpy(&_data[orig_size], vals, to_add_size);
159
25.7k
        return Status::OK();
160
25.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
3.13k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
3.13k
        DCHECK(!_finished);
111
3.13k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
3.13k
        uint32_t to_add = cast_set<UInt32>(
127
3.13k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
3.13k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
3.13k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
3.13k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
3.13k
        _count += to_add;
135
3.13k
        _remain_element_capacity -= to_add;
136
3.13k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
3.13k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
3.13k
        memcpy(&_data[orig_size], vals, to_add_size);
159
3.13k
        return Status::OK();
160
3.13k
    }
161
162
776k
    Status finish(OwnedSlice* slice) override {
163
776k
        if (_count > 0) {
164
728k
            _first_value = cell(0);
165
728k
            _last_value = cell(_count - 1);
166
728k
        }
167
776k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
776k
        return Status::OK();
169
776k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
357k
    Status finish(OwnedSlice* slice) override {
163
357k
        if (_count > 0) {
164
323k
            _first_value = cell(0);
165
323k
            _last_value = cell(_count - 1);
166
323k
        }
167
357k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
357k
        return Status::OK();
169
357k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
47.5k
    Status finish(OwnedSlice* slice) override {
163
47.5k
        if (_count > 0) {
164
46.9k
            _first_value = cell(0);
165
46.9k
            _last_value = cell(_count - 1);
166
46.9k
        }
167
47.5k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
47.5k
        return Status::OK();
169
47.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
6.77k
    Status finish(OwnedSlice* slice) override {
163
6.77k
        if (_count > 0) {
164
6.66k
            _first_value = cell(0);
165
6.66k
            _last_value = cell(_count - 1);
166
6.66k
        }
167
6.77k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
6.77k
        return Status::OK();
169
6.77k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
127k
    Status finish(OwnedSlice* slice) override {
163
127k
        if (_count > 0) {
164
125k
            _first_value = cell(0);
165
125k
            _last_value = cell(_count - 1);
166
125k
        }
167
127k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
127k
        return Status::OK();
169
127k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
67.6k
    Status finish(OwnedSlice* slice) override {
163
67.6k
        if (_count > 0) {
164
67.6k
            _first_value = cell(0);
165
67.6k
            _last_value = cell(_count - 1);
166
67.6k
        }
167
67.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
67.6k
        return Status::OK();
169
67.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
8.73k
    Status finish(OwnedSlice* slice) override {
163
8.73k
        if (_count > 0) {
164
8.44k
            _first_value = cell(0);
165
8.44k
            _last_value = cell(_count - 1);
166
8.44k
        }
167
8.73k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
8.73k
        return Status::OK();
169
8.73k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
10.9k
    Status finish(OwnedSlice* slice) override {
163
10.9k
        if (_count > 0) {
164
10.5k
            _first_value = cell(0);
165
10.5k
            _last_value = cell(_count - 1);
166
10.5k
        }
167
10.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
10.9k
        return Status::OK();
169
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
14.1k
    Status finish(OwnedSlice* slice) override {
163
14.1k
        if (_count > 0) {
164
13.7k
            _first_value = cell(0);
165
13.7k
            _last_value = cell(_count - 1);
166
13.7k
        }
167
14.1k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
14.1k
        return Status::OK();
169
14.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
531
    Status finish(OwnedSlice* slice) override {
163
531
        if (_count > 0) {
164
507
            _first_value = cell(0);
165
507
            _last_value = cell(_count - 1);
166
507
        }
167
531
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
531
        return Status::OK();
169
531
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
36.8k
    Status finish(OwnedSlice* slice) override {
163
36.8k
        if (_count > 0) {
164
35.8k
            _first_value = cell(0);
165
35.8k
            _last_value = cell(_count - 1);
166
35.8k
        }
167
36.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
36.8k
        return Status::OK();
169
36.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
43.2k
    Status finish(OwnedSlice* slice) override {
163
43.2k
        if (_count > 0) {
164
41.8k
            _first_value = cell(0);
165
41.8k
            _last_value = cell(_count - 1);
166
41.8k
        }
167
43.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
43.2k
        return Status::OK();
169
43.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
469
    Status finish(OwnedSlice* slice) override {
163
469
        if (_count > 0) {
164
369
            _first_value = cell(0);
165
369
            _last_value = cell(_count - 1);
166
369
        }
167
469
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
469
        return Status::OK();
169
469
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7.07k
    Status finish(OwnedSlice* slice) override {
163
7.07k
        if (_count > 0) {
164
6.88k
            _first_value = cell(0);
165
6.88k
            _last_value = cell(_count - 1);
166
6.88k
        }
167
7.07k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7.08k
        return Status::OK();
169
7.07k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
110
    Status finish(OwnedSlice* slice) override {
163
110
        if (_count > 0) {
164
102
            _first_value = cell(0);
165
102
            _last_value = cell(_count - 1);
166
102
        }
167
110
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
110
        return Status::OK();
169
110
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
9.56k
    Status finish(OwnedSlice* slice) override {
163
9.56k
        if (_count > 0) {
164
4.67k
            _first_value = cell(0);
165
4.67k
            _last_value = cell(_count - 1);
166
4.67k
        }
167
9.56k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
9.57k
        return Status::OK();
169
9.56k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.2k
    Status finish(OwnedSlice* slice) override {
163
19.2k
        if (_count > 0) {
164
18.3k
            _first_value = cell(0);
165
18.3k
            _last_value = cell(_count - 1);
166
18.3k
        }
167
19.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.2k
        return Status::OK();
169
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
15.9k
    Status finish(OwnedSlice* slice) override {
163
15.9k
        if (_count > 0) {
164
15.5k
            _first_value = cell(0);
165
15.5k
            _last_value = cell(_count - 1);
166
15.5k
        }
167
15.9k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
15.9k
        return Status::OK();
169
15.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
1.06k
    Status finish(OwnedSlice* slice) override {
163
1.06k
        if (_count > 0) {
164
1.01k
            _first_value = cell(0);
165
1.01k
            _last_value = cell(_count - 1);
166
1.01k
        }
167
1.06k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
1.06k
        return Status::OK();
169
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
709
    Status finish(OwnedSlice* slice) override {
163
709
        if (_count > 0) {
164
660
            _first_value = cell(0);
165
660
            _last_value = cell(_count - 1);
166
660
        }
167
709
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
709
        return Status::OK();
169
709
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
623
    Status finish(OwnedSlice* slice) override {
163
623
        if (_count > 0) {
164
589
            _first_value = cell(0);
165
589
            _last_value = cell(_count - 1);
166
589
        }
167
623
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
623
        return Status::OK();
169
623
    }
170
171
1.86M
    Status reset() override {
172
1.86M
        RETURN_IF_CATCH_EXCEPTION({
173
1.86M
            size_t block_size = _options.data_page_size;
174
1.86M
            _count = 0;
175
1.86M
            _raw_data_size = 0;
176
1.86M
            _data.clear();
177
1.86M
            _data.reserve(block_size);
178
1.86M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.86M
                    << "buffer must be naturally-aligned";
180
1.86M
            _buffer.clear();
181
1.86M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.86M
            _finished = false;
183
1.86M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.86M
        });
185
1.87M
        return Status::OK();
186
1.86M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
1.03M
    Status reset() override {
172
1.03M
        RETURN_IF_CATCH_EXCEPTION({
173
1.03M
            size_t block_size = _options.data_page_size;
174
1.03M
            _count = 0;
175
1.03M
            _raw_data_size = 0;
176
1.03M
            _data.clear();
177
1.03M
            _data.reserve(block_size);
178
1.03M
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.03M
                    << "buffer must be naturally-aligned";
180
1.03M
            _buffer.clear();
181
1.03M
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.03M
            _finished = false;
183
1.03M
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.03M
        });
185
1.03M
        return Status::OK();
186
1.03M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
96.0k
    Status reset() override {
172
96.0k
        RETURN_IF_CATCH_EXCEPTION({
173
96.0k
            size_t block_size = _options.data_page_size;
174
96.0k
            _count = 0;
175
96.0k
            _raw_data_size = 0;
176
96.0k
            _data.clear();
177
96.0k
            _data.reserve(block_size);
178
96.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
96.0k
                    << "buffer must be naturally-aligned";
180
96.0k
            _buffer.clear();
181
96.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
96.0k
            _finished = false;
183
96.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
96.0k
        });
185
96.1k
        return Status::OK();
186
96.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
14.0k
    Status reset() override {
172
14.0k
        RETURN_IF_CATCH_EXCEPTION({
173
14.0k
            size_t block_size = _options.data_page_size;
174
14.0k
            _count = 0;
175
14.0k
            _raw_data_size = 0;
176
14.0k
            _data.clear();
177
14.0k
            _data.reserve(block_size);
178
14.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14.0k
                    << "buffer must be naturally-aligned";
180
14.0k
            _buffer.clear();
181
14.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14.0k
            _finished = false;
183
14.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14.0k
        });
185
14.0k
        return Status::OK();
186
14.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
252k
    Status reset() override {
172
252k
        RETURN_IF_CATCH_EXCEPTION({
173
252k
            size_t block_size = _options.data_page_size;
174
252k
            _count = 0;
175
252k
            _raw_data_size = 0;
176
252k
            _data.clear();
177
252k
            _data.reserve(block_size);
178
252k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
252k
                    << "buffer must be naturally-aligned";
180
252k
            _buffer.clear();
181
252k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
252k
            _finished = false;
183
252k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
252k
        });
185
252k
        return Status::OK();
186
252k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
135k
    Status reset() override {
172
135k
        RETURN_IF_CATCH_EXCEPTION({
173
135k
            size_t block_size = _options.data_page_size;
174
135k
            _count = 0;
175
135k
            _raw_data_size = 0;
176
135k
            _data.clear();
177
135k
            _data.reserve(block_size);
178
135k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
135k
                    << "buffer must be naturally-aligned";
180
135k
            _buffer.clear();
181
135k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
135k
            _finished = false;
183
135k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
135k
        });
185
135k
        return Status::OK();
186
135k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
17.7k
    Status reset() override {
172
17.7k
        RETURN_IF_CATCH_EXCEPTION({
173
17.7k
            size_t block_size = _options.data_page_size;
174
17.7k
            _count = 0;
175
17.7k
            _raw_data_size = 0;
176
17.7k
            _data.clear();
177
17.7k
            _data.reserve(block_size);
178
17.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
17.7k
                    << "buffer must be naturally-aligned";
180
17.7k
            _buffer.clear();
181
17.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
17.7k
            _finished = false;
183
17.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
17.7k
        });
185
17.7k
        return Status::OK();
186
17.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
22.7k
    Status reset() override {
172
22.7k
        RETURN_IF_CATCH_EXCEPTION({
173
22.7k
            size_t block_size = _options.data_page_size;
174
22.7k
            _count = 0;
175
22.7k
            _raw_data_size = 0;
176
22.7k
            _data.clear();
177
22.7k
            _data.reserve(block_size);
178
22.7k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22.7k
                    << "buffer must be naturally-aligned";
180
22.7k
            _buffer.clear();
181
22.7k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22.7k
            _finished = false;
183
22.7k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22.7k
        });
185
22.7k
        return Status::OK();
186
22.7k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
171
28.3k
    Status reset() override {
172
28.3k
        RETURN_IF_CATCH_EXCEPTION({
173
28.3k
            size_t block_size = _options.data_page_size;
174
28.3k
            _count = 0;
175
28.3k
            _raw_data_size = 0;
176
28.3k
            _data.clear();
177
28.3k
            _data.reserve(block_size);
178
28.3k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
28.3k
                    << "buffer must be naturally-aligned";
180
28.3k
            _buffer.clear();
181
28.3k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
28.3k
            _finished = false;
183
28.3k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
28.3k
        });
185
28.3k
        return Status::OK();
186
28.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
1.04k
    Status reset() override {
172
1.04k
        RETURN_IF_CATCH_EXCEPTION({
173
1.04k
            size_t block_size = _options.data_page_size;
174
1.04k
            _count = 0;
175
1.04k
            _raw_data_size = 0;
176
1.04k
            _data.clear();
177
1.04k
            _data.reserve(block_size);
178
1.04k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.04k
                    << "buffer must be naturally-aligned";
180
1.04k
            _buffer.clear();
181
1.04k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.04k
            _finished = false;
183
1.04k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.04k
        });
185
1.05k
        return Status::OK();
186
1.04k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
72.8k
    Status reset() override {
172
72.8k
        RETURN_IF_CATCH_EXCEPTION({
173
72.8k
            size_t block_size = _options.data_page_size;
174
72.8k
            _count = 0;
175
72.8k
            _raw_data_size = 0;
176
72.8k
            _data.clear();
177
72.8k
            _data.reserve(block_size);
178
72.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
72.8k
                    << "buffer must be naturally-aligned";
180
72.8k
            _buffer.clear();
181
72.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
72.8k
            _finished = false;
183
72.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
72.8k
        });
185
72.9k
        return Status::OK();
186
72.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
87.5k
    Status reset() override {
172
87.5k
        RETURN_IF_CATCH_EXCEPTION({
173
87.5k
            size_t block_size = _options.data_page_size;
174
87.5k
            _count = 0;
175
87.5k
            _raw_data_size = 0;
176
87.5k
            _data.clear();
177
87.5k
            _data.reserve(block_size);
178
87.5k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
87.5k
                    << "buffer must be naturally-aligned";
180
87.5k
            _buffer.clear();
181
87.5k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
87.5k
            _finished = false;
183
87.5k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
87.5k
        });
185
87.6k
        return Status::OK();
186
87.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
784
    Status reset() override {
172
784
        RETURN_IF_CATCH_EXCEPTION({
173
784
            size_t block_size = _options.data_page_size;
174
784
            _count = 0;
175
784
            _raw_data_size = 0;
176
784
            _data.clear();
177
784
            _data.reserve(block_size);
178
784
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
784
                    << "buffer must be naturally-aligned";
180
784
            _buffer.clear();
181
784
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
784
            _finished = false;
183
784
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
784
        });
185
784
        return Status::OK();
186
784
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
171
13.9k
    Status reset() override {
172
13.9k
        RETURN_IF_CATCH_EXCEPTION({
173
13.9k
            size_t block_size = _options.data_page_size;
174
13.9k
            _count = 0;
175
13.9k
            _raw_data_size = 0;
176
13.9k
            _data.clear();
177
13.9k
            _data.reserve(block_size);
178
13.9k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
13.9k
                    << "buffer must be naturally-aligned";
180
13.9k
            _buffer.clear();
181
13.9k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
13.9k
            _finished = false;
183
13.9k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
13.9k
        });
185
14.1k
        return Status::OK();
186
13.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
309
    Status reset() override {
172
309
        RETURN_IF_CATCH_EXCEPTION({
173
309
            size_t block_size = _options.data_page_size;
174
309
            _count = 0;
175
309
            _raw_data_size = 0;
176
309
            _data.clear();
177
309
            _data.reserve(block_size);
178
309
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
309
                    << "buffer must be naturally-aligned";
180
309
            _buffer.clear();
181
309
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
309
            _finished = false;
183
309
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
309
        });
185
309
        return Status::OK();
186
309
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
171
19.1k
    Status reset() override {
172
19.1k
        RETURN_IF_CATCH_EXCEPTION({
173
19.1k
            size_t block_size = _options.data_page_size;
174
19.1k
            _count = 0;
175
19.1k
            _raw_data_size = 0;
176
19.1k
            _data.clear();
177
19.1k
            _data.reserve(block_size);
178
19.1k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
19.1k
                    << "buffer must be naturally-aligned";
180
19.1k
            _buffer.clear();
181
19.1k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
19.1k
            _finished = false;
183
19.1k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
19.1k
        });
185
19.1k
        return Status::OK();
186
19.1k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
171
31.4k
    Status reset() override {
172
31.4k
        RETURN_IF_CATCH_EXCEPTION({
173
31.4k
            size_t block_size = _options.data_page_size;
174
31.4k
            _count = 0;
175
31.4k
            _raw_data_size = 0;
176
31.4k
            _data.clear();
177
31.4k
            _data.reserve(block_size);
178
31.4k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.4k
                    << "buffer must be naturally-aligned";
180
31.4k
            _buffer.clear();
181
31.4k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.4k
            _finished = false;
183
31.4k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.4k
        });
185
31.4k
        return Status::OK();
186
31.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
171
31.8k
    Status reset() override {
172
31.8k
        RETURN_IF_CATCH_EXCEPTION({
173
31.8k
            size_t block_size = _options.data_page_size;
174
31.8k
            _count = 0;
175
31.8k
            _raw_data_size = 0;
176
31.8k
            _data.clear();
177
31.8k
            _data.reserve(block_size);
178
31.8k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
31.8k
                    << "buffer must be naturally-aligned";
180
31.8k
            _buffer.clear();
181
31.8k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
31.8k
            _finished = false;
183
31.8k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
31.8k
        });
185
31.8k
        return Status::OK();
186
31.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
171
2.22k
    Status reset() override {
172
2.22k
        RETURN_IF_CATCH_EXCEPTION({
173
2.22k
            size_t block_size = _options.data_page_size;
174
2.22k
            _count = 0;
175
2.22k
            _raw_data_size = 0;
176
2.22k
            _data.clear();
177
2.22k
            _data.reserve(block_size);
178
2.22k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
2.22k
                    << "buffer must be naturally-aligned";
180
2.22k
            _buffer.clear();
181
2.22k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
2.22k
            _finished = false;
183
2.22k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
2.22k
        });
185
2.22k
        return Status::OK();
186
2.22k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
171
1.50k
    Status reset() override {
172
1.50k
        RETURN_IF_CATCH_EXCEPTION({
173
1.50k
            size_t block_size = _options.data_page_size;
174
1.50k
            _count = 0;
175
1.50k
            _raw_data_size = 0;
176
1.50k
            _data.clear();
177
1.50k
            _data.reserve(block_size);
178
1.50k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.50k
                    << "buffer must be naturally-aligned";
180
1.50k
            _buffer.clear();
181
1.50k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.50k
            _finished = false;
183
1.50k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.50k
        });
185
1.50k
        return Status::OK();
186
1.50k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
171
1.33k
    Status reset() override {
172
1.33k
        RETURN_IF_CATCH_EXCEPTION({
173
1.33k
            size_t block_size = _options.data_page_size;
174
1.33k
            _count = 0;
175
1.33k
            _raw_data_size = 0;
176
1.33k
            _data.clear();
177
1.33k
            _data.reserve(block_size);
178
1.33k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.33k
                    << "buffer must be naturally-aligned";
180
1.33k
            _buffer.clear();
181
1.33k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.33k
            _finished = false;
183
1.33k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.33k
        });
185
1.33k
        return Status::OK();
186
1.33k
    }
187
188
1.27M
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
1.27M
    size_t count() const override { return _count; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5countEv
189
190
29.8k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
16.4k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
2.28k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
603
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
2.18k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
764
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
885
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
702
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
190
751
    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.53k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
2.04k
    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
135
    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.09k
    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
480k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
62.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
47.5k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
6.77k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
127k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
67.6k
    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
8.73k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
10.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
192
14.1k
    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
531
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
36.8k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
43.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
469
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
192
7.07k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
110
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
192
9.57k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
192
19.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
192
15.9k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
192
1.06k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
192
709
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
192
623
    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
783k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
371k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
48.5k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7.25k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
125k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
67.6k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
8.98k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
14.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
517
            : _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
44.3k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
315
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
6.95k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
199
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
9.58k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
12.2k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
15.8k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
1.16k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
797
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
709
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
214
215
776k
    OwnedSlice _finish(int final_size_of_type) {
216
776k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
776k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
776k
        int padding_elems = num_elems_after_padding - _count;
221
776k
        int padding_bytes = padding_elems * final_size_of_type;
222
22.6M
        for (int i = 0; i < padding_bytes; i++) {
223
21.8M
            _data.push_back(0);
224
21.8M
        }
225
226
        // reserve enough place for compression
227
776k
        _buffer.resize(
228
776k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
776k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
776k
        int64_t bytes =
232
776k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
776k
                                         num_elems_after_padding, final_size_of_type, 0);
234
776k
        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
776k
        encode_fixed32_le(&_buffer[0], _count);
244
776k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
776k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
776k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
776k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
776k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
776k
        return _buffer.build();
251
776k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_finishEi
Line
Count
Source
215
357k
    OwnedSlice _finish(int final_size_of_type) {
216
357k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
357k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
357k
        int padding_elems = num_elems_after_padding - _count;
221
357k
        int padding_bytes = padding_elems * final_size_of_type;
222
6.80M
        for (int i = 0; i < padding_bytes; i++) {
223
6.44M
            _data.push_back(0);
224
6.44M
        }
225
226
        // reserve enough place for compression
227
357k
        _buffer.resize(
228
357k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
357k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
357k
        int64_t bytes =
232
357k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
357k
                                         num_elems_after_padding, final_size_of_type, 0);
234
357k
        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
357k
        encode_fixed32_le(&_buffer[0], _count);
244
357k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
357k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
357k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
357k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
357k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
357k
        return _buffer.build();
251
357k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
47.5k
    OwnedSlice _finish(int final_size_of_type) {
216
47.5k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
47.5k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
47.5k
        int padding_elems = num_elems_after_padding - _count;
221
47.5k
        int padding_bytes = padding_elems * final_size_of_type;
222
309k
        for (int i = 0; i < padding_bytes; i++) {
223
261k
            _data.push_back(0);
224
261k
        }
225
226
        // reserve enough place for compression
227
47.5k
        _buffer.resize(
228
47.5k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
47.5k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
47.5k
        int64_t bytes =
232
47.5k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
47.5k
                                         num_elems_after_padding, final_size_of_type, 0);
234
47.5k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
47.5k
        encode_fixed32_le(&_buffer[0], _count);
244
47.5k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
47.5k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
47.5k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
47.5k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
47.5k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
47.5k
        return _buffer.build();
251
47.5k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
6.77k
    OwnedSlice _finish(int final_size_of_type) {
216
6.77k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
6.77k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
6.77k
        int padding_elems = num_elems_after_padding - _count;
221
6.77k
        int padding_bytes = padding_elems * final_size_of_type;
222
75.2k
        for (int i = 0; i < padding_bytes; i++) {
223
68.4k
            _data.push_back(0);
224
68.4k
        }
225
226
        // reserve enough place for compression
227
6.77k
        _buffer.resize(
228
6.77k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
6.77k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
6.77k
        int64_t bytes =
232
6.77k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
6.77k
                                         num_elems_after_padding, final_size_of_type, 0);
234
6.77k
        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
6.77k
        encode_fixed32_le(&_buffer[0], _count);
244
6.77k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
6.77k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
6.77k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
6.77k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
6.77k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
6.77k
        return _buffer.build();
251
6.77k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
127k
    OwnedSlice _finish(int final_size_of_type) {
216
127k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
127k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
127k
        int padding_elems = num_elems_after_padding - _count;
221
127k
        int padding_bytes = padding_elems * final_size_of_type;
222
5.82M
        for (int i = 0; i < padding_bytes; i++) {
223
5.70M
            _data.push_back(0);
224
5.70M
        }
225
226
        // reserve enough place for compression
227
127k
        _buffer.resize(
228
127k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
127k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
127k
        int64_t bytes =
232
127k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
127k
                                         num_elems_after_padding, final_size_of_type, 0);
234
127k
        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
127k
        encode_fixed32_le(&_buffer[0], _count);
244
127k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
127k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
127k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
127k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
127k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
127k
        return _buffer.build();
251
127k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
67.6k
    OwnedSlice _finish(int final_size_of_type) {
216
67.6k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
67.6k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
67.6k
        int padding_elems = num_elems_after_padding - _count;
221
67.6k
        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
67.6k
        _buffer.resize(
228
67.6k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
67.6k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
67.6k
        int64_t bytes =
232
67.6k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
67.6k
                                         num_elems_after_padding, final_size_of_type, 0);
234
67.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
67.6k
        encode_fixed32_le(&_buffer[0], _count);
244
67.6k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
67.6k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
67.6k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
67.6k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
67.6k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
67.6k
        return _buffer.build();
251
67.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
8.73k
    OwnedSlice _finish(int final_size_of_type) {
216
8.73k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
8.73k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
8.73k
        int padding_elems = num_elems_after_padding - _count;
221
8.73k
        int padding_bytes = padding_elems * final_size_of_type;
222
640k
        for (int i = 0; i < padding_bytes; i++) {
223
631k
            _data.push_back(0);
224
631k
        }
225
226
        // reserve enough place for compression
227
8.73k
        _buffer.resize(
228
8.73k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
8.73k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
8.73k
        int64_t bytes =
232
8.73k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
8.73k
                                         num_elems_after_padding, final_size_of_type, 0);
234
8.73k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
8.73k
        encode_fixed32_le(&_buffer[0], _count);
244
8.73k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
8.73k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
8.73k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
8.73k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
8.73k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
8.73k
        return _buffer.build();
251
8.73k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
10.9k
    OwnedSlice _finish(int final_size_of_type) {
216
10.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
10.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
10.9k
        int padding_elems = num_elems_after_padding - _count;
221
10.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
238k
        for (int i = 0; i < padding_bytes; i++) {
223
227k
            _data.push_back(0);
224
227k
        }
225
226
        // reserve enough place for compression
227
10.9k
        _buffer.resize(
228
10.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
10.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
10.9k
        int64_t bytes =
232
10.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
10.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
10.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
10.9k
        encode_fixed32_le(&_buffer[0], _count);
244
10.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
10.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
10.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
10.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
10.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
10.9k
        return _buffer.build();
251
10.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Line
Count
Source
215
14.1k
    OwnedSlice _finish(int final_size_of_type) {
216
14.1k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
14.1k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
14.1k
        int padding_elems = num_elems_after_padding - _count;
221
14.1k
        int padding_bytes = padding_elems * final_size_of_type;
222
583k
        for (int i = 0; i < padding_bytes; i++) {
223
568k
            _data.push_back(0);
224
568k
        }
225
226
        // reserve enough place for compression
227
14.1k
        _buffer.resize(
228
14.1k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
14.1k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
14.1k
        int64_t bytes =
232
14.1k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
14.1k
                                         num_elems_after_padding, final_size_of_type, 0);
234
14.1k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
14.1k
        encode_fixed32_le(&_buffer[0], _count);
244
14.1k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
14.1k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
14.1k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
14.1k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
14.1k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
14.1k
        return _buffer.build();
251
14.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
531
    OwnedSlice _finish(int final_size_of_type) {
216
531
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
531
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
531
        int padding_elems = num_elems_after_padding - _count;
221
531
        int padding_bytes = padding_elems * final_size_of_type;
222
9.47k
        for (int i = 0; i < padding_bytes; i++) {
223
8.94k
            _data.push_back(0);
224
8.94k
        }
225
226
        // reserve enough place for compression
227
531
        _buffer.resize(
228
531
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
531
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
531
        int64_t bytes =
232
531
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
531
                                         num_elems_after_padding, final_size_of_type, 0);
234
531
        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
531
        encode_fixed32_le(&_buffer[0], _count);
244
531
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
531
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
531
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
531
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
531
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
531
        return _buffer.build();
251
531
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
36.8k
    OwnedSlice _finish(int final_size_of_type) {
216
36.8k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
36.8k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
36.8k
        int padding_elems = num_elems_after_padding - _count;
221
36.8k
        int padding_bytes = padding_elems * final_size_of_type;
222
784k
        for (int i = 0; i < padding_bytes; i++) {
223
747k
            _data.push_back(0);
224
747k
        }
225
226
        // reserve enough place for compression
227
36.8k
        _buffer.resize(
228
36.8k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
36.8k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
36.8k
        int64_t bytes =
232
36.8k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
36.8k
                                         num_elems_after_padding, final_size_of_type, 0);
234
36.8k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
36.8k
        encode_fixed32_le(&_buffer[0], _count);
244
36.8k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
36.8k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
36.8k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
36.8k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
36.8k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
36.8k
        return _buffer.build();
251
36.8k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
43.2k
    OwnedSlice _finish(int final_size_of_type) {
216
43.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
43.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
43.2k
        int padding_elems = num_elems_after_padding - _count;
221
43.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.85M
        for (int i = 0; i < padding_bytes; i++) {
223
1.81M
            _data.push_back(0);
224
1.81M
        }
225
226
        // reserve enough place for compression
227
43.2k
        _buffer.resize(
228
43.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
43.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
43.2k
        int64_t bytes =
232
43.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
43.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
43.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
43.2k
        encode_fixed32_le(&_buffer[0], _count);
244
43.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
43.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
43.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
43.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
43.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
43.2k
        return _buffer.build();
251
43.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
469
    OwnedSlice _finish(int final_size_of_type) {
216
469
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
469
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
469
        int padding_elems = num_elems_after_padding - _count;
221
469
        int padding_bytes = padding_elems * final_size_of_type;
222
8.06k
        for (int i = 0; i < padding_bytes; i++) {
223
7.59k
            _data.push_back(0);
224
7.59k
        }
225
226
        // reserve enough place for compression
227
469
        _buffer.resize(
228
469
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
469
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
469
        int64_t bytes =
232
469
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
469
                                         num_elems_after_padding, final_size_of_type, 0);
234
469
        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
469
        encode_fixed32_le(&_buffer[0], _count);
244
469
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
469
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
469
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
469
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
469
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
469
        return _buffer.build();
251
469
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
Line
Count
Source
215
7.07k
    OwnedSlice _finish(int final_size_of_type) {
216
7.07k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7.07k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7.07k
        int padding_elems = num_elems_after_padding - _count;
221
7.07k
        int padding_bytes = padding_elems * final_size_of_type;
222
370k
        for (int i = 0; i < padding_bytes; i++) {
223
363k
            _data.push_back(0);
224
363k
        }
225
226
        // reserve enough place for compression
227
7.07k
        _buffer.resize(
228
7.07k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7.07k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7.07k
        int64_t bytes =
232
7.07k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7.07k
                                         num_elems_after_padding, final_size_of_type, 0);
234
7.07k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
7.07k
        encode_fixed32_le(&_buffer[0], _count);
244
7.07k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7.07k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7.07k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7.07k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7.07k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7.07k
        return _buffer.build();
251
7.07k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
110
    OwnedSlice _finish(int final_size_of_type) {
216
110
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
110
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
110
        int padding_elems = num_elems_after_padding - _count;
221
110
        int padding_bytes = padding_elems * final_size_of_type;
222
6.63k
        for (int i = 0; i < padding_bytes; i++) {
223
6.52k
            _data.push_back(0);
224
6.52k
        }
225
226
        // reserve enough place for compression
227
110
        _buffer.resize(
228
110
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
110
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
110
        int64_t bytes =
232
110
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
110
                                         num_elems_after_padding, final_size_of_type, 0);
234
110
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
110
        encode_fixed32_le(&_buffer[0], _count);
244
110
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
110
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
110
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
110
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
110
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
110
        return _buffer.build();
251
110
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Line
Count
Source
215
9.57k
    OwnedSlice _finish(int final_size_of_type) {
216
9.57k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
9.57k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
9.57k
        int padding_elems = num_elems_after_padding - _count;
221
9.57k
        int padding_bytes = padding_elems * final_size_of_type;
222
115k
        for (int i = 0; i < padding_bytes; i++) {
223
106k
            _data.push_back(0);
224
106k
        }
225
226
        // reserve enough place for compression
227
9.57k
        _buffer.resize(
228
9.57k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
9.57k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
9.57k
        int64_t bytes =
232
9.57k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
9.57k
                                         num_elems_after_padding, final_size_of_type, 0);
234
9.57k
        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.57k
        encode_fixed32_le(&_buffer[0], _count);
244
9.57k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
9.57k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
9.57k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
9.57k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
9.57k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
9.57k
        return _buffer.build();
251
9.57k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Line
Count
Source
215
19.2k
    OwnedSlice _finish(int final_size_of_type) {
216
19.2k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
19.2k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
19.2k
        int padding_elems = num_elems_after_padding - _count;
221
19.2k
        int padding_bytes = padding_elems * final_size_of_type;
222
497k
        for (int i = 0; i < padding_bytes; i++) {
223
478k
            _data.push_back(0);
224
478k
        }
225
226
        // reserve enough place for compression
227
19.2k
        _buffer.resize(
228
19.2k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
19.2k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
19.2k
        int64_t bytes =
232
19.2k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
19.2k
                                         num_elems_after_padding, final_size_of_type, 0);
234
19.2k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
19.2k
        encode_fixed32_le(&_buffer[0], _count);
244
19.2k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
19.2k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
19.2k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
19.2k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
19.2k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
19.2k
        return _buffer.build();
251
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Line
Count
Source
215
15.9k
    OwnedSlice _finish(int final_size_of_type) {
216
15.9k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
15.9k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
15.9k
        int padding_elems = num_elems_after_padding - _count;
221
15.9k
        int padding_bytes = padding_elems * final_size_of_type;
222
1.09M
        for (int i = 0; i < padding_bytes; i++) {
223
1.07M
            _data.push_back(0);
224
1.07M
        }
225
226
        // reserve enough place for compression
227
15.9k
        _buffer.resize(
228
15.9k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
15.9k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
15.9k
        int64_t bytes =
232
15.9k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
15.9k
                                         num_elems_after_padding, final_size_of_type, 0);
234
15.9k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
15.9k
        encode_fixed32_le(&_buffer[0], _count);
244
15.9k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
15.9k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
15.9k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
15.9k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
15.9k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
15.9k
        return _buffer.build();
251
15.9k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Line
Count
Source
215
1.06k
    OwnedSlice _finish(int final_size_of_type) {
216
1.06k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
1.06k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
1.06k
        int padding_elems = num_elems_after_padding - _count;
221
1.06k
        int padding_bytes = padding_elems * final_size_of_type;
222
162k
        for (int i = 0; i < padding_bytes; i++) {
223
161k
            _data.push_back(0);
224
161k
        }
225
226
        // reserve enough place for compression
227
1.06k
        _buffer.resize(
228
1.06k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
1.06k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
1.06k
        int64_t bytes =
232
1.06k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
1.06k
                                         num_elems_after_padding, final_size_of_type, 0);
234
1.06k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
1.06k
        encode_fixed32_le(&_buffer[0], _count);
244
1.06k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
1.06k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
1.06k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
1.06k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
1.06k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
1.06k
        return _buffer.build();
251
1.06k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Line
Count
Source
215
709
    OwnedSlice _finish(int final_size_of_type) {
216
709
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
709
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
709
        int padding_elems = num_elems_after_padding - _count;
221
709
        int padding_bytes = padding_elems * final_size_of_type;
222
14.9k
        for (int i = 0; i < padding_bytes; i++) {
223
14.2k
            _data.push_back(0);
224
14.2k
        }
225
226
        // reserve enough place for compression
227
709
        _buffer.resize(
228
709
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
709
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
709
        int64_t bytes =
232
709
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
709
                                         num_elems_after_padding, final_size_of_type, 0);
234
709
        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
709
        encode_fixed32_le(&_buffer[0], _count);
244
709
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
709
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
709
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
709
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
709
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
709
        return _buffer.build();
251
709
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
Line
Count
Source
215
623
    OwnedSlice _finish(int final_size_of_type) {
216
623
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
623
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
623
        int padding_elems = num_elems_after_padding - _count;
221
623
        int padding_bytes = padding_elems * final_size_of_type;
222
50.6k
        for (int i = 0; i < padding_bytes; i++) {
223
50.0k
            _data.push_back(0);
224
50.0k
        }
225
226
        // reserve enough place for compression
227
623
        _buffer.resize(
228
623
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
623
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
623
        int64_t bytes =
232
623
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
623
                                         num_elems_after_padding, final_size_of_type, 0);
234
623
        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
623
        encode_fixed32_le(&_buffer[0], _count);
244
623
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
623
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
623
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
623
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
623
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
623
        return _buffer.build();
251
623
    }
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
1.45M
    CppType cell(int idx) const {
256
1.45M
        DCHECK_GE(idx, 0);
257
1.45M
        CppType ret;
258
1.45M
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.45M
        return ret;
260
1.45M
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
645k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
645k
        CppType ret;
258
645k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
645k
        return ret;
260
645k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
93.9k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
93.9k
        CppType ret;
258
93.9k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
93.9k
        return ret;
260
93.9k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
13.3k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.3k
        CppType ret;
258
13.3k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.3k
        return ret;
260
13.3k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
250k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
250k
        CppType ret;
258
250k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
250k
        return ret;
260
250k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
135k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
135k
        CppType ret;
258
135k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
135k
        return ret;
260
135k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
16.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
16.8k
        CppType ret;
258
16.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
16.8k
        return ret;
260
16.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
21.1k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
21.1k
        CppType ret;
258
21.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
21.1k
        return ret;
260
21.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Line
Count
Source
255
27.5k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
27.5k
        CppType ret;
258
27.5k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
27.5k
        return ret;
260
27.5k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
1.01k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.01k
        CppType ret;
258
1.01k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.01k
        return ret;
260
1.01k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
71.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
71.7k
        CppType ret;
258
71.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
71.7k
        return ret;
260
71.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
83.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
83.7k
        CppType ret;
258
83.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
83.7k
        return ret;
260
83.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
738
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
738
        CppType ret;
258
738
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
738
        return ret;
260
738
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
Line
Count
Source
255
13.7k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
13.7k
        CppType ret;
258
13.7k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
13.7k
        return ret;
260
13.7k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
204
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
204
        CppType ret;
258
204
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
204
        return ret;
260
204
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Line
Count
Source
255
9.34k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
9.34k
        CppType ret;
258
9.34k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
9.34k
        return ret;
260
9.34k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Line
Count
Source
255
36.6k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
36.6k
        CppType ret;
258
36.6k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
36.6k
        return ret;
260
36.6k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Line
Count
Source
255
31.0k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
31.0k
        CppType ret;
258
31.0k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
31.0k
        return ret;
260
31.0k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Line
Count
Source
255
2.02k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
2.02k
        CppType ret;
258
2.02k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
2.02k
        return ret;
260
2.02k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Line
Count
Source
255
1.32k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.32k
        CppType ret;
258
1.32k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.32k
        return ret;
260
1.32k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
Line
Count
Source
255
1.17k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.17k
        CppType ret;
258
1.17k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.17k
        return ret;
260
1.17k
    }
261
262
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
263
    PageBuilderOptions _options;
264
    uint32_t _count;
265
    uint32_t _remain_element_capacity;
266
    bool _finished;
267
    faststring _data;
268
    faststring _buffer;
269
    CppType _first_value;
270
    CppType _last_value;
271
    uint64_t _raw_data_size = 0;
272
};
273
274
inline Status parse_bit_shuffle_header(const Slice& data, size_t& num_elements,
275
                                       size_t& compressed_size, size_t& num_element_after_padding,
276
2.96M
                                       int& size_of_element) {
277
2.96M
    if (data.size < BITSHUFFLE_PAGE_HEADER_SIZE) {
278
0
        return Status::InternalError("file corruption: invalid data size:{}, header size:{}",
279
0
                                     data.size, BITSHUFFLE_PAGE_HEADER_SIZE);
280
0
    }
281
282
2.96M
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
2.96M
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
2.96M
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
2.96M
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
2.96M
    if (num_element_after_padding != ALIGN_UP(num_elements, 8)) {
287
0
        return Status::InternalError(
288
0
                "num of element information corrupted,"
289
0
                " _num_element_after_padding:{}, _num_elements:{}, expected_padding:{},"
290
0
                " compressed_size:{}, size_of_element:{}, data_size:{}",
291
0
                num_element_after_padding, num_elements, ALIGN_UP(num_elements, 8), compressed_size,
292
0
                size_of_element, data.size);
293
0
    }
294
2.96M
    switch (size_of_element) {
295
175k
    case 1:
296
214k
    case 2:
297
218k
    case 3:
298
1.80M
    case 4:
299
2.87M
    case 8:
300
2.87M
    case 12:
301
2.96M
    case 16:
302
2.97M
    case 32:
303
2.97M
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
2.96M
    }
307
2.96M
    return Status::OK();
308
2.96M
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
1.48M
            : _data(data),
315
1.48M
              _options(options),
316
1.48M
              _parsed(false),
317
1.48M
              _num_elements(0),
318
1.48M
              _num_element_after_padding(0),
319
1.48M
              _size_of_element(0),
320
1.48M
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
698k
            : _data(data),
315
698k
              _options(options),
316
698k
              _parsed(false),
317
698k
              _num_elements(0),
318
698k
              _num_element_after_padding(0),
319
698k
              _size_of_element(0),
320
698k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
87.7k
            : _data(data),
315
87.7k
              _options(options),
316
87.7k
              _parsed(false),
317
87.7k
              _num_elements(0),
318
87.7k
              _num_element_after_padding(0),
319
87.7k
              _size_of_element(0),
320
87.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.2k
            : _data(data),
315
19.2k
              _options(options),
316
19.2k
              _parsed(false),
317
19.2k
              _num_elements(0),
318
19.2k
              _num_element_after_padding(0),
319
19.2k
              _size_of_element(0),
320
19.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
280k
            : _data(data),
315
280k
              _options(options),
316
280k
              _parsed(false),
317
280k
              _num_elements(0),
318
280k
              _num_element_after_padding(0),
319
280k
              _size_of_element(0),
320
280k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
92.9k
            : _data(data),
315
92.9k
              _options(options),
316
92.9k
              _parsed(false),
317
92.9k
              _num_elements(0),
318
92.9k
              _num_element_after_padding(0),
319
92.9k
              _size_of_element(0),
320
92.9k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
13.2k
            : _data(data),
315
13.2k
              _options(options),
316
13.2k
              _parsed(false),
317
13.2k
              _num_elements(0),
318
13.2k
              _num_element_after_padding(0),
319
13.2k
              _size_of_element(0),
320
13.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
19.7k
            : _data(data),
315
19.7k
              _options(options),
316
19.7k
              _parsed(false),
317
19.7k
              _num_elements(0),
318
19.7k
              _num_element_after_padding(0),
319
19.7k
              _size_of_element(0),
320
19.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
29.6k
            : _data(data),
315
29.6k
              _options(options),
316
29.6k
              _parsed(false),
317
29.6k
              _num_elements(0),
318
29.6k
              _num_element_after_padding(0),
319
29.6k
              _size_of_element(0),
320
29.6k
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.14k
            : _data(data),
315
2.14k
              _options(options),
316
2.14k
              _parsed(false),
317
2.14k
              _num_elements(0),
318
2.14k
              _num_element_after_padding(0),
319
2.14k
              _size_of_element(0),
320
2.14k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
60.7k
            : _data(data),
315
60.7k
              _options(options),
316
60.7k
              _parsed(false),
317
60.7k
              _num_elements(0),
318
60.7k
              _num_element_after_padding(0),
319
60.7k
              _size_of_element(0),
320
60.7k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
67.8k
            : _data(data),
315
67.8k
              _options(options),
316
67.8k
              _parsed(false),
317
67.8k
              _num_elements(0),
318
67.8k
              _num_element_after_padding(0),
319
67.8k
              _size_of_element(0),
320
67.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
2.83k
            : _data(data),
315
2.83k
              _options(options),
316
2.83k
              _parsed(false),
317
2.83k
              _num_elements(0),
318
2.83k
              _num_element_after_padding(0),
319
2.83k
              _size_of_element(0),
320
2.83k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
14.8k
            : _data(data),
315
14.8k
              _options(options),
316
14.8k
              _parsed(false),
317
14.8k
              _num_elements(0),
318
14.8k
              _num_element_after_padding(0),
319
14.8k
              _size_of_element(0),
320
14.8k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.42k
            : _data(data),
315
1.42k
              _options(options),
316
1.42k
              _parsed(false),
317
1.42k
              _num_elements(0),
318
1.42k
              _num_element_after_padding(0),
319
1.42k
              _size_of_element(0),
320
1.42k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
15.2k
            : _data(data),
315
15.2k
              _options(options),
316
15.2k
              _parsed(false),
317
15.2k
              _num_elements(0),
318
15.2k
              _num_element_after_padding(0),
319
15.2k
              _size_of_element(0),
320
15.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
44.1k
            : _data(data),
315
44.1k
              _options(options),
316
44.1k
              _parsed(false),
317
44.1k
              _num_elements(0),
318
44.1k
              _num_element_after_padding(0),
319
44.1k
              _size_of_element(0),
320
44.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
30.9k
            : _data(data),
315
30.9k
              _options(options),
316
30.9k
              _parsed(false),
317
30.9k
              _num_elements(0),
318
30.9k
              _num_element_after_padding(0),
319
30.9k
              _size_of_element(0),
320
30.9k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.75k
            : _data(data),
315
1.75k
              _options(options),
316
1.75k
              _parsed(false),
317
1.75k
              _num_elements(0),
318
1.75k
              _num_element_after_padding(0),
319
1.75k
              _size_of_element(0),
320
1.75k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.20k
            : _data(data),
315
1.20k
              _options(options),
316
1.20k
              _parsed(false),
317
1.20k
              _num_elements(0),
318
1.20k
              _num_element_after_padding(0),
319
1.20k
              _size_of_element(0),
320
1.20k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
1.15k
            : _data(data),
315
1.15k
              _options(options),
316
1.15k
              _parsed(false),
317
1.15k
              _num_elements(0),
318
1.15k
              _num_element_after_padding(0),
319
1.15k
              _size_of_element(0),
320
1.15k
              _cur_index(0) {}
321
322
1.48M
    Status init() override {
323
1.48M
        CHECK(!_parsed);
324
1.48M
        size_t unused;
325
1.48M
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.48M
                                                 _num_element_after_padding, _size_of_element));
327
328
1.48M
        if (_data.size !=
329
1.48M
            _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.48M
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.48M
                     _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.48M
        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.48M
        _parsed = true;
349
1.48M
        return Status::OK();
350
1.48M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
697k
    Status init() override {
323
697k
        CHECK(!_parsed);
324
697k
        size_t unused;
325
697k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
697k
                                                 _num_element_after_padding, _size_of_element));
327
328
697k
        if (_data.size !=
329
697k
            _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
697k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
697k
                     _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
697k
        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
697k
        _parsed = true;
349
697k
        return Status::OK();
350
697k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
87.6k
    Status init() override {
323
87.6k
        CHECK(!_parsed);
324
87.6k
        size_t unused;
325
87.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
87.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
87.6k
        if (_data.size !=
329
87.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
87.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
87.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
87.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
87.6k
        _parsed = true;
349
87.6k
        return Status::OK();
350
87.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
19.2k
    Status init() override {
323
19.2k
        CHECK(!_parsed);
324
19.2k
        size_t unused;
325
19.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.2k
        if (_data.size !=
329
19.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
19.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.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
19.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
19.2k
        _parsed = true;
349
19.2k
        return Status::OK();
350
19.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
280k
    Status init() override {
323
280k
        CHECK(!_parsed);
324
280k
        size_t unused;
325
280k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
280k
                                                 _num_element_after_padding, _size_of_element));
327
328
280k
        if (_data.size !=
329
280k
            _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
280k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
280k
                     _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
280k
        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
280k
        _parsed = true;
349
280k
        return Status::OK();
350
280k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
92.8k
    Status init() override {
323
92.8k
        CHECK(!_parsed);
324
92.8k
        size_t unused;
325
92.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
92.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
92.8k
        if (_data.size !=
329
92.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
92.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
92.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
92.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
92.8k
        _parsed = true;
349
92.8k
        return Status::OK();
350
92.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
322
13.2k
    Status init() override {
323
13.2k
        CHECK(!_parsed);
324
13.2k
        size_t unused;
325
13.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
13.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
13.2k
        if (_data.size !=
329
13.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
13.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
13.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
13.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
13.2k
        _parsed = true;
349
13.2k
        return Status::OK();
350
13.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
19.7k
    Status init() override {
323
19.7k
        CHECK(!_parsed);
324
19.7k
        size_t unused;
325
19.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
19.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
19.7k
        if (_data.size !=
329
19.7k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
19.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
19.7k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
19.7k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
19.7k
        _parsed = true;
349
19.7k
        return Status::OK();
350
19.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
322
29.6k
    Status init() override {
323
29.6k
        CHECK(!_parsed);
324
29.6k
        size_t unused;
325
29.6k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
29.6k
                                                 _num_element_after_padding, _size_of_element));
327
328
29.6k
        if (_data.size !=
329
29.6k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
29.6k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
29.6k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
29.6k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
29.6k
        _parsed = true;
349
29.6k
        return Status::OK();
350
29.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
2.14k
    Status init() override {
323
2.14k
        CHECK(!_parsed);
324
2.14k
        size_t unused;
325
2.14k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.14k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.14k
        if (_data.size !=
329
2.14k
            _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.14k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.14k
                     _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.14k
        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.14k
        _parsed = true;
349
2.14k
        return Status::OK();
350
2.14k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
60.7k
    Status init() override {
323
60.7k
        CHECK(!_parsed);
324
60.7k
        size_t unused;
325
60.7k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
60.7k
                                                 _num_element_after_padding, _size_of_element));
327
328
60.7k
        if (_data.size !=
329
60.7k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
60.7k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
60.7k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
60.7k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
60.7k
        _parsed = true;
349
60.7k
        return Status::OK();
350
60.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
67.8k
    Status init() override {
323
67.8k
        CHECK(!_parsed);
324
67.8k
        size_t unused;
325
67.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
67.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
67.8k
        if (_data.size !=
329
67.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
67.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
67.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
67.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
67.8k
        _parsed = true;
349
67.8k
        return Status::OK();
350
67.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
2.82k
    Status init() override {
323
2.82k
        CHECK(!_parsed);
324
2.82k
        size_t unused;
325
2.82k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
2.82k
                                                 _num_element_after_padding, _size_of_element));
327
328
2.82k
        if (_data.size !=
329
2.82k
            _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.82k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
2.82k
                     _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.82k
        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.82k
        _parsed = true;
349
2.82k
        return Status::OK();
350
2.82k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
322
14.8k
    Status init() override {
323
14.8k
        CHECK(!_parsed);
324
14.8k
        size_t unused;
325
14.8k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
14.8k
                                                 _num_element_after_padding, _size_of_element));
327
328
14.8k
        if (_data.size !=
329
14.8k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
14.8k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
14.8k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
14.8k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
14.8k
        _parsed = true;
349
14.8k
        return Status::OK();
350
14.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
1.42k
    Status init() override {
323
1.42k
        CHECK(!_parsed);
324
1.42k
        size_t unused;
325
1.42k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.42k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.42k
        if (_data.size !=
329
1.42k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.42k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.42k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.42k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.42k
        _parsed = true;
349
1.42k
        return Status::OK();
350
1.42k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
322
15.2k
    Status init() override {
323
15.2k
        CHECK(!_parsed);
324
15.2k
        size_t unused;
325
15.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
15.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
15.2k
        if (_data.size !=
329
15.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
15.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
15.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
15.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
15.2k
        _parsed = true;
349
15.2k
        return Status::OK();
350
15.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
44.0k
    Status init() override {
323
44.0k
        CHECK(!_parsed);
324
44.0k
        size_t unused;
325
44.0k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
44.0k
                                                 _num_element_after_padding, _size_of_element));
327
328
44.0k
        if (_data.size !=
329
44.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
44.0k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
44.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
44.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
44.0k
        _parsed = true;
349
44.0k
        return Status::OK();
350
44.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
30.9k
    Status init() override {
323
30.9k
        CHECK(!_parsed);
324
30.9k
        size_t unused;
325
30.9k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
30.9k
                                                 _num_element_after_padding, _size_of_element));
327
328
30.9k
        if (_data.size !=
329
30.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
30.9k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
30.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
30.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
30.9k
        _parsed = true;
349
30.9k
        return Status::OK();
350
30.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.20k
    Status init() override {
323
1.20k
        CHECK(!_parsed);
324
1.20k
        size_t unused;
325
1.20k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.20k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.20k
        if (_data.size !=
329
1.20k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.20k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.20k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.20k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.20k
        _parsed = true;
349
1.20k
        return Status::OK();
350
1.20k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
322
1.15k
    Status init() override {
323
1.15k
        CHECK(!_parsed);
324
1.15k
        size_t unused;
325
1.15k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
1.15k
                                                 _num_element_after_padding, _size_of_element));
327
328
1.15k
        if (_data.size !=
329
1.15k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
1.15k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
1.15k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
1.15k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
1.15k
        _parsed = true;
349
1.15k
        return Status::OK();
350
1.15k
    }
351
352
    // If the page only contains null, then _num_elements == 0, and the nullmap has
353
    // some value. But in _seek_columns --> seek_to_ordinal --> _seek_to_pos_in_page
354
    // in this call stack it will pass pos == 0 to this method. Although we can add some
355
    // code such as check if the count == 0, then skip seek, but there are other method such
356
    // as init will also call seek with pos == 0. And the seek is useless when _num_elements
357
    // == 0, because next batch will return empty in this method.
358
2.98M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
2.98M
        if (_num_elements == 0) [[unlikely]] {
361
15.4k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
15.4k
        }
366
367
2.98M
        DCHECK_LE(pos, _num_elements);
368
2.98M
        _cur_index = pos;
369
2.98M
        return Status::OK();
370
2.98M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
2.06M
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
2.06M
        if (_num_elements == 0) [[unlikely]] {
361
8.01k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
8.01k
        }
366
367
2.06M
        DCHECK_LE(pos, _num_elements);
368
2.06M
        _cur_index = pos;
369
2.06M
        return Status::OK();
370
2.06M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
95.0k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
95.0k
        if (_num_elements == 0) [[unlikely]] {
361
534
            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
534
        }
366
367
95.0k
        DCHECK_LE(pos, _num_elements);
368
95.0k
        _cur_index = pos;
369
95.0k
        return Status::OK();
370
95.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.97k
    Status seek_to_position_in_page(size_t pos) override {
359
1.97k
        DCHECK(_parsed) << "Must call init()";
360
1.97k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
1.97k
        DCHECK_LE(pos, _num_elements);
368
1.97k
        _cur_index = pos;
369
1.97k
        return Status::OK();
370
1.97k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
314k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
314k
        if (_num_elements == 0) [[unlikely]] {
361
1.05k
            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.05k
        }
366
367
314k
        DCHECK_LE(pos, _num_elements);
368
314k
        _cur_index = pos;
369
314k
        return Status::OK();
370
314k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.1k
    Status seek_to_position_in_page(size_t pos) override {
359
16.1k
        DCHECK(_parsed) << "Must call init()";
360
16.1k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
16.1k
        DCHECK_LE(pos, _num_elements);
368
16.1k
        _cur_index = pos;
369
16.1k
        return Status::OK();
370
16.1k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
358
3.70k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
3.70k
        if (_num_elements == 0) [[unlikely]] {
361
6
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
6
        }
366
367
3.70k
        DCHECK_LE(pos, _num_elements);
368
3.70k
        _cur_index = pos;
369
3.70k
        return Status::OK();
370
3.70k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
358
16.5k
    Status seek_to_position_in_page(size_t pos) override {
359
16.5k
        DCHECK(_parsed) << "Must call init()";
360
16.5k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
16.5k
        DCHECK_LE(pos, _num_elements);
368
16.5k
        _cur_index = pos;
369
16.5k
        return Status::OK();
370
16.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.0k
    Status seek_to_position_in_page(size_t pos) override {
359
12.0k
        DCHECK(_parsed) << "Must call init()";
360
12.0k
        if (_num_elements == 0) [[unlikely]] {
361
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
12.0k
        DCHECK_LE(pos, _num_elements);
368
12.0k
        _cur_index = pos;
369
12.0k
        return Status::OK();
370
12.0k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
20.5k
    Status seek_to_position_in_page(size_t pos) override {
359
20.5k
        DCHECK(_parsed) << "Must call init()";
360
20.5k
        if (_num_elements == 0) [[unlikely]] {
361
4
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
4
        }
366
367
20.5k
        DCHECK_LE(pos, _num_elements);
368
20.5k
        _cur_index = pos;
369
20.5k
        return Status::OK();
370
20.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
341k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
341k
        if (_num_elements == 0) [[unlikely]] {
361
777
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
777
        }
366
367
341k
        DCHECK_LE(pos, _num_elements);
368
341k
        _cur_index = pos;
369
341k
        return Status::OK();
370
341k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
44.5k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
44.5k
        if (_num_elements == 0) [[unlikely]] {
361
15
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
15
        }
366
367
44.5k
        DCHECK_LE(pos, _num_elements);
368
44.5k
        _cur_index = pos;
369
44.5k
        return Status::OK();
370
44.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.79k
    Status seek_to_position_in_page(size_t pos) override {
359
6.79k
        DCHECK(_parsed) << "Must call init()";
360
6.79k
        if (_num_elements == 0) [[unlikely]] {
361
16
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
16
        }
366
367
6.79k
        DCHECK_LE(pos, _num_elements);
368
6.79k
        _cur_index = pos;
369
6.79k
        return Status::OK();
370
6.79k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
358
6.70k
    Status seek_to_position_in_page(size_t pos) override {
359
6.70k
        DCHECK(_parsed) << "Must call init()";
360
6.70k
        if (_num_elements == 0) [[unlikely]] {
361
361
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
361
        }
366
367
6.70k
        DCHECK_LE(pos, _num_elements);
368
6.70k
        _cur_index = pos;
369
6.70k
        return Status::OK();
370
6.70k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
140
    Status seek_to_position_in_page(size_t pos) override {
359
140
        DCHECK(_parsed) << "Must call init()";
360
140
        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
140
        DCHECK_LE(pos, _num_elements);
368
140
        _cur_index = pos;
369
140
        return Status::OK();
370
140
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
358
800
    Status seek_to_position_in_page(size_t pos) override {
359
800
        DCHECK(_parsed) << "Must call init()";
360
800
        if (_num_elements == 0) [[unlikely]] {
361
30
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
30
        }
366
367
800
        DCHECK_LE(pos, _num_elements);
368
800
        _cur_index = pos;
369
800
        return Status::OK();
370
800
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
358
20.3k
    Status seek_to_position_in_page(size_t pos) override {
359
18.4E
        DCHECK(_parsed) << "Must call init()";
360
20.3k
        if (_num_elements == 0) [[unlikely]] {
361
3.53k
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
3.53k
        }
366
367
20.3k
        DCHECK_LE(pos, _num_elements);
368
20.3k
        _cur_index = pos;
369
20.3k
        return Status::OK();
370
20.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
358
12.6k
    Status seek_to_position_in_page(size_t pos) override {
359
12.6k
        DCHECK(_parsed) << "Must call init()";
360
12.6k
        if (_num_elements == 0) [[unlikely]] {
361
1.13k
            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.13k
        }
366
367
12.6k
        DCHECK_LE(pos, _num_elements);
368
12.6k
        _cur_index = pos;
369
12.6k
        return Status::OK();
370
12.6k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
358
1.94k
    Status seek_to_position_in_page(size_t pos) override {
359
1.94k
        DCHECK(_parsed) << "Must call init()";
360
1.94k
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
1.94k
        DCHECK_LE(pos, _num_elements);
368
1.94k
        _cur_index = pos;
369
1.94k
        return Status::OK();
370
1.94k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
358
68
    Status seek_to_position_in_page(size_t pos) override {
359
68
        DCHECK(_parsed) << "Must call init()";
360
68
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
68
        DCHECK_LE(pos, _num_elements);
368
68
        _cur_index = pos;
369
68
        return Status::OK();
370
68
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
Line
Count
Source
358
89
    Status seek_to_position_in_page(size_t pos) override {
359
89
        DCHECK(_parsed) << "Must call init()";
360
89
        if (_num_elements == 0) [[unlikely]] {
361
1
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
1
        }
366
367
89
        DCHECK_LE(pos, _num_elements);
368
89
        _cur_index = pos;
369
89
        return Status::OK();
370
89
    }
371
372
0
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
373
0
        DCHECK(_parsed) << "Must call init() firstly";
374
375
0
        if (_num_elements == 0) {
376
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
377
0
        }
378
379
0
        size_t left = 0;
380
0
        size_t right = _num_elements;
381
382
0
        void* mid_value = nullptr;
383
384
        // find the first value >= target. after loop,
385
        // - left == index of first value >= target when found
386
        // - left == _num_elements when not found (all values < target)
387
0
        while (left < right) {
388
0
            size_t mid = left + (right - left) / 2;
389
0
            mid_value = get_data(mid);
390
0
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
391
0
                left = mid + 1;
392
0
            } else {
393
0
                right = mid;
394
0
            }
395
0
        }
396
0
        if (left >= _num_elements) {
397
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
398
0
        }
399
0
        void* find_value = get_data(left);
400
0
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
401
0
            *exact_match = true;
402
0
        } else {
403
0
            *exact_match = false;
404
0
        }
405
406
0
        _cur_index = left;
407
0
        return Status::OK();
408
0
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb
409
410
    template <bool forward_index = true>
411
3.00M
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.00M
        DCHECK(_parsed);
413
3.00M
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.00M
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.00M
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.00M
        *n = max_fetch;
422
3.00M
        if constexpr (forward_index) {
423
2.20M
            _cur_index += max_fetch;
424
2.20M
        }
425
426
3.00M
        return Status::OK();
427
3.00M
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
438k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
438k
        DCHECK(_parsed);
413
438k
        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
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
504k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
504k
        DCHECK(_parsed);
413
505k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
504k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
504k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
504k
        *n = max_fetch;
422
504k
        if constexpr (forward_index) {
423
504k
            _cur_index += max_fetch;
424
504k
        }
425
426
504k
        return Status::OK();
427
504k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
12.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
12.8k
        DCHECK(_parsed);
413
12.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
12.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
12.8k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
12.8k
        *n = max_fetch;
422
12.8k
        if constexpr (forward_index) {
423
12.8k
            _cur_index += max_fetch;
424
12.8k
        }
425
426
12.8k
        return Status::OK();
427
12.8k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
129k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
129k
        DCHECK(_parsed);
413
129k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
129k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
129k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
129k
        *n = max_fetch;
422
129k
        if constexpr (forward_index) {
423
129k
            _cur_index += max_fetch;
424
129k
        }
425
426
129k
        return Status::OK();
427
129k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
446k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
446k
        DCHECK(_parsed);
413
446k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
446k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
446k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
446k
        *n = max_fetch;
422
446k
        if constexpr (forward_index) {
423
446k
            _cur_index += max_fetch;
424
446k
        }
425
426
446k
        return Status::OK();
427
446k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
791k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
791k
        DCHECK(_parsed);
413
791k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
791k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
791k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
791k
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
791k
        return Status::OK();
427
791k
    }
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
17.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
17.9k
        DCHECK(_parsed);
413
17.9k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
17.9k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
17.9k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
17.9k
        *n = max_fetch;
422
17.9k
        if constexpr (forward_index) {
423
17.9k
            _cur_index += max_fetch;
424
17.9k
        }
425
426
17.9k
        return Status::OK();
427
17.9k
    }
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.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.2k
        DCHECK(_parsed);
413
14.2k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.2k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.2k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.2k
        *n = max_fetch;
422
14.2k
        if constexpr (forward_index) {
423
14.2k
            _cur_index += max_fetch;
424
14.2k
        }
425
426
14.2k
        return Status::OK();
427
14.2k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
22.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
22.7k
        DCHECK(_parsed);
413
22.7k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
22.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
22.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
22.7k
        *n = max_fetch;
422
22.7k
        if constexpr (forward_index) {
423
22.7k
            _cur_index += max_fetch;
424
22.7k
        }
425
426
22.7k
        return Status::OK();
427
22.7k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_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
14.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
14.6k
        DCHECK(_parsed);
413
14.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
14.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
14.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
14.6k
        *n = max_fetch;
422
14.6k
        if constexpr (forward_index) {
423
14.6k
            _cur_index += max_fetch;
424
14.6k
        }
425
426
14.6k
        return Status::OK();
427
14.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
442k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
442k
        DCHECK(_parsed);
413
442k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
442k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
442k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
442k
        *n = max_fetch;
422
442k
        if constexpr (forward_index) {
423
442k
            _cur_index += max_fetch;
424
442k
        }
425
426
442k
        return Status::OK();
427
442k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
75.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
75.7k
        DCHECK(_parsed);
413
75.8k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
75.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
75.7k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
75.7k
        *n = max_fetch;
422
75.7k
        if constexpr (forward_index) {
423
75.7k
            _cur_index += max_fetch;
424
75.7k
        }
425
426
75.7k
        return Status::OK();
427
75.7k
    }
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.58k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.58k
        DCHECK(_parsed);
413
1.58k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.58k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.58k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.58k
        *n = max_fetch;
422
1.58k
        if constexpr (forward_index) {
423
1.58k
            _cur_index += max_fetch;
424
1.58k
        }
425
426
1.58k
        return Status::OK();
427
1.58k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
7.00k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
7.00k
        DCHECK(_parsed);
413
7.00k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
7.00k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
7.00k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
7.00k
        *n = max_fetch;
422
7.00k
        if constexpr (forward_index) {
423
7.00k
            _cur_index += max_fetch;
424
7.00k
        }
425
426
7.00k
        return Status::OK();
427
7.00k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.35k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.35k
        DCHECK(_parsed);
413
1.35k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.35k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.35k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.35k
        *n = max_fetch;
422
1.35k
        if constexpr (forward_index) {
423
1.35k
            _cur_index += max_fetch;
424
1.35k
        }
425
426
1.35k
        return Status::OK();
427
1.35k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
8.28k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
8.28k
        DCHECK(_parsed);
413
8.28k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
8.28k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
8.28k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
8.28k
        *n = max_fetch;
422
8.28k
        if constexpr (forward_index) {
423
8.28k
            _cur_index += max_fetch;
424
8.28k
        }
425
426
8.28k
        return Status::OK();
427
8.28k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
37.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
37.3k
        DCHECK(_parsed);
413
37.3k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
37.3k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
37.3k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
37.3k
        *n = max_fetch;
422
37.3k
        if constexpr (forward_index) {
423
37.3k
            _cur_index += max_fetch;
424
37.3k
        }
425
426
37.3k
        return Status::OK();
427
37.3k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
23.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
23.6k
        DCHECK(_parsed);
413
23.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
23.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
23.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
23.6k
        *n = max_fetch;
422
23.6k
        if constexpr (forward_index) {
423
23.6k
            _cur_index += max_fetch;
424
23.6k
        }
425
426
23.6k
        return Status::OK();
427
23.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.15k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.15k
        DCHECK(_parsed);
413
3.15k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.15k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.15k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.15k
        *n = max_fetch;
422
3.15k
        if constexpr (forward_index) {
423
3.15k
            _cur_index += max_fetch;
424
3.15k
        }
425
426
3.15k
        return Status::OK();
427
3.15k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.25k
        DCHECK(_parsed);
413
3.25k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.25k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.25k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.25k
        *n = max_fetch;
422
3.25k
        if constexpr (forward_index) {
423
3.25k
            _cur_index += max_fetch;
424
3.25k
        }
425
426
3.25k
        return Status::OK();
427
3.25k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3.25k
        DCHECK(_parsed);
413
3.25k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3.25k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3.25k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3.25k
        *n = max_fetch;
422
3.25k
        if constexpr (forward_index) {
423
3.25k
            _cur_index += max_fetch;
424
3.25k
        }
425
426
3.25k
        return Status::OK();
427
3.25k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
2.20M
    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
438k
    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
505k
    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
12.8k
    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
129k
    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
446k
    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
17.9k
    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.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
22.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
14.7k
    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
442k
    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
75.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.59k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
7.00k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1.35k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
8.29k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
37.3k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
23.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.15k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
3.25k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
430
431
    Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n,
432
490k
                          MutableColumnPtr& dst) override {
433
490k
        DCHECK(_parsed);
434
490k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
490k
        auto total = *n;
440
490k
        auto read_count = 0;
441
490k
        _buffer.resize(total);
442
110M
        for (size_t i = 0; i < total; ++i) {
443
109M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
109M
            if (UNLIKELY(ord >= _num_elements)) {
445
10.2k
                break;
446
10.2k
            }
447
448
109M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
109M
        }
450
451
490k
        if (LIKELY(read_count > 0)) {
452
490k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
490k
        }
454
455
490k
        *n = read_count;
456
490k
        return Status::OK();
457
490k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
79.5k
                          MutableColumnPtr& dst) override {
433
79.5k
        DCHECK(_parsed);
434
79.5k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
79.5k
        auto total = *n;
440
79.5k
        auto read_count = 0;
441
79.5k
        _buffer.resize(total);
442
41.3M
        for (size_t i = 0; i < total; ++i) {
443
41.2M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
41.2M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.62k
                break;
446
1.62k
            }
447
448
41.2M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
41.2M
        }
450
451
79.6k
        if (LIKELY(read_count > 0)) {
452
79.6k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
79.6k
        }
454
455
79.5k
        *n = read_count;
456
79.5k
        return Status::OK();
457
79.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_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
914k
        for (size_t i = 0; i < total; ++i) {
443
884k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
884k
            if (UNLIKELY(ord >= _num_elements)) {
445
9
                break;
446
9
            }
447
448
884k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
884k
        }
450
451
29.5k
        if (LIKELY(read_count > 0)) {
452
29.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
29.5k
        }
454
455
29.5k
        *n = read_count;
456
29.5k
        return Status::OK();
457
29.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
9.21k
                          MutableColumnPtr& dst) override {
433
9.21k
        DCHECK(_parsed);
434
9.21k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
9.21k
        auto total = *n;
440
9.21k
        auto read_count = 0;
441
9.21k
        _buffer.resize(total);
442
84.0k
        for (size_t i = 0; i < total; ++i) {
443
74.8k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
74.8k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
74.8k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
74.8k
        }
450
451
9.22k
        if (LIKELY(read_count > 0)) {
452
9.22k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
9.22k
        }
454
455
9.21k
        *n = read_count;
456
9.21k
        return Status::OK();
457
9.21k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
179k
                          MutableColumnPtr& dst) override {
433
179k
        DCHECK(_parsed);
434
179k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
179k
        auto total = *n;
440
179k
        auto read_count = 0;
441
179k
        _buffer.resize(total);
442
14.9M
        for (size_t i = 0; i < total; ++i) {
443
14.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
1.18k
                break;
446
1.18k
            }
447
448
14.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.7M
        }
450
451
179k
        if (LIKELY(read_count > 0)) {
452
179k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
179k
        }
454
455
179k
        *n = read_count;
456
179k
        return Status::OK();
457
179k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
32.3k
                          MutableColumnPtr& dst) override {
433
32.3k
        DCHECK(_parsed);
434
32.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
32.3k
        auto total = *n;
440
32.3k
        auto read_count = 0;
441
32.3k
        _buffer.resize(total);
442
2.01M
        for (size_t i = 0; i < total; ++i) {
443
1.98M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.98M
            if (UNLIKELY(ord >= _num_elements)) {
445
740
                break;
446
740
            }
447
448
1.98M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.98M
        }
450
451
32.3k
        if (LIKELY(read_count > 0)) {
452
32.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
32.3k
        }
454
455
32.3k
        *n = read_count;
456
32.3k
        return Status::OK();
457
32.3k
    }
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
14.9k
        for (size_t i = 0; i < total; ++i) {
443
8.34k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8.34k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
8.34k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8.34k
        }
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.7k
                          MutableColumnPtr& dst) override {
433
10.7k
        DCHECK(_parsed);
434
10.7k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
10.7k
        auto total = *n;
440
10.7k
        auto read_count = 0;
441
10.7k
        _buffer.resize(total);
442
1.18M
        for (size_t i = 0; i < total; ++i) {
443
1.17M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.17M
            if (UNLIKELY(ord >= _num_elements)) {
445
27
                break;
446
27
            }
447
448
1.17M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.17M
        }
450
451
10.7k
        if (LIKELY(read_count > 0)) {
452
10.7k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
10.7k
        }
454
455
10.7k
        *n = read_count;
456
10.7k
        return Status::OK();
457
10.7k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
14.3k
                          MutableColumnPtr& dst) override {
433
14.3k
        DCHECK(_parsed);
434
14.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
14.3k
        auto total = *n;
440
14.3k
        auto read_count = 0;
441
14.3k
        _buffer.resize(total);
442
1.17M
        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
239
                break;
446
239
            }
447
448
1.15M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.15M
        }
450
451
14.3k
        if (LIKELY(read_count > 0)) {
452
14.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
14.3k
        }
454
455
14.3k
        *n = read_count;
456
14.3k
        return Status::OK();
457
14.3k
    }
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.26k
                          MutableColumnPtr& dst) override {
433
2.26k
        DCHECK(_parsed);
434
2.26k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.26k
        auto total = *n;
440
2.26k
        auto read_count = 0;
441
2.26k
        _buffer.resize(total);
442
582k
        for (size_t i = 0; i < total; ++i) {
443
579k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
579k
            if (UNLIKELY(ord >= _num_elements)) {
445
12
                break;
446
12
            }
447
448
579k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
579k
        }
450
451
2.26k
        if (LIKELY(read_count > 0)) {
452
2.26k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.26k
        }
454
455
2.26k
        *n = read_count;
456
2.26k
        return Status::OK();
457
2.26k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
30.0k
                          MutableColumnPtr& dst) override {
433
30.0k
        DCHECK(_parsed);
434
30.0k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
30.0k
        auto total = *n;
440
30.0k
        auto read_count = 0;
441
30.0k
        _buffer.resize(total);
442
6.08M
        for (size_t i = 0; i < total; ++i) {
443
6.05M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
6.05M
            if (UNLIKELY(ord >= _num_elements)) {
445
659
                break;
446
659
            }
447
448
6.05M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
6.05M
        }
450
451
30.0k
        if (LIKELY(read_count > 0)) {
452
30.0k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
30.0k
        }
454
455
30.0k
        *n = read_count;
456
30.0k
        return Status::OK();
457
30.0k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
32.2k
                          MutableColumnPtr& dst) override {
433
32.2k
        DCHECK(_parsed);
434
32.2k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
32.2k
        auto total = *n;
440
32.2k
        auto read_count = 0;
441
32.2k
        _buffer.resize(total);
442
7.61M
        for (size_t i = 0; i < total; ++i) {
443
7.58M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
7.58M
            if (UNLIKELY(ord >= _num_elements)) {
445
75
                break;
446
75
            }
447
448
7.58M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
7.58M
        }
450
451
32.2k
        if (LIKELY(read_count > 0)) {
452
32.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
32.2k
        }
454
455
32.2k
        *n = read_count;
456
32.2k
        return Status::OK();
457
32.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2.32k
                          MutableColumnPtr& dst) override {
433
2.32k
        DCHECK(_parsed);
434
2.32k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2.32k
        auto total = *n;
440
2.32k
        auto read_count = 0;
441
2.32k
        _buffer.resize(total);
442
573k
        for (size_t i = 0; i < total; ++i) {
443
571k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
571k
            if (UNLIKELY(ord >= _num_elements)) {
445
70
                break;
446
70
            }
447
448
571k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
571k
        }
450
451
2.32k
        if (LIKELY(read_count > 0)) {
452
2.32k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2.32k
        }
454
455
2.32k
        *n = read_count;
456
2.32k
        return Status::OK();
457
2.32k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
11.8k
                          MutableColumnPtr& dst) override {
433
11.8k
        DCHECK(_parsed);
434
11.8k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
11.8k
        auto total = *n;
440
11.8k
        auto read_count = 0;
441
11.8k
        _buffer.resize(total);
442
25.1k
        for (size_t i = 0; i < total; ++i) {
443
13.3k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
13.3k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
13.3k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
13.3k
        }
450
451
11.8k
        if (LIKELY(read_count > 0)) {
452
11.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
11.8k
        }
454
455
11.8k
        *n = read_count;
456
11.8k
        return Status::OK();
457
11.8k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
161
                          MutableColumnPtr& dst) override {
433
161
        DCHECK(_parsed);
434
161
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
161
        auto total = *n;
440
161
        auto read_count = 0;
441
161
        _buffer.resize(total);
442
330
        for (size_t i = 0; i < total; ++i) {
443
169
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
169
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
169
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
169
        }
450
451
161
        if (LIKELY(read_count > 0)) {
452
161
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
161
        }
454
455
161
        *n = read_count;
456
161
        return Status::OK();
457
161
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.66k
                          MutableColumnPtr& dst) override {
433
4.66k
        DCHECK(_parsed);
434
4.66k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.66k
        auto total = *n;
440
4.66k
        auto read_count = 0;
441
4.66k
        _buffer.resize(total);
442
19.2k
        for (size_t i = 0; i < total; ++i) {
443
14.6k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
14.6k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
14.6k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
14.6k
        }
450
451
4.66k
        if (LIKELY(read_count > 0)) {
452
4.66k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.66k
        }
454
455
4.66k
        *n = read_count;
456
4.66k
        return Status::OK();
457
4.66k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
27.3k
                          MutableColumnPtr& dst) override {
433
27.3k
        DCHECK(_parsed);
434
27.3k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
27.3k
        auto total = *n;
440
27.3k
        auto read_count = 0;
441
27.3k
        _buffer.resize(total);
442
22.7M
        for (size_t i = 0; i < total; ++i) {
443
22.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
22.7M
            if (UNLIKELY(ord >= _num_elements)) {
445
5.22k
                break;
446
5.22k
            }
447
448
22.7M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
22.7M
        }
450
451
27.3k
        if (LIKELY(read_count > 0)) {
452
27.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
27.3k
        }
454
455
27.3k
        *n = read_count;
456
27.3k
        return Status::OK();
457
27.3k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
15.4k
                          MutableColumnPtr& dst) override {
433
15.4k
        DCHECK(_parsed);
434
15.4k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
15.4k
        auto total = *n;
440
15.4k
        auto read_count = 0;
441
15.4k
        _buffer.resize(total);
442
10.9M
        for (size_t i = 0; i < total; ++i) {
443
10.9M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
10.9M
            if (UNLIKELY(ord >= _num_elements)) {
445
411
                break;
446
411
            }
447
448
10.9M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
10.9M
        }
450
451
15.4k
        if (LIKELY(read_count > 0)) {
452
15.4k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
15.4k
        }
454
455
15.4k
        *n = read_count;
456
15.4k
        return Status::OK();
457
15.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
969
                          MutableColumnPtr& dst) override {
433
969
        DCHECK(_parsed);
434
969
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
969
        auto total = *n;
440
969
        auto read_count = 0;
441
969
        _buffer.resize(total);
442
2.79k
        for (size_t i = 0; i < total; ++i) {
443
1.82k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
1.82k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
1.82k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
1.82k
        }
450
451
971
        if (LIKELY(read_count > 0)) {
452
971
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
971
        }
454
455
969
        *n = read_count;
456
969
        return Status::OK();
457
969
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
477
                          MutableColumnPtr& dst) override {
433
477
        DCHECK(_parsed);
434
477
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
477
        auto total = *n;
440
477
        auto read_count = 0;
441
477
        _buffer.resize(total);
442
1.19k
        for (size_t i = 0; i < total; ++i) {
443
721
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
721
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
721
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
721
        }
450
451
477
        if (LIKELY(read_count > 0)) {
452
477
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
477
        }
454
455
477
        *n = read_count;
456
477
        return Status::OK();
457
477
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
410
                          MutableColumnPtr& dst) override {
433
410
        DCHECK(_parsed);
434
410
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
410
        auto total = *n;
440
410
        auto read_count = 0;
441
410
        _buffer.resize(total);
442
1.33k
        for (size_t i = 0; i < total; ++i) {
443
925
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
925
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
925
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
925
        }
450
451
410
        if (LIKELY(read_count > 0)) {
452
410
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
410
        }
454
455
410
        *n = read_count;
456
410
        return Status::OK();
457
410
    }
458
459
791k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
791k
        return next_batch<false>(n, dst);
461
791k
    }
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
791k
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
791k
        return next_batch<false>(n, dst);
461
791k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE15peek_next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
462
463
3
    size_t count() const override { return _num_elements; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
463
3
    size_t count() const override { return _num_elements; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE5countEv
464
465
3.18M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
2.57M
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
465
1.25k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
465
827
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
508k
    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
332
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
465
14.2k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
465
9.52k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
8.94k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Line
Count
Source
465
27.7k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
Line
Count
Source
465
17.3k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
4.69k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
Line
Count
Source
465
997
    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.37k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Line
Count
Source
465
4.06k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Line
Count
Source
465
6.24k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv
Line
Count
Source
465
308
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv
Line
Count
Source
465
51
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
Line
Count
Source
465
103
    size_t current_index() const override { return _cur_index; }
466
467
114M
    char* get_data(size_t index) const {
468
114M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
114M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
43.5M
    char* get_data(size_t index) const {
468
43.5M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
43.5M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
1.39M
    char* get_data(size_t index) const {
468
1.39M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.39M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
87.6k
    char* get_data(size_t index) const {
468
87.6k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
87.6k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
14.8M
    char* get_data(size_t index) const {
468
14.8M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
14.8M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
3.22M
    char* get_data(size_t index) const {
468
3.22M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.22M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
Line
Count
Source
467
26.2k
    char* get_data(size_t index) const {
468
26.2k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
26.2k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
1.19M
    char* get_data(size_t index) const {
468
1.19M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.19M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Line
Count
Source
467
1.17M
    char* get_data(size_t index) const {
468
1.17M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.17M
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
594k
    char* get_data(size_t index) const {
468
594k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
594k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
6.50M
    char* get_data(size_t index) const {
468
6.50M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
6.50M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
7.66M
    char* get_data(size_t index) const {
468
7.66M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
7.66M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
573k
    char* get_data(size_t index) const {
468
573k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
573k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
Line
Count
Source
467
20.3k
    char* get_data(size_t index) const {
468
20.3k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
20.3k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
1.52k
    char* get_data(size_t index) const {
468
1.52k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
1.52k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
Line
Count
Source
467
22.8k
    char* get_data(size_t index) const {
468
22.8k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.8k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
22.7M
    char* get_data(size_t index) const {
468
22.7M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
22.7M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
10.9M
    char* get_data(size_t index) const {
468
10.9M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
10.9M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Line
Count
Source
467
4.98k
    char* get_data(size_t index) const {
468
4.98k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.98k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Line
Count
Source
467
3.97k
    char* get_data(size_t index) const {
468
3.97k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.97k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
Line
Count
Source
467
4.17k
    char* get_data(size_t index) const {
468
4.17k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.17k
    }
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