Coverage Report

Created: 2026-04-07 10:06

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
20.9k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
96
18.7k
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
96
700
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
96
13
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
96
857
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
96
424
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
96
2
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
96
2
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
96
4
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
96
7
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
96
212
    Status init() override { return reset(); }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
96
11
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4initEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
96
2
    Status init() override { return reset(); }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4initEv
97
98
1.64M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
98
1.62M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
98
1.48k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
98
13
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
98
17.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12is_page_fullEv
Line
Count
Source
98
425
    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
2
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
98
2
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
98
4
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
98
7
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
98
216
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
98
11
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
98
2
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
99
100
684k
    Status add(const uint8_t* vals, size_t* count) override {
101
684k
        return add_internal<false>(vals, count);
102
684k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
100
664k
    Status add(const uint8_t* vals, size_t* count) override {
101
664k
        return add_internal<false>(vals, count);
102
664k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
100
1.48k
    Status add(const uint8_t* vals, size_t* count) override {
101
1.48k
        return add_internal<false>(vals, count);
102
1.48k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
100
13
    Status add(const uint8_t* vals, size_t* count) override {
101
13
        return add_internal<false>(vals, count);
102
13
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
100
17.6k
    Status add(const uint8_t* vals, size_t* count) override {
101
17.6k
        return add_internal<false>(vals, count);
102
17.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE3addEPKhPm
Line
Count
Source
100
425
    Status add(const uint8_t* vals, size_t* count) override {
101
425
        return add_internal<false>(vals, count);
102
425
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
100
2
    Status add(const uint8_t* vals, size_t* count) override {
101
2
        return add_internal<false>(vals, count);
102
2
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
100
2
    Status add(const uint8_t* vals, size_t* count) override {
101
2
        return add_internal<false>(vals, count);
102
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
100
4
    Status add(const uint8_t* vals, size_t* count) override {
101
4
        return add_internal<false>(vals, count);
102
4
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
100
7
    Status add(const uint8_t* vals, size_t* count) override {
101
7
        return add_internal<false>(vals, count);
102
7
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
100
216
    Status add(const uint8_t* vals, size_t* count) override {
101
216
        return add_internal<false>(vals, count);
102
216
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
100
11
    Status add(const uint8_t* vals, size_t* count) override {
101
11
        return add_internal<false>(vals, count);
102
11
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE3addEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
100
2
    Status add(const uint8_t* vals, size_t* count) override {
101
2
        return add_internal<false>(vals, count);
102
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE3addEPKhPm
103
104
939k
    Status single_add(const uint8_t* vals, size_t* count) {
105
939k
        return add_internal<true>(vals, count);
106
939k
    }
107
108
    template <bool single>
109
1.62M
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.62M
        DCHECK(!_finished);
111
1.62M
        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.62M
        uint32_t to_add = cast_set<UInt32>(
127
1.62M
                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.62M
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.62M
        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.62M
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.62M
        _count += to_add;
135
1.62M
        _remain_element_capacity -= to_add;
136
1.62M
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.62M
        *num_written = to_add;
139
1.62M
        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
938k
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
938k
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
938k
                        *reinterpret_cast<const uint32_t*>(vals);
150
938k
                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
938k
        }
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
1.62M
        return Status::OK();
160
1.62M
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
664k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
664k
        DCHECK(!_finished);
111
664k
        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
664k
        uint32_t to_add = cast_set<UInt32>(
127
664k
                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
664k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
664k
        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
664k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
664k
        _count += to_add;
135
664k
        _remain_element_capacity -= to_add;
136
664k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
664k
        *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
664k
        memcpy(&_data[orig_size], vals, to_add_size);
159
664k
        return Status::OK();
160
664k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE12add_internalILb1EEENS_6StatusEPKhPm
Line
Count
Source
109
938k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
938k
        DCHECK(!_finished);
111
938k
        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
938k
        uint32_t to_add = cast_set<UInt32>(
127
938k
                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
938k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
938k
        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
938k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
938k
        _count += to_add;
135
938k
        _remain_element_capacity -= to_add;
136
938k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
938k
        *num_written = to_add;
139
938k
        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
938k
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
938k
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
938k
                        *reinterpret_cast<const uint32_t*>(vals);
150
938k
                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
938k
        }
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
938k
        return Status::OK();
160
938k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
1.48k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
1.48k
        DCHECK(!_finished);
111
1.48k
        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.48k
        uint32_t to_add = cast_set<UInt32>(
127
1.48k
                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.48k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
1.48k
        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.48k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
1.48k
        _count += to_add;
135
1.48k
        _remain_element_capacity -= to_add;
136
1.48k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
1.48k
        *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.48k
        memcpy(&_data[orig_size], vals, to_add_size);
159
1.48k
        return Status::OK();
160
1.48k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
13
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
13
        DCHECK(!_finished);
111
13
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
13
        uint32_t to_add = cast_set<UInt32>(
127
13
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
13
        int to_add_size = to_add * SIZE_OF_TYPE;
130
13
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
13
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
13
        _count += to_add;
135
13
        _remain_element_capacity -= to_add;
136
13
        _raw_data_size += to_add_size;
137
        // return added number through count
138
13
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
13
        memcpy(&_data[orig_size], vals, to_add_size);
159
13
        return Status::OK();
160
13
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
17.6k
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
17.6k
        DCHECK(!_finished);
111
17.6k
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
17.6k
        uint32_t to_add = cast_set<UInt32>(
127
17.6k
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
17.6k
        int to_add_size = to_add * SIZE_OF_TYPE;
130
17.6k
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
17.6k
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
17.6k
        _count += to_add;
135
17.6k
        _remain_element_capacity -= to_add;
136
17.6k
        _raw_data_size += to_add_size;
137
        // return added number through count
138
17.6k
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
17.6k
        memcpy(&_data[orig_size], vals, to_add_size);
159
17.6k
        return Status::OK();
160
17.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
425
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
425
        DCHECK(!_finished);
111
425
        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
425
        uint32_t to_add = cast_set<UInt32>(
127
425
                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
425
        int to_add_size = to_add * SIZE_OF_TYPE;
130
425
        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
425
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
425
        _count += to_add;
135
425
        _remain_element_capacity -= to_add;
136
425
        _raw_data_size += to_add_size;
137
        // return added number through count
138
425
        *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
425
        memcpy(&_data[orig_size], vals, to_add_size);
159
425
        return Status::OK();
160
425
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
2
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
2
        DCHECK(!_finished);
111
2
        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
2
        uint32_t to_add = cast_set<UInt32>(
127
2
                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
2
        int to_add_size = to_add * SIZE_OF_TYPE;
130
2
        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
2
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
2
        _count += to_add;
135
2
        _remain_element_capacity -= to_add;
136
2
        _raw_data_size += to_add_size;
137
        // return added number through count
138
2
        *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
2
        memcpy(&_data[orig_size], vals, to_add_size);
159
2
        return Status::OK();
160
2
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
2
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
2
        DCHECK(!_finished);
111
2
        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
2
        uint32_t to_add = cast_set<UInt32>(
127
2
                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
2
        int to_add_size = to_add * SIZE_OF_TYPE;
130
2
        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
2
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
2
        _count += to_add;
135
2
        _remain_element_capacity -= to_add;
136
2
        _raw_data_size += to_add_size;
137
        // return added number through count
138
2
        *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
2
        memcpy(&_data[orig_size], vals, to_add_size);
159
2
        return Status::OK();
160
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
4
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
4
        DCHECK(!_finished);
111
4
        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
4
        uint32_t to_add = cast_set<UInt32>(
127
4
                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
4
        int to_add_size = to_add * SIZE_OF_TYPE;
130
4
        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
4
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
4
        _count += to_add;
135
4
        _remain_element_capacity -= to_add;
136
4
        _raw_data_size += to_add_size;
137
        // return added number through count
138
4
        *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
4
        memcpy(&_data[orig_size], vals, to_add_size);
159
4
        return Status::OK();
160
4
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
7
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
7
        DCHECK(!_finished);
111
7
        if (_remain_element_capacity == 0) {
112
0
            *num_written = 0;
113
0
            return Status::OK();
114
0
        }
115
116
        // When increasing the size of the memtabl flush threshold to a very large value, for example 15GB.
117
        // the row count of a single men tbl could be very large.
118
        // a real log:
119
        /*
120
        I20250823 19:01:16.153575 2982018 memtable_flush_executor.cpp:185] begin to flush memtable for tablet: 1755915952737, memsize: 15.11 GB, rows: 3751968
121
        */
122
        // This is not a very wide table, actually it just has two columns, int and array<float>
123
        // The write process of column array has two steps: write nested column(column float here), and write offsets column.
124
        // The row count of column array is 3751968, which is not that big, but each row of column array has 768 float numbers (this is a common case in vector search scenario).
125
        // so the row num of nested column float will be 3751968 * 768 = 2,881,511,424, which is bigger than INT32_MAX.
126
7
        uint32_t to_add = cast_set<UInt32>(
127
7
                std::min(cast_set<size_t>(_remain_element_capacity), *num_written));
128
        // Max value of to_add_size is less than STORAGE_PAGE_SIZE_DEFAULT_VALUE
129
7
        int to_add_size = to_add * SIZE_OF_TYPE;
130
7
        size_t orig_size = _data.size();
131
        // This may need a large memory, should return error if could not allocated
132
        // successfully, to avoid BE OOM.
133
7
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
7
        _count += to_add;
135
7
        _remain_element_capacity -= to_add;
136
7
        _raw_data_size += to_add_size;
137
        // return added number through count
138
7
        *num_written = to_add;
139
        if constexpr (single) {
140
            if constexpr (SIZE_OF_TYPE == 1) {
141
                *reinterpret_cast<uint8_t*>(&_data[orig_size]) = *vals;
142
                return Status::OK();
143
            } else if constexpr (SIZE_OF_TYPE == 2) {
144
                *reinterpret_cast<uint16_t*>(&_data[orig_size]) =
145
                        *reinterpret_cast<const uint16_t*>(vals);
146
                return Status::OK();
147
            } else if constexpr (SIZE_OF_TYPE == 4) {
148
                *reinterpret_cast<uint32_t*>(&_data[orig_size]) =
149
                        *reinterpret_cast<const uint32_t*>(vals);
150
                return Status::OK();
151
            } else if constexpr (SIZE_OF_TYPE == 8) {
152
                *reinterpret_cast<uint64_t*>(&_data[orig_size]) =
153
                        *reinterpret_cast<const uint64_t*>(vals);
154
                return Status::OK();
155
            }
156
        }
157
        // when single is true and SIZE_OF_TYPE > 8 or single is false
158
7
        memcpy(&_data[orig_size], vals, to_add_size);
159
7
        return Status::OK();
160
7
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
216
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
216
        DCHECK(!_finished);
111
216
        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
216
        uint32_t to_add = cast_set<UInt32>(
127
216
                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
216
        int to_add_size = to_add * SIZE_OF_TYPE;
130
216
        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
216
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
216
        _count += to_add;
135
216
        _remain_element_capacity -= to_add;
136
216
        _raw_data_size += to_add_size;
137
        // return added number through count
138
216
        *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
216
        memcpy(&_data[orig_size], vals, to_add_size);
159
216
        return Status::OK();
160
216
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
11
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
11
        DCHECK(!_finished);
111
11
        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
        uint32_t to_add = cast_set<UInt32>(
127
11
                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
        int to_add_size = to_add * SIZE_OF_TYPE;
130
11
        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
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
11
        _count += to_add;
135
11
        _remain_element_capacity -= to_add;
136
11
        _raw_data_size += to_add_size;
137
        // return added number through count
138
11
        *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
        memcpy(&_data[orig_size], vals, to_add_size);
159
11
        return Status::OK();
160
11
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE12add_internalILb0EEENS_6StatusEPKhPm
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE12add_internalILb0EEENS_6StatusEPKhPm
Line
Count
Source
109
2
    inline Status add_internal(const uint8_t* vals, size_t* num_written) {
110
2
        DCHECK(!_finished);
111
2
        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
2
        uint32_t to_add = cast_set<UInt32>(
127
2
                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
2
        int to_add_size = to_add * SIZE_OF_TYPE;
130
2
        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
2
        RETURN_IF_CATCH_EXCEPTION(_data.resize(orig_size + to_add_size));
134
2
        _count += to_add;
135
2
        _remain_element_capacity -= to_add;
136
2
        _raw_data_size += to_add_size;
137
        // return added number through count
138
2
        *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
2
        memcpy(&_data[orig_size], vals, to_add_size);
159
2
        return Status::OK();
160
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE12add_internalILb0EEENS_6StatusEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE12add_internalILb0EEENS_6StatusEPKhPm
161
162
21.4k
    Status finish(OwnedSlice* slice) override {
163
21.4k
        if (_count > 0) {
164
21.0k
            _first_value = cell(0);
165
21.0k
            _last_value = cell(_count - 1);
166
21.0k
        }
167
21.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
21.4k
        return Status::OK();
169
21.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
19.2k
    Status finish(OwnedSlice* slice) override {
163
19.2k
        if (_count > 0) {
164
18.9k
            _first_value = cell(0);
165
18.9k
            _last_value = cell(_count - 1);
166
18.9k
        }
167
19.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
19.2k
        return Status::OK();
169
19.2k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
711
    Status finish(OwnedSlice* slice) override {
163
711
        if (_count > 0) {
164
711
            _first_value = cell(0);
165
711
            _last_value = cell(_count - 1);
166
711
        }
167
711
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
711
        return Status::OK();
169
711
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
13
    Status finish(OwnedSlice* slice) override {
163
13
        if (_count > 0) {
164
13
            _first_value = cell(0);
165
13
            _last_value = cell(_count - 1);
166
13
        }
167
13
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
13
        return Status::OK();
169
13
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
832
    Status finish(OwnedSlice* slice) override {
163
832
        if (_count > 0) {
164
744
            _first_value = cell(0);
165
744
            _last_value = cell(_count - 1);
166
744
        }
167
832
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
832
        return Status::OK();
169
832
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
419
    Status finish(OwnedSlice* slice) override {
163
419
        if (_count > 0) {
164
419
            _first_value = cell(0);
165
419
            _last_value = cell(_count - 1);
166
419
        }
167
419
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
419
        return Status::OK();
169
419
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
2
    Status finish(OwnedSlice* slice) override {
163
2
        if (_count > 0) {
164
2
            _first_value = cell(0);
165
2
            _last_value = cell(_count - 1);
166
2
        }
167
2
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
2
        return Status::OK();
169
2
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
2
    Status finish(OwnedSlice* slice) override {
163
2
        if (_count > 0) {
164
2
            _first_value = cell(0);
165
2
            _last_value = cell(_count - 1);
166
2
        }
167
2
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
2
        return Status::OK();
169
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
4
    Status finish(OwnedSlice* slice) override {
163
4
        if (_count > 0) {
164
4
            _first_value = cell(0);
165
4
            _last_value = cell(_count - 1);
166
4
        }
167
4
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
4
        return Status::OK();
169
4
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
7
    Status finish(OwnedSlice* slice) override {
163
7
        if (_count > 0) {
164
7
            _first_value = cell(0);
165
7
            _last_value = cell(_count - 1);
166
7
        }
167
7
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
7
        return Status::OK();
169
7
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
216
    Status finish(OwnedSlice* slice) override {
163
216
        if (_count > 0) {
164
216
            _first_value = cell(0);
165
216
            _last_value = cell(_count - 1);
166
216
        }
167
216
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
216
        return Status::OK();
169
216
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
11
    Status finish(OwnedSlice* slice) override {
163
11
        if (_count > 0) {
164
11
            _first_value = cell(0);
165
11
            _last_value = cell(_count - 1);
166
11
        }
167
11
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
11
        return Status::OK();
169
11
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
162
2
    Status finish(OwnedSlice* slice) override {
163
2
        if (_count > 0) {
164
2
            _first_value = cell(0);
165
2
            _last_value = cell(_count - 1);
166
2
        }
167
2
        RETURN_IF_CATCH_EXCEPTION({ *slice = _finish(SIZE_OF_TYPE); });
168
2
        return Status::OK();
169
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
170
171
47.0k
    Status reset() override {
172
47.0k
        RETURN_IF_CATCH_EXCEPTION({
173
47.0k
            size_t block_size = _options.data_page_size;
174
47.0k
            _count = 0;
175
47.0k
            _raw_data_size = 0;
176
47.0k
            _data.clear();
177
47.0k
            _data.reserve(block_size);
178
47.0k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
47.0k
                    << "buffer must be naturally-aligned";
180
47.0k
            _buffer.clear();
181
47.0k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
47.0k
            _finished = false;
183
47.0k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
47.0k
        });
185
47.0k
        return Status::OK();
186
47.0k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
171
42.6k
    Status reset() override {
172
42.6k
        RETURN_IF_CATCH_EXCEPTION({
173
42.6k
            size_t block_size = _options.data_page_size;
174
42.6k
            _count = 0;
175
42.6k
            _raw_data_size = 0;
176
42.6k
            _data.clear();
177
42.6k
            _data.reserve(block_size);
178
42.6k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
42.6k
                    << "buffer must be naturally-aligned";
180
42.6k
            _buffer.clear();
181
42.6k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
42.6k
            _finished = false;
183
42.6k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
42.6k
        });
185
42.6k
        return Status::OK();
186
42.6k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
171
1.41k
    Status reset() override {
172
1.41k
        RETURN_IF_CATCH_EXCEPTION({
173
1.41k
            size_t block_size = _options.data_page_size;
174
1.41k
            _count = 0;
175
1.41k
            _raw_data_size = 0;
176
1.41k
            _data.clear();
177
1.41k
            _data.reserve(block_size);
178
1.41k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.41k
                    << "buffer must be naturally-aligned";
180
1.41k
            _buffer.clear();
181
1.41k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.41k
            _finished = false;
183
1.41k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.41k
        });
185
1.41k
        return Status::OK();
186
1.41k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
171
26
    Status reset() override {
172
26
        RETURN_IF_CATCH_EXCEPTION({
173
26
            size_t block_size = _options.data_page_size;
174
26
            _count = 0;
175
26
            _raw_data_size = 0;
176
26
            _data.clear();
177
26
            _data.reserve(block_size);
178
26
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
26
                    << "buffer must be naturally-aligned";
180
26
            _buffer.clear();
181
26
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
26
            _finished = false;
183
26
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
26
        });
185
26
        return Status::OK();
186
26
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
171
1.68k
    Status reset() override {
172
1.68k
        RETURN_IF_CATCH_EXCEPTION({
173
1.68k
            size_t block_size = _options.data_page_size;
174
1.68k
            _count = 0;
175
1.68k
            _raw_data_size = 0;
176
1.68k
            _data.clear();
177
1.68k
            _data.reserve(block_size);
178
1.68k
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
1.68k
                    << "buffer must be naturally-aligned";
180
1.68k
            _buffer.clear();
181
1.68k
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
1.68k
            _finished = false;
183
1.68k
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
1.68k
        });
185
1.68k
        return Status::OK();
186
1.68k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE5resetEv
Line
Count
Source
171
843
    Status reset() override {
172
843
        RETURN_IF_CATCH_EXCEPTION({
173
843
            size_t block_size = _options.data_page_size;
174
843
            _count = 0;
175
843
            _raw_data_size = 0;
176
843
            _data.clear();
177
843
            _data.reserve(block_size);
178
843
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
843
                    << "buffer must be naturally-aligned";
180
843
            _buffer.clear();
181
843
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
843
            _finished = false;
183
843
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
843
        });
185
843
        return Status::OK();
186
843
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
171
4
    Status reset() override {
172
4
        RETURN_IF_CATCH_EXCEPTION({
173
4
            size_t block_size = _options.data_page_size;
174
4
            _count = 0;
175
4
            _raw_data_size = 0;
176
4
            _data.clear();
177
4
            _data.reserve(block_size);
178
4
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
4
                    << "buffer must be naturally-aligned";
180
4
            _buffer.clear();
181
4
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
4
            _finished = false;
183
4
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
4
        });
185
4
        return Status::OK();
186
4
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
171
4
    Status reset() override {
172
4
        RETURN_IF_CATCH_EXCEPTION({
173
4
            size_t block_size = _options.data_page_size;
174
4
            _count = 0;
175
4
            _raw_data_size = 0;
176
4
            _data.clear();
177
4
            _data.reserve(block_size);
178
4
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
4
                    << "buffer must be naturally-aligned";
180
4
            _buffer.clear();
181
4
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
4
            _finished = false;
183
4
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
4
        });
185
4
        return Status::OK();
186
4
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
171
8
    Status reset() override {
172
8
        RETURN_IF_CATCH_EXCEPTION({
173
8
            size_t block_size = _options.data_page_size;
174
8
            _count = 0;
175
8
            _raw_data_size = 0;
176
8
            _data.clear();
177
8
            _data.reserve(block_size);
178
8
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
8
                    << "buffer must be naturally-aligned";
180
8
            _buffer.clear();
181
8
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
8
            _finished = false;
183
8
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
8
        });
185
8
        return Status::OK();
186
8
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
171
14
    Status reset() override {
172
14
        RETURN_IF_CATCH_EXCEPTION({
173
14
            size_t block_size = _options.data_page_size;
174
14
            _count = 0;
175
14
            _raw_data_size = 0;
176
14
            _data.clear();
177
14
            _data.reserve(block_size);
178
14
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
14
                    << "buffer must be naturally-aligned";
180
14
            _buffer.clear();
181
14
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
14
            _finished = false;
183
14
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
14
        });
185
14
        return Status::OK();
186
14
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
171
428
    Status reset() override {
172
428
        RETURN_IF_CATCH_EXCEPTION({
173
428
            size_t block_size = _options.data_page_size;
174
428
            _count = 0;
175
428
            _raw_data_size = 0;
176
428
            _data.clear();
177
428
            _data.reserve(block_size);
178
428
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
428
                    << "buffer must be naturally-aligned";
180
428
            _buffer.clear();
181
428
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
428
            _finished = false;
183
428
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
428
        });
185
432
        return Status::OK();
186
428
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
171
22
    Status reset() override {
172
22
        RETURN_IF_CATCH_EXCEPTION({
173
22
            size_t block_size = _options.data_page_size;
174
22
            _count = 0;
175
22
            _raw_data_size = 0;
176
22
            _data.clear();
177
22
            _data.reserve(block_size);
178
22
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
22
                    << "buffer must be naturally-aligned";
180
22
            _buffer.clear();
181
22
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
22
            _finished = false;
183
22
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
22
        });
185
22
        return Status::OK();
186
22
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE5resetEv
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
171
4
    Status reset() override {
172
4
        RETURN_IF_CATCH_EXCEPTION({
173
4
            size_t block_size = _options.data_page_size;
174
4
            _count = 0;
175
4
            _raw_data_size = 0;
176
4
            _data.clear();
177
4
            _data.reserve(block_size);
178
4
            DCHECK_EQ(reinterpret_cast<uintptr_t>(_data.data()) & (alignof(CppType) - 1), 0)
179
4
                    << "buffer must be naturally-aligned";
180
4
            _buffer.clear();
181
4
            _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE);
182
4
            _finished = false;
183
4
            _remain_element_capacity = cast_set<UInt32>(block_size / SIZE_OF_TYPE);
184
4
        });
185
4
        return Status::OK();
186
4
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE5resetEv
187
188
18.8k
    size_t count() const override { return _count; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE5countEv
Line
Count
Source
188
18.8k
    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
8.45k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
190
7.46k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
190
782
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
190
63
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4sizeEv
Line
Count
Source
190
88
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4sizeEv
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
7
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4sizeEv
Line
Count
Source
190
14
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4sizeEv
Line
Count
Source
190
13
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4sizeEv
Line
Count
Source
190
2
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4sizeEv
191
192
15.3k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
192
13.1k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
192
711
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
192
13
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
192
832
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE17get_raw_data_sizeEv
Line
Count
Source
192
419
    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
2
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
192
2
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Line
Count
Source
192
4
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
192
7
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
192
216
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
192
11
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
192
2
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
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
20.9k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
18.7k
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
700
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
13
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
857
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
424
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
2
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
2
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
4
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
7
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
212
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
11
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
213
2
            : _options(options), _count(0), _remain_element_capacity(0), _finished(false) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
214
215
21.4k
    OwnedSlice _finish(int final_size_of_type) {
216
21.4k
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
21.4k
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
21.4k
        int padding_elems = num_elems_after_padding - _count;
221
21.4k
        int padding_bytes = padding_elems * final_size_of_type;
222
176k
        for (int i = 0; i < padding_bytes; i++) {
223
154k
            _data.push_back(0);
224
154k
        }
225
226
        // reserve enough place for compression
227
21.4k
        _buffer.resize(
228
21.4k
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
21.4k
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
21.4k
        int64_t bytes =
232
21.4k
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
21.4k
                                         num_elems_after_padding, final_size_of_type, 0);
234
21.4k
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
21.4k
        encode_fixed32_le(&_buffer[0], _count);
244
21.4k
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
21.4k
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
21.4k
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
21.4k
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
21.4k
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
21.4k
        return _buffer.build();
251
21.4k
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE7_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
146k
        for (int i = 0; i < padding_bytes; i++) {
223
127k
            _data.push_back(0);
224
127k
        }
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_9FieldTypeE1EE7_finishEi
Line
Count
Source
215
711
    OwnedSlice _finish(int final_size_of_type) {
216
711
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
711
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
711
        int padding_elems = num_elems_after_padding - _count;
221
711
        int padding_bytes = padding_elems * final_size_of_type;
222
1.71k
        for (int i = 0; i < padding_bytes; i++) {
223
1.00k
            _data.push_back(0);
224
1.00k
        }
225
226
        // reserve enough place for compression
227
711
        _buffer.resize(
228
711
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
711
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
711
        int64_t bytes =
232
711
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
711
                                         num_elems_after_padding, final_size_of_type, 0);
234
711
        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
711
        encode_fixed32_le(&_buffer[0], _count);
244
711
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
711
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
711
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
711
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
711
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
711
        return _buffer.build();
251
711
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE7_finishEi
Line
Count
Source
215
13
    OwnedSlice _finish(int final_size_of_type) {
216
13
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
13
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
13
        int padding_elems = num_elems_after_padding - _count;
221
13
        int padding_bytes = padding_elems * final_size_of_type;
222
185
        for (int i = 0; i < padding_bytes; i++) {
223
172
            _data.push_back(0);
224
172
        }
225
226
        // reserve enough place for compression
227
13
        _buffer.resize(
228
13
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
13
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
13
        int64_t bytes =
232
13
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
13
                                         num_elems_after_padding, final_size_of_type, 0);
234
13
        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
13
        encode_fixed32_le(&_buffer[0], _count);
244
13
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
13
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
13
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
13
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
13
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
13
        return _buffer.build();
251
13
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE7_finishEi
Line
Count
Source
215
832
    OwnedSlice _finish(int final_size_of_type) {
216
832
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
832
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
832
        int padding_elems = num_elems_after_padding - _count;
221
832
        int padding_bytes = padding_elems * final_size_of_type;
222
12.9k
        for (int i = 0; i < padding_bytes; i++) {
223
12.1k
            _data.push_back(0);
224
12.1k
        }
225
226
        // reserve enough place for compression
227
832
        _buffer.resize(
228
832
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
832
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
832
        int64_t bytes =
232
832
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
832
                                         num_elems_after_padding, final_size_of_type, 0);
234
832
        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
832
        encode_fixed32_le(&_buffer[0], _count);
244
832
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
832
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
832
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
832
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
832
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
832
        return _buffer.build();
251
832
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE7_finishEi
Line
Count
Source
215
419
    OwnedSlice _finish(int final_size_of_type) {
216
419
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
419
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
419
        int padding_elems = num_elems_after_padding - _count;
221
419
        int padding_bytes = padding_elems * final_size_of_type;
222
3.75k
        for (int i = 0; i < padding_bytes; i++) {
223
3.33k
            _data.push_back(0);
224
3.33k
        }
225
226
        // reserve enough place for compression
227
419
        _buffer.resize(
228
419
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
419
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
419
        int64_t bytes =
232
419
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
419
                                         num_elems_after_padding, final_size_of_type, 0);
234
419
        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
419
        encode_fixed32_le(&_buffer[0], _count);
244
419
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
419
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
419
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
419
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
419
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
419
        return _buffer.build();
251
419
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE7_finishEi
Line
Count
Source
215
2
    OwnedSlice _finish(int final_size_of_type) {
216
2
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
2
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
2
        int padding_elems = num_elems_after_padding - _count;
221
2
        int padding_bytes = padding_elems * final_size_of_type;
222
226
        for (int i = 0; i < padding_bytes; i++) {
223
224
            _data.push_back(0);
224
224
        }
225
226
        // reserve enough place for compression
227
2
        _buffer.resize(
228
2
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
2
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
2
        int64_t bytes =
232
2
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
2
                                         num_elems_after_padding, final_size_of_type, 0);
234
2
        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
2
        encode_fixed32_le(&_buffer[0], _count);
244
2
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
2
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
2
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
2
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
2
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
2
        return _buffer.build();
251
2
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE7_finishEi
Line
Count
Source
215
2
    OwnedSlice _finish(int final_size_of_type) {
216
2
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
2
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
2
        int padding_elems = num_elems_after_padding - _count;
221
2
        int padding_bytes = padding_elems * final_size_of_type;
222
2
        for (int i = 0; i < padding_bytes; i++) {
223
0
            _data.push_back(0);
224
0
        }
225
226
        // reserve enough place for compression
227
2
        _buffer.resize(
228
2
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
2
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
2
        int64_t bytes =
232
2
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
2
                                         num_elems_after_padding, final_size_of_type, 0);
234
2
        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
2
        encode_fixed32_le(&_buffer[0], _count);
244
2
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
2
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
2
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
2
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
2
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
2
        return _buffer.build();
251
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE7_finishEi
Line
Count
Source
215
4
    OwnedSlice _finish(int final_size_of_type) {
216
4
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
4
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
4
        int padding_elems = num_elems_after_padding - _count;
221
4
        int padding_bytes = padding_elems * final_size_of_type;
222
82
        for (int i = 0; i < padding_bytes; i++) {
223
78
            _data.push_back(0);
224
78
        }
225
226
        // reserve enough place for compression
227
4
        _buffer.resize(
228
4
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
4
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
4
        int64_t bytes =
232
4
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
4
                                         num_elems_after_padding, final_size_of_type, 0);
234
4
        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
4
        encode_fixed32_le(&_buffer[0], _count);
244
4
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
4
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
4
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
4
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
4
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
4
        return _buffer.build();
251
4
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE7_finishEi
Line
Count
Source
215
7
    OwnedSlice _finish(int final_size_of_type) {
216
7
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
7
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
7
        int padding_elems = num_elems_after_padding - _count;
221
7
        int padding_bytes = padding_elems * final_size_of_type;
222
183
        for (int i = 0; i < padding_bytes; i++) {
223
176
            _data.push_back(0);
224
176
        }
225
226
        // reserve enough place for compression
227
7
        _buffer.resize(
228
7
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
7
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
7
        int64_t bytes =
232
7
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
7
                                         num_elems_after_padding, final_size_of_type, 0);
234
7
        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
        encode_fixed32_le(&_buffer[0], _count);
244
7
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
7
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
7
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
7
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
7
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
7
        return _buffer.build();
251
7
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE7_finishEi
Line
Count
Source
215
216
    OwnedSlice _finish(int final_size_of_type) {
216
216
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
216
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
216
        int padding_elems = num_elems_after_padding - _count;
221
216
        int padding_bytes = padding_elems * final_size_of_type;
222
9.68k
        for (int i = 0; i < padding_bytes; i++) {
223
9.47k
            _data.push_back(0);
224
9.47k
        }
225
226
        // reserve enough place for compression
227
216
        _buffer.resize(
228
216
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
216
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
216
        int64_t bytes =
232
216
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
216
                                         num_elems_after_padding, final_size_of_type, 0);
234
216
        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
216
        encode_fixed32_le(&_buffer[0], _count);
244
216
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
216
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
216
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
216
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
216
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
216
        return _buffer.build();
251
216
    }
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE7_finishEi
Line
Count
Source
215
11
    OwnedSlice _finish(int final_size_of_type) {
216
11
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
11
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
11
        int padding_elems = num_elems_after_padding - _count;
221
11
        int padding_bytes = padding_elems * final_size_of_type;
222
571
        for (int i = 0; i < padding_bytes; i++) {
223
560
            _data.push_back(0);
224
560
        }
225
226
        // reserve enough place for compression
227
11
        _buffer.resize(
228
11
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
11
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
11
        int64_t bytes =
232
11
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
11
                                         num_elems_after_padding, final_size_of_type, 0);
234
11
        if (bytes < 0) [[unlikely]] {
235
            // This means the bitshuffle function fails.
236
            // Ideally, this should not happen.
237
0
            warn_with_bitshuffle_error(bytes);
238
            // It does not matter what will be returned here,
239
            // since we have logged fatal in warn_with_bitshuffle_error().
240
0
            return OwnedSlice();
241
0
        }
242
        // update header
243
11
        encode_fixed32_le(&_buffer[0], _count);
244
11
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
11
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
11
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
11
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
11
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
11
        return _buffer.build();
251
11
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE7_finishEi
_ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE7_finishEi
Line
Count
Source
215
2
    OwnedSlice _finish(int final_size_of_type) {
216
2
        _data.resize(final_size_of_type * _count);
217
218
        // Do padding so that the input num of element is multiple of 8.
219
2
        int num_elems_after_padding = ALIGN_UP(_count, 8);
220
2
        int padding_elems = num_elems_after_padding - _count;
221
2
        int padding_bytes = padding_elems * final_size_of_type;
222
170
        for (int i = 0; i < padding_bytes; i++) {
223
168
            _data.push_back(0);
224
168
        }
225
226
        // reserve enough place for compression
227
2
        _buffer.resize(
228
2
                BITSHUFFLE_PAGE_HEADER_SIZE +
229
2
                bitshuffle::compress_lz4_bound(num_elems_after_padding, final_size_of_type, 0));
230
231
2
        int64_t bytes =
232
2
                bitshuffle::compress_lz4(_data.data(), &_buffer[BITSHUFFLE_PAGE_HEADER_SIZE],
233
2
                                         num_elems_after_padding, final_size_of_type, 0);
234
2
        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
2
        encode_fixed32_le(&_buffer[0], _count);
244
2
        encode_fixed32_le(&_buffer[4], cast_set<uint32_t>(BITSHUFFLE_PAGE_HEADER_SIZE + bytes));
245
2
        encode_fixed32_le(&_buffer[8], num_elems_after_padding);
246
2
        encode_fixed32_le(&_buffer[12], final_size_of_type);
247
2
        _finished = true;
248
        // before build(), update buffer length to the actual compressed size
249
2
        _buffer.resize(BITSHUFFLE_PAGE_HEADER_SIZE + bytes);
250
2
        return _buffer.build();
251
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE7_finishEi
Unexecuted instantiation: _ZN5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE7_finishEi
252
253
    using CppType = typename TypeTraits<Type>::CppType;
254
255
42.1k
    CppType cell(int idx) const {
256
42.1k
        DCHECK_GE(idx, 0);
257
42.1k
        CppType ret;
258
42.1k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
42.1k
        return ret;
260
42.1k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE5EE4cellEi
Line
Count
Source
255
37.8k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
37.8k
        CppType ret;
258
37.8k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
37.8k
        return ret;
260
37.8k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE1EE4cellEi
Line
Count
Source
255
1.42k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.42k
        CppType ret;
258
1.42k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.42k
        return ret;
260
1.42k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE3EE4cellEi
Line
Count
Source
255
26
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
26
        CppType ret;
258
26
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
26
        return ret;
260
26
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE7EE4cellEi
Line
Count
Source
255
1.48k
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
1.48k
        CppType ret;
258
1.48k
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
1.48k
        return ret;
260
1.48k
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE8EE4cellEi
Line
Count
Source
255
838
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
838
        CppType ret;
258
838
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
838
        return ret;
260
838
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE6EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE9EE4cellEi
Line
Count
Source
255
4
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
4
        CppType ret;
258
4
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
4
        return ret;
260
4
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE10EE4cellEi
Line
Count
Source
255
4
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
4
        CppType ret;
258
4
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
4
        return ret;
260
4
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE11EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE24EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE14EE4cellEi
Line
Count
Source
255
8
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
8
        CppType ret;
258
8
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
8
        return ret;
260
8
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE28EE4cellEi
Line
Count
Source
255
14
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
14
        CppType ret;
258
14
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
14
        return ret;
260
14
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE29EE4cellEi
Line
Count
Source
255
432
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
432
        CppType ret;
258
432
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
432
        return ret;
260
432
    }
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE15EE4cellEi
Line
Count
Source
255
22
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
22
        CppType ret;
258
22
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
22
        return ret;
260
22
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE40EE4cellEi
_ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE16EE4cellEi
Line
Count
Source
255
4
    CppType cell(int idx) const {
256
        DCHECK_GE(idx, 0);
257
4
        CppType ret;
258
4
        memcpy(&ret, &_data[idx * SIZE_OF_TYPE], SIZE_OF_TYPE);
259
4
        return ret;
260
4
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE31EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE32EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE33EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE37EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE38EE4cellEi
Unexecuted instantiation: _ZNK5doris10segment_v221BitshufflePageBuilderILNS_9FieldTypeE39EE4cellEi
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
42.2k
                                       int& size_of_element) {
277
42.2k
    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
42.2k
    num_elements = decode_fixed32_le((const uint8_t*)&data[0]);
283
42.2k
    compressed_size = decode_fixed32_le((const uint8_t*)&data[4]);
284
42.2k
    num_element_after_padding = decode_fixed32_le((const uint8_t*)&data[8]);
285
42.2k
    size_of_element = decode_fixed32_le((const uint8_t*)&data[12]);
286
42.2k
    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
42.2k
    switch (size_of_element) {
295
1.44k
    case 1:
296
1.45k
    case 2:
297
2.19k
    case 3:
298
38.7k
    case 4:
299
41.9k
    case 8:
300
42.1k
    case 12:
301
42.2k
    case 16:
302
42.2k
    case 32:
303
42.2k
        break;
304
0
    default:
305
0
        return Status::InternalError("invalid size_of_elem:{}", size_of_element);
306
42.2k
    }
307
42.2k
    return Status::OK();
308
42.2k
}
309
310
template <FieldType Type>
311
class BitShufflePageDecoder : public PageDecoder {
312
public:
313
    BitShufflePageDecoder(Slice data, const PageDecoderOptions& options)
314
21.1k
            : _data(data),
315
21.1k
              _options(options),
316
21.1k
              _parsed(false),
317
21.1k
              _num_elements(0),
318
21.1k
              _num_element_after_padding(0),
319
21.1k
              _size_of_element(0),
320
21.1k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
18.2k
            : _data(data),
315
18.2k
              _options(options),
316
18.2k
              _parsed(false),
317
18.2k
              _num_elements(0),
318
18.2k
              _num_element_after_padding(0),
319
18.2k
              _size_of_element(0),
320
18.2k
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
722
            : _data(data),
315
722
              _options(options),
316
722
              _parsed(false),
317
722
              _num_elements(0),
318
722
              _num_element_after_padding(0),
319
722
              _size_of_element(0),
320
722
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
5
            : _data(data),
315
5
              _options(options),
316
5
              _parsed(false),
317
5
              _num_elements(0),
318
5
              _num_element_after_padding(0),
319
5
              _size_of_element(0),
320
5
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
671
            : _data(data),
315
671
              _options(options),
316
671
              _parsed(false),
317
671
              _num_elements(0),
318
671
              _num_element_after_padding(0),
319
671
              _size_of_element(0),
320
671
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
171
            : _data(data),
315
171
              _options(options),
316
171
              _parsed(false),
317
171
              _num_elements(0),
318
171
              _num_element_after_padding(0),
319
171
              _size_of_element(0),
320
171
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
9
            : _data(data),
315
9
              _options(options),
316
9
              _parsed(false),
317
9
              _num_elements(0),
318
9
              _num_element_after_padding(0),
319
9
              _size_of_element(0),
320
9
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
368
            : _data(data),
315
368
              _options(options),
316
368
              _parsed(false),
317
368
              _num_elements(0),
318
368
              _num_element_after_padding(0),
319
368
              _size_of_element(0),
320
368
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
21
            : _data(data),
315
21
              _options(options),
316
21
              _parsed(false),
317
21
              _num_elements(0),
318
21
              _num_element_after_padding(0),
319
21
              _size_of_element(0),
320
21
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
510
            : _data(data),
315
510
              _options(options),
316
510
              _parsed(false),
317
510
              _num_elements(0),
318
510
              _num_element_after_padding(0),
319
510
              _size_of_element(0),
320
510
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
225
            : _data(data),
315
225
              _options(options),
316
225
              _parsed(false),
317
225
              _num_elements(0),
318
225
              _num_element_after_padding(0),
319
225
              _size_of_element(0),
320
225
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
116
            : _data(data),
315
116
              _options(options),
316
116
              _parsed(false),
317
116
              _num_elements(0),
318
116
              _num_element_after_padding(0),
319
116
              _size_of_element(0),
320
116
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
12
            : _data(data),
315
12
              _options(options),
316
12
              _parsed(false),
317
12
              _num_elements(0),
318
12
              _num_element_after_padding(0),
319
12
              _size_of_element(0),
320
12
              _cur_index(0) {}
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
314
4
            : _data(data),
315
4
              _options(options),
316
4
              _parsed(false),
317
4
              _num_elements(0),
318
4
              _num_element_after_padding(0),
319
4
              _size_of_element(0),
320
4
              _cur_index(0) {}
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
321
322
21.1k
    Status init() override {
323
21.1k
        CHECK(!_parsed);
324
21.1k
        size_t unused;
325
21.1k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
21.1k
                                                 _num_element_after_padding, _size_of_element));
327
328
21.1k
        if (_data.size !=
329
21.1k
            _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE) {
330
0
            std::stringstream ss;
331
0
            ss << "Size information unmatched, _data.size:" << _data.size
332
0
               << ", _num_elements:" << _num_elements << ", expected size is "
333
0
               << _num_element_after_padding * _size_of_element + BITSHUFFLE_PAGE_HEADER_SIZE;
334
0
            return Status::InternalError(ss.str());
335
0
        }
336
337
        // Currently, only the UINT32 block encoder supports expanding size:
338
21.1k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
21.1k
                     _size_of_element != SIZE_OF_TYPE)) {
340
0
            return Status::InternalError(
341
0
                    "invalid size info. size of element:{}, SIZE_OF_TYPE:{}, type:{}",
342
0
                    _size_of_element, SIZE_OF_TYPE, Type);
343
0
        }
344
21.1k
        if (UNLIKELY(_size_of_element > SIZE_OF_TYPE)) {
345
0
            return Status::InternalError("invalid size info. size of element:{}, SIZE_OF_TYPE:{}",
346
0
                                         _size_of_element, SIZE_OF_TYPE);
347
0
        }
348
21.1k
        _parsed = true;
349
21.1k
        return Status::OK();
350
21.1k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
322
18.2k
    Status init() override {
323
18.2k
        CHECK(!_parsed);
324
18.2k
        size_t unused;
325
18.2k
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
18.2k
                                                 _num_element_after_padding, _size_of_element));
327
328
18.2k
        if (_data.size !=
329
18.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
18.2k
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
18.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
18.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
18.2k
        _parsed = true;
349
18.2k
        return Status::OK();
350
18.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
322
722
    Status init() override {
323
722
        CHECK(!_parsed);
324
722
        size_t unused;
325
722
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
722
                                                 _num_element_after_padding, _size_of_element));
327
328
722
        if (_data.size !=
329
722
            _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
722
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
722
                     _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
722
        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
722
        _parsed = true;
349
722
        return Status::OK();
350
722
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
322
5
    Status init() override {
323
5
        CHECK(!_parsed);
324
5
        size_t unused;
325
5
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
5
                                                 _num_element_after_padding, _size_of_element));
327
328
5
        if (_data.size !=
329
5
            _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
5
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
5
                     _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
5
        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
5
        _parsed = true;
349
5
        return Status::OK();
350
5
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
322
671
    Status init() override {
323
671
        CHECK(!_parsed);
324
671
        size_t unused;
325
671
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
671
                                                 _num_element_after_padding, _size_of_element));
327
328
671
        if (_data.size !=
329
671
            _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
671
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
671
                     _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
671
        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
671
        _parsed = true;
349
671
        return Status::OK();
350
671
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE4initEv
Line
Count
Source
322
171
    Status init() override {
323
171
        CHECK(!_parsed);
324
171
        size_t unused;
325
171
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
171
                                                 _num_element_after_padding, _size_of_element));
327
328
171
        if (_data.size !=
329
171
            _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
171
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
171
                     _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
171
        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
171
        _parsed = true;
349
171
        return Status::OK();
350
171
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
322
9
    Status init() override {
323
9
        CHECK(!_parsed);
324
9
        size_t unused;
325
9
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
9
                                                 _num_element_after_padding, _size_of_element));
327
328
9
        if (_data.size !=
329
9
            _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
9
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
9
                     _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
9
        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
9
        _parsed = true;
349
9
        return Status::OK();
350
9
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
322
368
    Status init() override {
323
368
        CHECK(!_parsed);
324
368
        size_t unused;
325
368
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
368
                                                 _num_element_after_padding, _size_of_element));
327
328
368
        if (_data.size !=
329
368
            _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
368
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
368
                     _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
368
        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
368
        _parsed = true;
349
368
        return Status::OK();
350
368
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
322
21
    Status init() override {
323
21
        CHECK(!_parsed);
324
21
        size_t unused;
325
21
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
21
                                                 _num_element_after_padding, _size_of_element));
327
328
21
        if (_data.size !=
329
21
            _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
21
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
21
                     _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
21
        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
21
        _parsed = true;
349
21
        return Status::OK();
350
21
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
322
510
    Status init() override {
323
510
        CHECK(!_parsed);
324
510
        size_t unused;
325
510
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
510
                                                 _num_element_after_padding, _size_of_element));
327
328
510
        if (_data.size !=
329
510
            _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
510
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
510
                     _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
510
        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
510
        _parsed = true;
349
510
        return Status::OK();
350
510
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
322
225
    Status init() override {
323
225
        CHECK(!_parsed);
324
225
        size_t unused;
325
225
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
225
                                                 _num_element_after_padding, _size_of_element));
327
328
225
        if (_data.size !=
329
225
            _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
225
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
225
                     _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
225
        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
225
        _parsed = true;
349
225
        return Status::OK();
350
225
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
322
116
    Status init() override {
323
116
        CHECK(!_parsed);
324
116
        size_t unused;
325
116
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
116
                                                 _num_element_after_padding, _size_of_element));
327
328
116
        if (_data.size !=
329
116
            _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
116
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
116
                     _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
116
        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
116
        _parsed = true;
349
116
        return Status::OK();
350
116
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE4initEv
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
322
12
    Status init() override {
323
12
        CHECK(!_parsed);
324
12
        size_t unused;
325
12
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
12
                                                 _num_element_after_padding, _size_of_element));
327
328
12
        if (_data.size !=
329
12
            _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
12
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
12
                     _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
12
        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
12
        _parsed = true;
349
12
        return Status::OK();
350
12
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
322
4
    Status init() override {
323
4
        CHECK(!_parsed);
324
4
        size_t unused;
325
4
        RETURN_IF_ERROR(parse_bit_shuffle_header(_data, _num_elements, unused,
326
4
                                                 _num_element_after_padding, _size_of_element));
327
328
4
        if (_data.size !=
329
4
            _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
4
        if (UNLIKELY(Type != FieldType::OLAP_FIELD_TYPE_UNSIGNED_INT &&
339
4
                     _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
4
        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
4
        _parsed = true;
349
4
        return Status::OK();
350
4
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE4initEv
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
20.4k
    Status seek_to_position_in_page(size_t pos) override {
359
20.4k
        DCHECK(_parsed) << "Must call init()";
360
20.4k
        if (_num_elements == 0) [[unlikely]] {
361
262
            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
262
        }
366
367
20.4k
        DCHECK_LE(pos, _num_elements);
368
20.4k
        _cur_index = pos;
369
20.4k
        return Status::OK();
370
20.4k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
358
8.30k
    Status seek_to_position_in_page(size_t pos) override {
359
8.30k
        DCHECK(_parsed) << "Must call init()";
360
8.30k
        if (_num_elements == 0) [[unlikely]] {
361
230
            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
230
        }
366
367
8.30k
        DCHECK_LE(pos, _num_elements);
368
8.30k
        _cur_index = pos;
369
8.30k
        return Status::OK();
370
8.30k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
358
621
    Status seek_to_position_in_page(size_t pos) override {
359
621
        DCHECK(_parsed) << "Must call init()";
360
621
        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
621
        DCHECK_LE(pos, _num_elements);
368
621
        _cur_index = pos;
369
621
        return Status::OK();
370
621
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
358
1
    Status seek_to_position_in_page(size_t pos) override {
359
1
        DCHECK(_parsed) << "Must call init()";
360
1
        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
        DCHECK_LE(pos, _num_elements);
368
1
        _cur_index = pos;
369
1
        return Status::OK();
370
1
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
358
919
    Status seek_to_position_in_page(size_t pos) override {
359
919
        DCHECK(_parsed) << "Must call init()";
360
919
        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
919
        DCHECK_LE(pos, _num_elements);
368
919
        _cur_index = pos;
369
919
        return Status::OK();
370
919
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE24seek_to_position_in_pageEm
Line
Count
Source
358
13
    Status seek_to_position_in_page(size_t pos) override {
359
13
        DCHECK(_parsed) << "Must call init()";
360
13
        if (_num_elements == 0) [[unlikely]] {
361
0
            if (pos != 0) {
362
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
363
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elements);
364
0
            }
365
0
        }
366
367
13
        DCHECK_LE(pos, _num_elements);
368
13
        _cur_index = pos;
369
13
        return Status::OK();
370
13
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
358
10.2k
    Status seek_to_position_in_page(size_t pos) override {
359
10.2k
        DCHECK(_parsed) << "Must call init()";
360
10.2k
        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
10.2k
        DCHECK_LE(pos, _num_elements);
368
10.2k
        _cur_index = pos;
369
10.2k
        return Status::OK();
370
10.2k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
358
1
    Status seek_to_position_in_page(size_t pos) override {
359
1
        DCHECK(_parsed) << "Must call init()";
360
1
        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
        DCHECK_LE(pos, _num_elements);
368
1
        _cur_index = pos;
369
1
        return Status::OK();
370
1
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
358
32
    Status seek_to_position_in_page(size_t pos) override {
359
32
        DCHECK(_parsed) << "Must call init()";
360
32
        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
32
        DCHECK_LE(pos, _num_elements);
368
32
        _cur_index = pos;
369
32
        return Status::OK();
370
32
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
358
229
    Status seek_to_position_in_page(size_t pos) override {
359
229
        DCHECK(_parsed) << "Must call init()";
360
229
        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
229
        DCHECK_LE(pos, _num_elements);
368
229
        _cur_index = pos;
369
229
        return Status::OK();
370
229
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
358
112
    Status seek_to_position_in_page(size_t pos) override {
359
112
        DCHECK(_parsed) << "Must call init()";
360
112
        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
112
        DCHECK_LE(pos, _num_elements);
368
112
        _cur_index = pos;
369
112
        return Status::OK();
370
112
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
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
45.5k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
45.5k
        DCHECK(_parsed);
413
45.5k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
45.5k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
45.5k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
45.5k
        *n = max_fetch;
422
45.5k
        if constexpr (forward_index) {
423
45.3k
            _cur_index += max_fetch;
424
45.3k
        }
425
426
45.5k
        return Status::OK();
427
45.5k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
24.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
24.6k
        DCHECK(_parsed);
413
24.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
24.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
24.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
24.6k
        *n = max_fetch;
422
24.6k
        if constexpr (forward_index) {
423
24.6k
            _cur_index += max_fetch;
424
24.6k
        }
425
426
24.6k
        return Status::OK();
427
24.6k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1.81k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1.81k
        DCHECK(_parsed);
413
1.81k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1.81k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1.81k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1.81k
        *n = max_fetch;
422
1.81k
        if constexpr (forward_index) {
423
1.81k
            _cur_index += max_fetch;
424
1.81k
        }
425
426
1.81k
        return Status::OK();
427
1.81k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1
        DCHECK(_parsed);
413
1
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1
        *n = max_fetch;
422
1
        if constexpr (forward_index) {
423
1
            _cur_index += max_fetch;
424
1
        }
425
426
1
        return Status::OK();
427
1
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
6.45k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
6.45k
        DCHECK(_parsed);
413
6.45k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
6.45k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
6.45k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
6.45k
        *n = max_fetch;
422
6.45k
        if constexpr (forward_index) {
423
6.45k
            _cur_index += max_fetch;
424
6.45k
        }
425
426
6.45k
        return Status::OK();
427
6.45k
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
173
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
173
        DCHECK(_parsed);
413
173
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
173
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
173
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
173
        *n = max_fetch;
422
173
        if constexpr (forward_index) {
423
173
            _cur_index += max_fetch;
424
173
        }
425
426
173
        return Status::OK();
427
173
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
174
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
174
        DCHECK(_parsed);
413
174
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
174
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
174
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
174
        *n = max_fetch;
422
        if constexpr (forward_index) {
423
            _cur_index += max_fetch;
424
        }
425
426
174
        return Status::OK();
427
174
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
1
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
1
        DCHECK(_parsed);
413
1
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
1
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
1
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
1
        *n = max_fetch;
422
1
        if constexpr (forward_index) {
423
1
            _cur_index += max_fetch;
424
1
        }
425
426
1
        return Status::OK();
427
1
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
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
11.6k
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
11.6k
        DCHECK(_parsed);
413
11.6k
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
11.6k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
11.6k
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
11.6k
        *n = max_fetch;
422
11.6k
        if constexpr (forward_index) {
423
11.6k
            _cur_index += max_fetch;
424
11.6k
        }
425
426
11.6k
        return Status::OK();
427
11.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
3
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
3
        DCHECK(_parsed);
413
3
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
3
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
3
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
3
        *n = max_fetch;
422
3
        if constexpr (forward_index) {
423
3
            _cur_index += max_fetch;
424
3
        }
425
426
3
        return Status::OK();
427
3
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
114
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
114
        DCHECK(_parsed);
413
114
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
114
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
114
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
114
        *n = max_fetch;
422
114
        if constexpr (forward_index) {
423
114
            _cur_index += max_fetch;
424
114
        }
425
426
114
        return Status::OK();
427
114
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
365
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
365
        DCHECK(_parsed);
413
365
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
365
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
365
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
365
        *n = max_fetch;
422
365
        if constexpr (forward_index) {
423
365
            _cur_index += max_fetch;
424
365
        }
425
426
365
        return Status::OK();
427
365
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
130
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
130
        DCHECK(_parsed);
413
130
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
130
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
130
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
130
        *n = max_fetch;
422
130
        if constexpr (forward_index) {
423
130
            _cur_index += max_fetch;
424
130
        }
425
426
130
        return Status::OK();
427
130
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
4
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
4
        DCHECK(_parsed);
413
4
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
4
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
4
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
4
        *n = max_fetch;
422
4
        if constexpr (forward_index) {
423
4
            _cur_index += max_fetch;
424
4
        }
425
426
4
        return Status::OK();
427
4
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
411
2
    Status next_batch(size_t* n, MutableColumnPtr& dst) {
412
2
        DCHECK(_parsed);
413
2
        if (*n == 0 || _cur_index >= _num_elements) [[unlikely]] {
414
0
            *n = 0;
415
0
            return Status::OK();
416
0
        }
417
418
2
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elements - _cur_index));
419
420
2
        dst->insert_many_fix_len_data(get_data(_cur_index), max_fetch);
421
2
        *n = max_fetch;
422
2
        if constexpr (forward_index) {
423
2
            _cur_index += max_fetch;
424
2
        }
425
426
2
        return Status::OK();
427
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb1EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchILb0EEENS_6StatusEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
428
429
45.3k
    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
24.6k
    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
1.81k
    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
1
    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
6.45k
    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
173
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
1
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
11.6k
    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
3
    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
114
    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
365
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
130
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
429
4
    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
2
    Status next_batch(size_t* n, MutableColumnPtr& dst) override { return next_batch<>(n, dst); }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
430
431
    Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n,
432
6.47k
                          MutableColumnPtr& dst) override {
433
6.47k
        DCHECK(_parsed);
434
6.47k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
6.47k
        auto total = *n;
440
6.47k
        auto read_count = 0;
441
6.47k
        _buffer.resize(total);
442
3.47M
        for (size_t i = 0; i < total; ++i) {
443
3.46M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
3.46M
            if (UNLIKELY(ord >= _num_elements)) {
445
9
                break;
446
9
            }
447
448
3.46M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
3.46M
        }
450
451
6.47k
        if (LIKELY(read_count > 0)) {
452
6.47k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
6.47k
        }
454
455
6.47k
        *n = read_count;
456
6.47k
        return Status::OK();
457
6.47k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4.03k
                          MutableColumnPtr& dst) override {
433
4.03k
        DCHECK(_parsed);
434
4.03k
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4.03k
        auto total = *n;
440
4.03k
        auto read_count = 0;
441
4.03k
        _buffer.resize(total);
442
2.76M
        for (size_t i = 0; i < total; ++i) {
443
2.76M
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
2.76M
            if (UNLIKELY(ord >= _num_elements)) {
445
9
                break;
446
9
            }
447
448
2.76M
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
2.76M
        }
450
451
4.03k
        if (LIKELY(read_count > 0)) {
452
4.03k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4.03k
        }
454
455
4.03k
        *n = read_count;
456
4.03k
        return Status::OK();
457
4.03k
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
798
                          MutableColumnPtr& dst) override {
433
798
        DCHECK(_parsed);
434
798
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
798
        auto total = *n;
440
798
        auto read_count = 0;
441
798
        _buffer.resize(total);
442
549k
        for (size_t i = 0; i < total; ++i) {
443
548k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
548k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
548k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
548k
        }
450
451
798
        if (LIKELY(read_count > 0)) {
452
798
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
798
        }
454
455
798
        *n = read_count;
456
798
        return Status::OK();
457
798
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
4
                          MutableColumnPtr& dst) override {
433
4
        DCHECK(_parsed);
434
4
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
4
        auto total = *n;
440
4
        auto read_count = 0;
441
4
        _buffer.resize(total);
442
8
        for (size_t i = 0; i < total; ++i) {
443
4
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
4
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4
        }
450
451
4
        if (LIKELY(read_count > 0)) {
452
4
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
4
        }
454
455
4
        *n = read_count;
456
4
        return Status::OK();
457
4
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
942
                          MutableColumnPtr& dst) override {
433
942
        DCHECK(_parsed);
434
942
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
942
        auto total = *n;
440
942
        auto read_count = 0;
441
942
        _buffer.resize(total);
442
116k
        for (size_t i = 0; i < total; ++i) {
443
115k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
115k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
115k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
115k
        }
450
451
942
        if (LIKELY(read_count > 0)) {
452
942
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
942
        }
454
455
942
        *n = read_count;
456
942
        return Status::OK();
457
942
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
8
                          MutableColumnPtr& dst) override {
433
8
        DCHECK(_parsed);
434
8
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8
        auto total = *n;
440
8
        auto read_count = 0;
441
8
        _buffer.resize(total);
442
4.29k
        for (size_t i = 0; i < total; ++i) {
443
4.28k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
4.28k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
4.28k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
4.28k
        }
450
451
8
        if (LIKELY(read_count > 0)) {
452
8
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8
        }
454
455
8
        *n = read_count;
456
8
        return Status::OK();
457
8
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
8
                          MutableColumnPtr& dst) override {
433
8
        DCHECK(_parsed);
434
8
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8
        auto total = *n;
440
8
        auto read_count = 0;
441
8
        _buffer.resize(total);
442
16
        for (size_t i = 0; i < total; ++i) {
443
8
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
8
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8
        }
450
451
8
        if (LIKELY(read_count > 0)) {
452
8
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8
        }
454
455
8
        *n = read_count;
456
8
        return Status::OK();
457
8
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
144
                          MutableColumnPtr& dst) override {
433
144
        DCHECK(_parsed);
434
144
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
144
        auto total = *n;
440
144
        auto read_count = 0;
441
144
        _buffer.resize(total);
442
572
        for (size_t i = 0; i < total; ++i) {
443
428
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
428
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
428
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
428
        }
450
451
144
        if (LIKELY(read_count > 0)) {
452
144
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
144
        }
454
455
144
        *n = read_count;
456
144
        return Status::OK();
457
144
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
18
                          MutableColumnPtr& dst) override {
433
18
        DCHECK(_parsed);
434
18
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
18
        auto total = *n;
440
18
        auto read_count = 0;
441
18
        _buffer.resize(total);
442
36
        for (size_t i = 0; i < total; ++i) {
443
18
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
18
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
18
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
18
        }
450
451
18
        if (LIKELY(read_count > 0)) {
452
18
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
18
        }
454
455
18
        *n = read_count;
456
18
        return Status::OK();
457
18
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
402
                          MutableColumnPtr& dst) override {
433
402
        DCHECK(_parsed);
434
402
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
402
        auto total = *n;
440
402
        auto read_count = 0;
441
402
        _buffer.resize(total);
442
38.1k
        for (size_t i = 0; i < total; ++i) {
443
37.7k
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
37.7k
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
37.7k
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
37.7k
        }
450
451
402
        if (LIKELY(read_count > 0)) {
452
402
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
402
        }
454
455
402
        *n = read_count;
456
402
        return Status::OK();
457
402
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
48
                          MutableColumnPtr& dst) override {
433
48
        DCHECK(_parsed);
434
48
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
48
        auto total = *n;
440
48
        auto read_count = 0;
441
48
        _buffer.resize(total);
442
104
        for (size_t i = 0; i < total; ++i) {
443
56
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
56
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
56
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
56
        }
450
451
48
        if (LIKELY(read_count > 0)) {
452
48
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
48
        }
454
455
48
        *n = read_count;
456
48
        return Status::OK();
457
48
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
62
                          MutableColumnPtr& dst) override {
433
62
        DCHECK(_parsed);
434
62
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
62
        auto total = *n;
440
62
        auto read_count = 0;
441
62
        _buffer.resize(total);
442
124
        for (size_t i = 0; i < total; ++i) {
443
62
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
62
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
62
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
62
        }
450
451
62
        if (LIKELY(read_count > 0)) {
452
62
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
62
        }
454
455
62
        *n = read_count;
456
62
        return Status::OK();
457
62
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
8
                          MutableColumnPtr& dst) override {
433
8
        DCHECK(_parsed);
434
8
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
8
        auto total = *n;
440
8
        auto read_count = 0;
441
8
        _buffer.resize(total);
442
16
        for (size_t i = 0; i < total; ++i) {
443
8
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
8
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
8
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
8
        }
450
451
8
        if (LIKELY(read_count > 0)) {
452
8
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
8
        }
454
455
8
        *n = read_count;
456
8
        return Status::OK();
457
8
    }
_ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
432
2
                          MutableColumnPtr& dst) override {
433
2
        DCHECK(_parsed);
434
2
        if (*n == 0) [[unlikely]] {
435
0
            *n = 0;
436
0
            return Status::OK();
437
0
        }
438
439
2
        auto total = *n;
440
2
        auto read_count = 0;
441
2
        _buffer.resize(total);
442
4
        for (size_t i = 0; i < total; ++i) {
443
2
            ordinal_t ord = rowids[i] - page_first_ordinal;
444
2
            if (UNLIKELY(ord >= _num_elements)) {
445
0
                break;
446
0
            }
447
448
2
            _buffer[read_count++] = *reinterpret_cast<CppType*>(get_data(ord));
449
2
        }
450
451
2
        if (LIKELY(read_count > 0)) {
452
2
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
453
2
        }
454
455
2
        *n = read_count;
456
2
        return Status::OK();
457
2
    }
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
458
459
174
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
174
        return next_batch<false>(n, dst);
461
174
    }
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
174
    Status peek_next_batch(size_t* n, MutableColumnPtr& dst) override {
460
174
        return next_batch<false>(n, dst);
461
174
    }
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
12.2k
    size_t current_index() const override { return _cur_index; }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
465
7.78k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
465
1.56k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE13current_indexEv
Line
Count
Source
465
2.75k
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE13current_indexEv
Line
Count
Source
465
164
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE13current_indexEv
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE13current_indexEv
Line
Count
Source
465
8
    size_t current_index() const override { return _cur_index; }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE13current_indexEv
466
467
3.52M
    char* get_data(size_t index) const {
468
3.52M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
3.52M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE5EE8get_dataEm
Line
Count
Source
467
2.80M
    char* get_data(size_t index) const {
468
2.80M
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
2.80M
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE1EE8get_dataEm
Line
Count
Source
467
550k
    char* get_data(size_t index) const {
468
550k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
550k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE3EE8get_dataEm
Line
Count
Source
467
5
    char* get_data(size_t index) const {
468
5
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
5
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE7EE8get_dataEm
Line
Count
Source
467
122k
    char* get_data(size_t index) const {
468
122k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
122k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE8EE8get_dataEm
Line
Count
Source
467
4.63k
    char* get_data(size_t index) const {
468
4.63k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4.63k
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE6EE8get_dataEm
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE9EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE10EE8get_dataEm
Line
Count
Source
467
9
    char* get_data(size_t index) const {
468
9
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
9
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE11EE8get_dataEm
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE24EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE14EE8get_dataEm
Line
Count
Source
467
12.0k
    char* get_data(size_t index) const {
468
12.0k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
12.0k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE28EE8get_dataEm
Line
Count
Source
467
21
    char* get_data(size_t index) const {
468
21
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
21
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE29EE8get_dataEm
Line
Count
Source
467
37.8k
    char* get_data(size_t index) const {
468
37.8k
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
37.8k
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE15EE8get_dataEm
Line
Count
Source
467
421
    char* get_data(size_t index) const {
468
421
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
421
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE40EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE16EE8get_dataEm
Line
Count
Source
467
192
    char* get_data(size_t index) const {
468
192
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
192
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE31EE8get_dataEm
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE32EE8get_dataEm
Line
Count
Source
467
12
    char* get_data(size_t index) const {
468
12
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
12
    }
_ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE33EE8get_dataEm
Line
Count
Source
467
4
    char* get_data(size_t index) const {
468
4
        return &_data.data[BITSHUFFLE_PAGE_HEADER_SIZE + index * SIZE_OF_TYPE];
469
4
    }
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE37EE8get_dataEm
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE38EE8get_dataEm
Unexecuted instantiation: _ZNK5doris10segment_v221BitShufflePageDecoderILNS_9FieldTypeE39EE8get_dataEm
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