Coverage Report

Created: 2026-10-09 22:44

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/storage/segment/plain_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 "common/cast_set.h"
21
#include "storage/olap_common.h"
22
#include "storage/segment/options.h"
23
#include "storage/segment/page_builder.h"
24
#include "storage/segment/page_decoder.h"
25
#include "storage/types.h"
26
#include "util/coding.h"
27
#include "util/faststring.h"
28
#include "util/unaligned.h"
29
30
namespace doris {
31
namespace segment_v2 {
32
33
static const size_t PLAIN_PAGE_HEADER_SIZE = sizeof(uint32_t);
34
35
template <FieldType Type>
36
class PlainPageBuilder : public PageBuilderHelper<PlainPageBuilder<Type>> {
37
public:
38
    using Self = PlainPageBuilder<Type>;
39
    friend class PageBuilderHelper<Self>;
40
41
295k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
295k
        return reset();
45
295k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
41
40.3k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
40.3k
        return reset();
45
40.3k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
41
6.21k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
6.21k
        return reset();
45
6.21k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
41
48.7k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
48.7k
        return reset();
45
48.7k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
41
180k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
180k
        return reset();
45
180k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
41
8.45k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
8.45k
        return reset();
45
8.45k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
41
4.76k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
4.76k
        return reset();
45
4.76k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
41
6.45k
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
6.45k
        return reset();
45
6.45k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE4initEv
Line
Count
Source
41
5
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
5
        return reset();
45
5
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE4initEv
Line
Count
Source
41
2
    Status init() override {
42
        // Reserve enough space for the page, plus a bit of slop since
43
        // we often overrun the page by a few values.
44
2
        return reset();
45
2
    }
46
47
1.08M
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
47
81.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
47
19.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
47
306k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
47
628k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
47
18.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
47
11.0k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
47
18.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
Line
Count
Source
47
391
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Line
Count
Source
47
152
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Line
Count
Source
47
116
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Line
Count
Source
47
120
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE12is_page_fullEv
Line
Count
Source
47
120
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Line
Count
Source
47
120
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Line
Count
Source
47
120
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Line
Count
Source
47
128
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Line
Count
Source
47
116
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Line
Count
Source
47
120
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Line
Count
Source
47
136
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Line
Count
Source
47
168
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Line
Count
Source
47
116
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
Line
Count
Source
47
136
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE12is_page_fullEv
Line
Count
Source
47
136
    bool is_page_full() override { return _remain_element_capacity == 0; }
48
49
543k
    Status add(const uint8_t* vals, size_t* count) override {
50
543k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
543k
        size_t old_size = _buffer.size();
55
543k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
543k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
543k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
543k
        _count += to_add;
61
543k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
543k
        *count = to_add;
64
543k
        _remain_element_capacity -= to_add;
65
543k
        return Status::OK();
66
543k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
49
40.8k
    Status add(const uint8_t* vals, size_t* count) override {
50
40.8k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
40.8k
        size_t old_size = _buffer.size();
55
40.8k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
40.8k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
40.8k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
40.8k
        _count += to_add;
61
40.8k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
40.8k
        *count = to_add;
64
40.8k
        _remain_element_capacity -= to_add;
65
40.8k
        return Status::OK();
66
40.8k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
49
9.66k
    Status add(const uint8_t* vals, size_t* count) override {
50
9.66k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
9.66k
        size_t old_size = _buffer.size();
55
9.66k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
9.66k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
9.66k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
9.66k
        _count += to_add;
61
9.66k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
9.66k
        *count = to_add;
64
9.66k
        _remain_element_capacity -= to_add;
65
9.66k
        return Status::OK();
66
9.66k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
49
153k
    Status add(const uint8_t* vals, size_t* count) override {
50
153k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
153k
        size_t old_size = _buffer.size();
55
153k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
153k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
153k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
153k
        _count += to_add;
61
153k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
153k
        *count = to_add;
64
153k
        _remain_element_capacity -= to_add;
65
153k
        return Status::OK();
66
153k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
49
314k
    Status add(const uint8_t* vals, size_t* count) override {
50
314k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
314k
        size_t old_size = _buffer.size();
55
314k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
314k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
314k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
314k
        _count += to_add;
61
314k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
314k
        *count = to_add;
64
314k
        _remain_element_capacity -= to_add;
65
314k
        return Status::OK();
66
314k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
49
9.34k
    Status add(const uint8_t* vals, size_t* count) override {
50
9.34k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
9.34k
        size_t old_size = _buffer.size();
55
9.34k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
9.34k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
9.34k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
9.34k
        _count += to_add;
61
9.34k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
9.34k
        *count = to_add;
64
9.34k
        _remain_element_capacity -= to_add;
65
9.34k
        return Status::OK();
66
9.34k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
49
5.54k
    Status add(const uint8_t* vals, size_t* count) override {
50
5.54k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
5.54k
        size_t old_size = _buffer.size();
55
5.54k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
5.54k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
5.54k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
5.54k
        _count += to_add;
61
5.54k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
5.54k
        *count = to_add;
64
5.54k
        _remain_element_capacity -= to_add;
65
5.54k
        return Status::OK();
66
5.54k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
49
9.18k
    Status add(const uint8_t* vals, size_t* count) override {
50
9.18k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
9.18k
        size_t old_size = _buffer.size();
55
9.18k
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
9.18k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
9.18k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
9.18k
        _count += to_add;
61
9.18k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
9.18k
        *count = to_add;
64
9.18k
        _remain_element_capacity -= to_add;
65
9.18k
        return Status::OK();
66
9.18k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE3addEPKhPm
Line
Count
Source
49
197
    Status add(const uint8_t* vals, size_t* count) override {
50
197
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
197
        size_t old_size = _buffer.size();
55
197
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
197
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
197
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
197
        _count += to_add;
61
197
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
197
        *count = to_add;
64
197
        _remain_element_capacity -= to_add;
65
197
        return Status::OK();
66
197
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Line
Count
Source
49
76
    Status add(const uint8_t* vals, size_t* count) override {
50
76
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
76
        size_t old_size = _buffer.size();
55
76
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
76
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
76
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
76
        _count += to_add;
61
76
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
76
        *count = to_add;
64
76
        _remain_element_capacity -= to_add;
65
76
        return Status::OK();
66
76
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Line
Count
Source
49
58
    Status add(const uint8_t* vals, size_t* count) override {
50
58
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
58
        size_t old_size = _buffer.size();
55
58
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
58
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
58
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
58
        _count += to_add;
61
58
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
58
        *count = to_add;
64
58
        _remain_element_capacity -= to_add;
65
58
        return Status::OK();
66
58
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Line
Count
Source
49
60
    Status add(const uint8_t* vals, size_t* count) override {
50
60
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
60
        size_t old_size = _buffer.size();
55
60
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
60
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
60
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
60
        _count += to_add;
61
60
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
60
        *count = to_add;
64
60
        _remain_element_capacity -= to_add;
65
60
        return Status::OK();
66
60
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE3addEPKhPm
Line
Count
Source
49
60
    Status add(const uint8_t* vals, size_t* count) override {
50
60
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
60
        size_t old_size = _buffer.size();
55
60
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
60
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
60
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
60
        _count += to_add;
61
60
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
60
        *count = to_add;
64
60
        _remain_element_capacity -= to_add;
65
60
        return Status::OK();
66
60
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Line
Count
Source
49
60
    Status add(const uint8_t* vals, size_t* count) override {
50
60
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
60
        size_t old_size = _buffer.size();
55
60
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
60
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
60
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
60
        _count += to_add;
61
60
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
60
        *count = to_add;
64
60
        _remain_element_capacity -= to_add;
65
60
        return Status::OK();
66
60
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Line
Count
Source
49
60
    Status add(const uint8_t* vals, size_t* count) override {
50
60
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
60
        size_t old_size = _buffer.size();
55
60
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
60
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
60
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
60
        _count += to_add;
61
60
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
60
        *count = to_add;
64
60
        _remain_element_capacity -= to_add;
65
60
        return Status::OK();
66
60
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Line
Count
Source
49
64
    Status add(const uint8_t* vals, size_t* count) override {
50
64
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
64
        size_t old_size = _buffer.size();
55
64
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
64
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
64
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
64
        _count += to_add;
61
64
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
64
        *count = to_add;
64
64
        _remain_element_capacity -= to_add;
65
64
        return Status::OK();
66
64
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Line
Count
Source
49
58
    Status add(const uint8_t* vals, size_t* count) override {
50
58
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
58
        size_t old_size = _buffer.size();
55
58
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
58
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
58
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
58
        _count += to_add;
61
58
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
58
        *count = to_add;
64
58
        _remain_element_capacity -= to_add;
65
58
        return Status::OK();
66
58
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Line
Count
Source
49
60
    Status add(const uint8_t* vals, size_t* count) override {
50
60
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
60
        size_t old_size = _buffer.size();
55
60
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
60
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
60
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
60
        _count += to_add;
61
60
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
60
        *count = to_add;
64
60
        _remain_element_capacity -= to_add;
65
60
        return Status::OK();
66
60
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Line
Count
Source
49
68
    Status add(const uint8_t* vals, size_t* count) override {
50
68
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
68
        size_t old_size = _buffer.size();
55
68
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
68
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
68
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
68
        _count += to_add;
61
68
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
68
        *count = to_add;
64
68
        _remain_element_capacity -= to_add;
65
68
        return Status::OK();
66
68
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Line
Count
Source
49
84
    Status add(const uint8_t* vals, size_t* count) override {
50
84
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
84
        size_t old_size = _buffer.size();
55
84
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
84
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
84
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
84
        _count += to_add;
61
84
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
84
        *count = to_add;
64
84
        _remain_element_capacity -= to_add;
65
84
        return Status::OK();
66
84
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Line
Count
Source
49
58
    Status add(const uint8_t* vals, size_t* count) override {
50
58
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
58
        size_t old_size = _buffer.size();
55
58
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
58
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
58
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
58
        _count += to_add;
61
58
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
58
        *count = to_add;
64
58
        _remain_element_capacity -= to_add;
65
58
        return Status::OK();
66
58
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE3addEPKhPm
Line
Count
Source
49
68
    Status add(const uint8_t* vals, size_t* count) override {
50
68
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
68
        size_t old_size = _buffer.size();
55
68
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
68
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
68
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
68
        _count += to_add;
61
68
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
68
        *count = to_add;
64
68
        _remain_element_capacity -= to_add;
65
68
        return Status::OK();
66
68
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE3addEPKhPm
Line
Count
Source
49
68
    Status add(const uint8_t* vals, size_t* count) override {
50
68
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
68
        size_t old_size = _buffer.size();
55
68
        size_t to_add = std::min(_remain_element_capacity, *count);
56
        // This may need a large memory, should return error if could not allocated
57
        // successfully, to avoid BE OOM.
58
68
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
68
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
68
        _count += to_add;
61
68
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
68
        *count = to_add;
64
68
        _remain_element_capacity -= to_add;
65
68
        return Status::OK();
66
68
    }
67
68
301k
    Status finish(OwnedSlice* slice) override {
69
301k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
301k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
301k
        return Status::OK();
72
301k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
39.6k
    Status finish(OwnedSlice* slice) override {
69
39.6k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
39.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
39.6k
        return Status::OK();
72
39.6k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6.19k
    Status finish(OwnedSlice* slice) override {
69
6.19k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6.19k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6.19k
        return Status::OK();
72
6.19k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
51.2k
    Status finish(OwnedSlice* slice) override {
69
51.2k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
51.2k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
51.2k
        return Status::OK();
72
51.2k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
183k
    Status finish(OwnedSlice* slice) override {
69
183k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
183k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
183k
        return Status::OK();
72
183k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
9.07k
    Status finish(OwnedSlice* slice) override {
69
9.07k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
9.07k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
9.07k
        return Status::OK();
72
9.07k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
4.84k
    Status finish(OwnedSlice* slice) override {
69
4.84k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
4.84k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
4.84k
        return Status::OK();
72
4.84k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6.97k
    Status finish(OwnedSlice* slice) override {
69
6.97k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6.97k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6.97k
        return Status::OK();
72
6.97k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
9
    Status finish(OwnedSlice* slice) override {
69
9
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
9
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
9
        return Status::OK();
72
9
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6
    Status finish(OwnedSlice* slice) override {
69
6
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6
        return Status::OK();
72
6
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6
    Status finish(OwnedSlice* slice) override {
69
6
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6
        return Status::OK();
72
6
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8
    Status finish(OwnedSlice* slice) override {
69
8
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8
        return Status::OK();
72
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8
    Status finish(OwnedSlice* slice) override {
69
8
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8
        return Status::OK();
72
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8
    Status finish(OwnedSlice* slice) override {
69
8
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8
        return Status::OK();
72
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8
    Status finish(OwnedSlice* slice) override {
69
8
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8
        return Status::OK();
72
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
12
    Status finish(OwnedSlice* slice) override {
69
12
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
12
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
12
        return Status::OK();
72
12
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6
    Status finish(OwnedSlice* slice) override {
69
6
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6
        return Status::OK();
72
6
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8
    Status finish(OwnedSlice* slice) override {
69
8
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8
        return Status::OK();
72
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
16
    Status finish(OwnedSlice* slice) override {
69
16
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
16
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
16
        return Status::OK();
72
16
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
32
    Status finish(OwnedSlice* slice) override {
69
32
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
32
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
32
        return Status::OK();
72
32
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
6
    Status finish(OwnedSlice* slice) override {
69
6
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
6
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
6
        return Status::OK();
72
6
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
16
    Status finish(OwnedSlice* slice) override {
69
16
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
16
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
16
        return Status::OK();
72
16
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
16
    Status finish(OwnedSlice* slice) override {
69
16
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
16
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
16
        return Status::OK();
72
16
    }
73
74
596k
    Status reset() override {
75
596k
        RETURN_IF_CATCH_EXCEPTION({
76
596k
            _buffer.reserve(_options.data_page_size);
77
596k
            _count = 0;
78
596k
            _raw_data_size = 0;
79
596k
            _buffer.clear();
80
596k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
596k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
596k
        });
83
597k
        return Status::OK();
84
596k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
74
79.9k
    Status reset() override {
75
79.9k
        RETURN_IF_CATCH_EXCEPTION({
76
79.9k
            _buffer.reserve(_options.data_page_size);
77
79.9k
            _count = 0;
78
79.9k
            _raw_data_size = 0;
79
79.9k
            _buffer.clear();
80
79.9k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
79.9k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
79.9k
        });
83
80.0k
        return Status::OK();
84
79.9k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
74
12.4k
    Status reset() override {
75
12.4k
        RETURN_IF_CATCH_EXCEPTION({
76
12.4k
            _buffer.reserve(_options.data_page_size);
77
12.4k
            _count = 0;
78
12.4k
            _raw_data_size = 0;
79
12.4k
            _buffer.clear();
80
12.4k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
12.4k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
12.4k
        });
83
12.4k
        return Status::OK();
84
12.4k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
74
99.9k
    Status reset() override {
75
99.9k
        RETURN_IF_CATCH_EXCEPTION({
76
99.9k
            _buffer.reserve(_options.data_page_size);
77
99.9k
            _count = 0;
78
99.9k
            _raw_data_size = 0;
79
99.9k
            _buffer.clear();
80
99.9k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
99.9k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
99.9k
        });
83
100k
        return Status::OK();
84
99.9k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
74
363k
    Status reset() override {
75
363k
        RETURN_IF_CATCH_EXCEPTION({
76
363k
            _buffer.reserve(_options.data_page_size);
77
363k
            _count = 0;
78
363k
            _raw_data_size = 0;
79
363k
            _buffer.clear();
80
363k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
363k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
363k
        });
83
364k
        return Status::OK();
84
363k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
74
17.5k
    Status reset() override {
75
17.5k
        RETURN_IF_CATCH_EXCEPTION({
76
17.5k
            _buffer.reserve(_options.data_page_size);
77
17.5k
            _count = 0;
78
17.5k
            _raw_data_size = 0;
79
17.5k
            _buffer.clear();
80
17.5k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
17.5k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
17.5k
        });
83
17.5k
        return Status::OK();
84
17.5k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
74
9.60k
    Status reset() override {
75
9.60k
        RETURN_IF_CATCH_EXCEPTION({
76
9.60k
            _buffer.reserve(_options.data_page_size);
77
9.60k
            _count = 0;
78
9.60k
            _raw_data_size = 0;
79
9.60k
            _buffer.clear();
80
9.60k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
9.60k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
9.60k
        });
83
9.61k
        return Status::OK();
84
9.60k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
74
13.4k
    Status reset() override {
75
13.4k
        RETURN_IF_CATCH_EXCEPTION({
76
13.4k
            _buffer.reserve(_options.data_page_size);
77
13.4k
            _count = 0;
78
13.4k
            _raw_data_size = 0;
79
13.4k
            _buffer.clear();
80
13.4k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
13.4k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
13.4k
        });
83
13.4k
        return Status::OK();
84
13.4k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE5resetEv
Line
Count
Source
74
11
    Status reset() override {
75
11
        RETURN_IF_CATCH_EXCEPTION({
76
11
            _buffer.reserve(_options.data_page_size);
77
11
            _count = 0;
78
11
            _raw_data_size = 0;
79
11
            _buffer.clear();
80
11
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
11
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
11
        });
83
11
        return Status::OK();
84
11
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE5resetEv
Line
Count
Source
74
8
    Status reset() override {
75
8
        RETURN_IF_CATCH_EXCEPTION({
76
8
            _buffer.reserve(_options.data_page_size);
77
8
            _count = 0;
78
8
            _raw_data_size = 0;
79
8
            _buffer.clear();
80
8
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
8
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
8
        });
83
8
        return Status::OK();
84
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE5resetEv
Line
Count
Source
74
8
    Status reset() override {
75
8
        RETURN_IF_CATCH_EXCEPTION({
76
8
            _buffer.reserve(_options.data_page_size);
77
8
            _count = 0;
78
8
            _raw_data_size = 0;
79
8
            _buffer.clear();
80
8
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
8
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
8
        });
83
8
        return Status::OK();
84
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE5resetEv
Line
Count
Source
74
10
    Status reset() override {
75
10
        RETURN_IF_CATCH_EXCEPTION({
76
10
            _buffer.reserve(_options.data_page_size);
77
10
            _count = 0;
78
10
            _raw_data_size = 0;
79
10
            _buffer.clear();
80
10
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
10
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
10
        });
83
10
        return Status::OK();
84
10
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE5resetEv
Line
Count
Source
74
10
    Status reset() override {
75
10
        RETURN_IF_CATCH_EXCEPTION({
76
10
            _buffer.reserve(_options.data_page_size);
77
10
            _count = 0;
78
10
            _raw_data_size = 0;
79
10
            _buffer.clear();
80
10
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
10
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
10
        });
83
10
        return Status::OK();
84
10
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE5resetEv
Line
Count
Source
74
10
    Status reset() override {
75
10
        RETURN_IF_CATCH_EXCEPTION({
76
10
            _buffer.reserve(_options.data_page_size);
77
10
            _count = 0;
78
10
            _raw_data_size = 0;
79
10
            _buffer.clear();
80
10
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
10
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
10
        });
83
10
        return Status::OK();
84
10
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE5resetEv
Line
Count
Source
74
10
    Status reset() override {
75
10
        RETURN_IF_CATCH_EXCEPTION({
76
10
            _buffer.reserve(_options.data_page_size);
77
10
            _count = 0;
78
10
            _raw_data_size = 0;
79
10
            _buffer.clear();
80
10
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
10
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
10
        });
83
10
        return Status::OK();
84
10
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE5resetEv
Line
Count
Source
74
14
    Status reset() override {
75
14
        RETURN_IF_CATCH_EXCEPTION({
76
14
            _buffer.reserve(_options.data_page_size);
77
14
            _count = 0;
78
14
            _raw_data_size = 0;
79
14
            _buffer.clear();
80
14
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
14
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
14
        });
83
14
        return Status::OK();
84
14
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE5resetEv
Line
Count
Source
74
8
    Status reset() override {
75
8
        RETURN_IF_CATCH_EXCEPTION({
76
8
            _buffer.reserve(_options.data_page_size);
77
8
            _count = 0;
78
8
            _raw_data_size = 0;
79
8
            _buffer.clear();
80
8
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
8
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
8
        });
83
8
        return Status::OK();
84
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE5resetEv
Line
Count
Source
74
10
    Status reset() override {
75
10
        RETURN_IF_CATCH_EXCEPTION({
76
10
            _buffer.reserve(_options.data_page_size);
77
10
            _count = 0;
78
10
            _raw_data_size = 0;
79
10
            _buffer.clear();
80
10
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
10
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
10
        });
83
10
        return Status::OK();
84
10
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE5resetEv
Line
Count
Source
74
18
    Status reset() override {
75
18
        RETURN_IF_CATCH_EXCEPTION({
76
18
            _buffer.reserve(_options.data_page_size);
77
18
            _count = 0;
78
18
            _raw_data_size = 0;
79
18
            _buffer.clear();
80
18
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
18
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
18
        });
83
18
        return Status::OK();
84
18
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE5resetEv
Line
Count
Source
74
34
    Status reset() override {
75
34
        RETURN_IF_CATCH_EXCEPTION({
76
34
            _buffer.reserve(_options.data_page_size);
77
34
            _count = 0;
78
34
            _raw_data_size = 0;
79
34
            _buffer.clear();
80
34
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
34
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
34
        });
83
34
        return Status::OK();
84
34
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE5resetEv
Line
Count
Source
74
8
    Status reset() override {
75
8
        RETURN_IF_CATCH_EXCEPTION({
76
8
            _buffer.reserve(_options.data_page_size);
77
8
            _count = 0;
78
8
            _raw_data_size = 0;
79
8
            _buffer.clear();
80
8
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
8
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
8
        });
83
8
        return Status::OK();
84
8
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE5resetEv
Line
Count
Source
74
18
    Status reset() override {
75
18
        RETURN_IF_CATCH_EXCEPTION({
76
18
            _buffer.reserve(_options.data_page_size);
77
18
            _count = 0;
78
18
            _raw_data_size = 0;
79
18
            _buffer.clear();
80
18
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
18
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
18
        });
83
18
        return Status::OK();
84
18
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE5resetEv
Line
Count
Source
74
18
    Status reset() override {
75
18
        RETURN_IF_CATCH_EXCEPTION({
76
18
            _buffer.reserve(_options.data_page_size);
77
18
            _count = 0;
78
18
            _raw_data_size = 0;
79
18
            _buffer.clear();
80
18
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
18
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
18
        });
83
18
        return Status::OK();
84
18
    }
85
86
0
    size_t count() const override { return _count; }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE5countEv
87
88
13.0k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
88
1.57k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
88
808
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
88
5.36k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
88
3.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
88
1.09k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
88
558
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
88
584
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE4sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE4sizeEv
89
90
301k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
90
39.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
90
6.19k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
90
51.2k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
90
183k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
90
9.07k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
90
4.84k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
90
6.97k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
Line
Count
Source
90
6
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Line
Count
Source
90
6
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Line
Count
Source
90
6
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Line
Count
Source
90
12
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Line
Count
Source
90
6
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Line
Count
Source
90
16
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Line
Count
Source
90
32
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Line
Count
Source
90
6
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
Line
Count
Source
90
16
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EE17get_raw_data_sizeEv
Line
Count
Source
90
16
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
91
92
private:
93
294k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
40.3k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
6.21k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
48.5k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
179k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
8.43k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
4.75k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
6.45k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
5
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE42EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
94
95
    faststring _buffer;
96
    PageBuilderOptions _options;
97
    size_t _count;
98
    size_t _remain_element_capacity {0};
99
    uint64_t _raw_data_size = 0;
100
    typedef typename TypeTraits<Type>::CppType CppType;
101
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
102
};
103
104
template <FieldType Type>
105
class PlainPageDecoder : public PageDecoder {
106
public:
107
    PlainPageDecoder(Slice data, const PageDecoderOptions& options)
108
374k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
86.0k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
9.39k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
132k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
108k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
15.4k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
8.57k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
13.9k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
6
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
3
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
3
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
6
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
3
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
8
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
16
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
3
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
8
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
8
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
109
110
373k
    Status init() override {
111
373k
        CHECK(!_parsed);
112
113
373k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
373k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
373k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
373k
        _parsed = true;
127
128
373k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
373k
        return Status::OK();
130
373k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
110
86.0k
    Status init() override {
111
86.0k
        CHECK(!_parsed);
112
113
86.0k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
86.0k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
86.0k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
86.0k
        _parsed = true;
127
128
86.0k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
86.0k
        return Status::OK();
130
86.0k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
110
9.39k
    Status init() override {
111
9.39k
        CHECK(!_parsed);
112
113
9.39k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
9.39k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
9.39k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
9.39k
        _parsed = true;
127
128
9.39k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
9.39k
        return Status::OK();
130
9.39k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
110
132k
    Status init() override {
111
132k
        CHECK(!_parsed);
112
113
132k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
132k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
132k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
132k
        _parsed = true;
127
128
132k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
132k
        return Status::OK();
130
132k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
110
108k
    Status init() override {
111
108k
        CHECK(!_parsed);
112
113
108k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
108k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
108k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
108k
        _parsed = true;
127
128
108k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
108k
        return Status::OK();
130
108k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
110
15.4k
    Status init() override {
111
15.4k
        CHECK(!_parsed);
112
113
15.4k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
15.4k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
15.4k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
15.4k
        _parsed = true;
127
128
15.4k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
15.4k
        return Status::OK();
130
15.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
110
8.57k
    Status init() override {
111
8.57k
        CHECK(!_parsed);
112
113
8.57k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
8.57k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
8.57k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
8.57k
        _parsed = true;
127
128
8.57k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
8.57k
        return Status::OK();
130
8.57k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
110
13.9k
    Status init() override {
111
13.9k
        CHECK(!_parsed);
112
113
13.9k
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
13.9k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
13.9k
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
13.9k
        _parsed = true;
127
128
13.9k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
13.9k
        return Status::OK();
130
13.9k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE4initEv
Line
Count
Source
110
6
    Status init() override {
111
6
        CHECK(!_parsed);
112
113
6
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
6
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
6
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
6
        _parsed = true;
127
128
6
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
6
        return Status::OK();
130
6
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE4initEv
Line
Count
Source
110
3
    Status init() override {
111
3
        CHECK(!_parsed);
112
113
3
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
3
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
3
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
3
        _parsed = true;
127
128
3
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
3
        return Status::OK();
130
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE4initEv
Line
Count
Source
110
3
    Status init() override {
111
3
        CHECK(!_parsed);
112
113
3
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
3
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
3
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
3
        _parsed = true;
127
128
3
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
3
        return Status::OK();
130
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE4initEv
Line
Count
Source
110
4
    Status init() override {
111
4
        CHECK(!_parsed);
112
113
4
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
4
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
4
        _parsed = true;
127
128
4
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4
        return Status::OK();
130
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE4initEv
Line
Count
Source
110
4
    Status init() override {
111
4
        CHECK(!_parsed);
112
113
4
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
4
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
4
        _parsed = true;
127
128
4
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4
        return Status::OK();
130
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE4initEv
Line
Count
Source
110
4
    Status init() override {
111
4
        CHECK(!_parsed);
112
113
4
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
4
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
4
        _parsed = true;
127
128
4
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4
        return Status::OK();
130
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE4initEv
Line
Count
Source
110
4
    Status init() override {
111
4
        CHECK(!_parsed);
112
113
4
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
4
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
4
        _parsed = true;
127
128
4
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4
        return Status::OK();
130
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE4initEv
Line
Count
Source
110
6
    Status init() override {
111
6
        CHECK(!_parsed);
112
113
6
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
6
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
6
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
6
        _parsed = true;
127
128
6
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
6
        return Status::OK();
130
6
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE4initEv
Line
Count
Source
110
3
    Status init() override {
111
3
        CHECK(!_parsed);
112
113
3
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
3
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
3
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
3
        _parsed = true;
127
128
3
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
3
        return Status::OK();
130
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE4initEv
Line
Count
Source
110
4
    Status init() override {
111
4
        CHECK(!_parsed);
112
113
4
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
4
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
4
        _parsed = true;
127
128
4
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4
        return Status::OK();
130
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE4initEv
Line
Count
Source
110
8
    Status init() override {
111
8
        CHECK(!_parsed);
112
113
8
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
8
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
8
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
8
        _parsed = true;
127
128
8
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
8
        return Status::OK();
130
8
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE4initEv
Line
Count
Source
110
16
    Status init() override {
111
16
        CHECK(!_parsed);
112
113
16
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
16
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
16
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
16
        _parsed = true;
127
128
16
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
16
        return Status::OK();
130
16
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE4initEv
Line
Count
Source
110
3
    Status init() override {
111
3
        CHECK(!_parsed);
112
113
3
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
3
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
3
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
3
        _parsed = true;
127
128
3
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
3
        return Status::OK();
130
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE4initEv
Line
Count
Source
110
8
    Status init() override {
111
8
        CHECK(!_parsed);
112
113
8
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
8
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
8
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
8
        _parsed = true;
127
128
8
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
8
        return Status::OK();
130
8
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE4initEv
Line
Count
Source
110
8
    Status init() override {
111
8
        CHECK(!_parsed);
112
113
8
        if (_data.size < PLAIN_PAGE_HEADER_SIZE) {
114
0
            return Status::InternalError(
115
0
                    "file corruption: not enough bytes for header in PlainPageDecoder ."
116
0
                    "invalid data size:{}, header size:{}",
117
0
                    _data.size, PLAIN_PAGE_HEADER_SIZE);
118
0
        }
119
120
8
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
8
        if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) {
123
0
            return Status::InternalError("file corruption: unexpected data size.");
124
0
        }
125
126
8
        _parsed = true;
127
128
8
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
8
        return Status::OK();
130
8
    }
131
132
2.21M
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
2.21M
        if (_num_elems == 0) [[unlikely]] {
135
7.93k
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
7.93k
        }
140
141
2.21M
        DCHECK_LE(pos, _num_elems);
142
143
2.21M
        _cur_idx = cast_set<uint32_t>(pos);
144
2.21M
        return Status::OK();
145
2.21M
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
132
341k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
341k
        if (_num_elems == 0) [[unlikely]] {
135
610
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
610
        }
140
141
341k
        DCHECK_LE(pos, _num_elems);
142
143
341k
        _cur_idx = cast_set<uint32_t>(pos);
144
341k
        return Status::OK();
145
341k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
132
243k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
243k
        if (_num_elems == 0) [[unlikely]] {
135
174
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
174
        }
140
141
243k
        DCHECK_LE(pos, _num_elems);
142
143
243k
        _cur_idx = cast_set<uint32_t>(pos);
144
243k
        return Status::OK();
145
243k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
132
808k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
808k
        if (_num_elems == 0) [[unlikely]] {
135
3.16k
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
3.16k
        }
140
141
808k
        DCHECK_LE(pos, _num_elems);
142
143
808k
        _cur_idx = cast_set<uint32_t>(pos);
144
808k
        return Status::OK();
145
808k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
132
214k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
214k
        if (_num_elems == 0) [[unlikely]] {
135
3.20k
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
3.20k
        }
140
141
214k
        DCHECK_LE(pos, _num_elems);
142
143
214k
        _cur_idx = cast_set<uint32_t>(pos);
144
214k
        return Status::OK();
145
214k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
132
137k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
137k
        if (_num_elems == 0) [[unlikely]] {
135
326
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
326
        }
140
141
137k
        DCHECK_LE(pos, _num_elems);
142
143
137k
        _cur_idx = cast_set<uint32_t>(pos);
144
137k
        return Status::OK();
145
137k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
132
246k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
246k
        if (_num_elems == 0) [[unlikely]] {
135
175
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
175
        }
140
141
246k
        DCHECK_LE(pos, _num_elems);
142
143
246k
        _cur_idx = cast_set<uint32_t>(pos);
144
246k
        return Status::OK();
145
246k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
132
225k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
225k
        if (_num_elems == 0) [[unlikely]] {
135
274
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
274
        }
140
141
225k
        DCHECK_LE(pos, _num_elems);
142
143
225k
        _cur_idx = cast_set<uint32_t>(pos);
144
225k
        return Status::OK();
145
225k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm
Line
Count
Source
132
6
    Status seek_to_position_in_page(size_t pos) override {
133
6
        CHECK(_parsed) << "Must call init()";
134
6
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
6
        DCHECK_LE(pos, _num_elems);
142
143
6
        _cur_idx = cast_set<uint32_t>(pos);
144
6
        return Status::OK();
145
6
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Line
Count
Source
132
3
    Status seek_to_position_in_page(size_t pos) override {
133
3
        CHECK(_parsed) << "Must call init()";
134
3
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
3
        DCHECK_LE(pos, _num_elems);
142
143
3
        _cur_idx = cast_set<uint32_t>(pos);
144
3
        return Status::OK();
145
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Line
Count
Source
132
3
    Status seek_to_position_in_page(size_t pos) override {
133
3
        CHECK(_parsed) << "Must call init()";
134
3
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
3
        DCHECK_LE(pos, _num_elems);
142
143
3
        _cur_idx = cast_set<uint32_t>(pos);
144
3
        return Status::OK();
145
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Line
Count
Source
132
4
    Status seek_to_position_in_page(size_t pos) override {
133
4
        CHECK(_parsed) << "Must call init()";
134
4
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
4
        DCHECK_LE(pos, _num_elems);
142
143
4
        _cur_idx = cast_set<uint32_t>(pos);
144
4
        return Status::OK();
145
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm
Line
Count
Source
132
4
    Status seek_to_position_in_page(size_t pos) override {
133
4
        CHECK(_parsed) << "Must call init()";
134
4
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
4
        DCHECK_LE(pos, _num_elems);
142
143
4
        _cur_idx = cast_set<uint32_t>(pos);
144
4
        return Status::OK();
145
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Line
Count
Source
132
4
    Status seek_to_position_in_page(size_t pos) override {
133
4
        CHECK(_parsed) << "Must call init()";
134
4
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
4
        DCHECK_LE(pos, _num_elems);
142
143
4
        _cur_idx = cast_set<uint32_t>(pos);
144
4
        return Status::OK();
145
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Line
Count
Source
132
4
    Status seek_to_position_in_page(size_t pos) override {
133
4
        CHECK(_parsed) << "Must call init()";
134
4
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
4
        DCHECK_LE(pos, _num_elems);
142
143
4
        _cur_idx = cast_set<uint32_t>(pos);
144
4
        return Status::OK();
145
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Line
Count
Source
132
6
    Status seek_to_position_in_page(size_t pos) override {
133
6
        CHECK(_parsed) << "Must call init()";
134
6
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
6
        DCHECK_LE(pos, _num_elems);
142
143
6
        _cur_idx = cast_set<uint32_t>(pos);
144
6
        return Status::OK();
145
6
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Line
Count
Source
132
3
    Status seek_to_position_in_page(size_t pos) override {
133
3
        CHECK(_parsed) << "Must call init()";
134
3
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
3
        DCHECK_LE(pos, _num_elems);
142
143
3
        _cur_idx = cast_set<uint32_t>(pos);
144
3
        return Status::OK();
145
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Line
Count
Source
132
4
    Status seek_to_position_in_page(size_t pos) override {
133
4
        CHECK(_parsed) << "Must call init()";
134
4
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
4
        DCHECK_LE(pos, _num_elems);
142
143
4
        _cur_idx = cast_set<uint32_t>(pos);
144
4
        return Status::OK();
145
4
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Line
Count
Source
132
8
    Status seek_to_position_in_page(size_t pos) override {
133
8
        CHECK(_parsed) << "Must call init()";
134
8
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
8
        DCHECK_LE(pos, _num_elems);
142
143
8
        _cur_idx = cast_set<uint32_t>(pos);
144
8
        return Status::OK();
145
8
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Line
Count
Source
132
16
    Status seek_to_position_in_page(size_t pos) override {
133
16
        CHECK(_parsed) << "Must call init()";
134
16
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
16
        DCHECK_LE(pos, _num_elems);
142
143
16
        _cur_idx = cast_set<uint32_t>(pos);
144
16
        return Status::OK();
145
16
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Line
Count
Source
132
3
    Status seek_to_position_in_page(size_t pos) override {
133
3
        CHECK(_parsed) << "Must call init()";
134
3
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
3
        DCHECK_LE(pos, _num_elems);
142
143
3
        _cur_idx = cast_set<uint32_t>(pos);
144
3
        return Status::OK();
145
3
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
Line
Count
Source
132
8
    Status seek_to_position_in_page(size_t pos) override {
133
8
        CHECK(_parsed) << "Must call init()";
134
8
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
8
        DCHECK_LE(pos, _num_elems);
142
143
8
        _cur_idx = cast_set<uint32_t>(pos);
144
8
        return Status::OK();
145
8
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE24seek_to_position_in_pageEm
Line
Count
Source
132
8
    Status seek_to_position_in_page(size_t pos) override {
133
8
        CHECK(_parsed) << "Must call init()";
134
8
        if (_num_elems == 0) [[unlikely]] {
135
0
            if (pos != 0) {
136
0
                return Status::Error<ErrorCode::INTERNAL_ERROR, false>(
137
0
                        "seek pos {} is larger than total elements  {}", pos, _num_elems);
138
0
            }
139
0
        }
140
141
8
        DCHECK_LE(pos, _num_elems);
142
143
8
        _cur_idx = cast_set<uint32_t>(pos);
144
8
        return Status::OK();
145
8
    }
146
147
21
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
148
21
        DCHECK(_parsed) << "Must call init() firstly";
149
150
21
        if (_num_elems == 0) {
151
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
152
0
        }
153
154
21
        uint32_t left = 0;
155
21
        uint32_t right = _num_elems;
156
157
21
        const void* mid_value = nullptr;
158
159
        // find the first value >= target. after loop,
160
        // - left == index of first value >= target when found
161
        // - left == _num_elems when not found (all values < target)
162
133
        while (left < right) {
163
112
            uint32_t mid = left + (right - left) / 2;
164
112
            mid_value = &_data[PLAIN_PAGE_HEADER_SIZE + mid * SIZE_OF_TYPE];
165
112
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
166
49
                left = mid + 1;
167
63
            } else {
168
63
                right = mid;
169
63
            }
170
112
        }
171
21
        if (left >= _num_elems) {
172
3
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
173
3
        }
174
18
        const void* find_value = &_data[PLAIN_PAGE_HEADER_SIZE + left * SIZE_OF_TYPE];
175
18
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
176
15
            *exact_match = true;
177
15
        } else {
178
3
            *exact_match = false;
179
3
        }
180
181
18
        _cur_idx = left;
182
18
        return Status::OK();
183
21
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb
Line
Count
Source
147
5
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
148
5
        DCHECK(_parsed) << "Must call init() firstly";
149
150
5
        if (_num_elems == 0) {
151
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
152
0
        }
153
154
5
        uint32_t left = 0;
155
5
        uint32_t right = _num_elems;
156
157
5
        const void* mid_value = nullptr;
158
159
        // find the first value >= target. after loop,
160
        // - left == index of first value >= target when found
161
        // - left == _num_elems when not found (all values < target)
162
54
        while (left < right) {
163
49
            uint32_t mid = left + (right - left) / 2;
164
49
            mid_value = &_data[PLAIN_PAGE_HEADER_SIZE + mid * SIZE_OF_TYPE];
165
49
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
166
22
                left = mid + 1;
167
27
            } else {
168
27
                right = mid;
169
27
            }
170
49
        }
171
5
        if (left >= _num_elems) {
172
1
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
173
1
        }
174
4
        const void* find_value = &_data[PLAIN_PAGE_HEADER_SIZE + left * SIZE_OF_TYPE];
175
4
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
176
3
            *exact_match = true;
177
3
        } else {
178
1
            *exact_match = false;
179
1
        }
180
181
4
        _cur_idx = left;
182
4
        return Status::OK();
183
5
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb
Line
Count
Source
147
5
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
148
5
        DCHECK(_parsed) << "Must call init() firstly";
149
150
5
        if (_num_elems == 0) {
151
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
152
0
        }
153
154
5
        uint32_t left = 0;
155
5
        uint32_t right = _num_elems;
156
157
5
        const void* mid_value = nullptr;
158
159
        // find the first value >= target. after loop,
160
        // - left == index of first value >= target when found
161
        // - left == _num_elems when not found (all values < target)
162
54
        while (left < right) {
163
49
            uint32_t mid = left + (right - left) / 2;
164
49
            mid_value = &_data[PLAIN_PAGE_HEADER_SIZE + mid * SIZE_OF_TYPE];
165
49
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
166
24
                left = mid + 1;
167
25
            } else {
168
25
                right = mid;
169
25
            }
170
49
        }
171
5
        if (left >= _num_elems) {
172
1
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
173
1
        }
174
4
        const void* find_value = &_data[PLAIN_PAGE_HEADER_SIZE + left * SIZE_OF_TYPE];
175
4
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
176
3
            *exact_match = true;
177
3
        } else {
178
1
            *exact_match = false;
179
1
        }
180
181
4
        _cur_idx = left;
182
4
        return Status::OK();
183
5
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE22seek_at_or_after_valueEPKvPb
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb
Line
Count
Source
147
11
    Status seek_at_or_after_value(const void* value, bool* exact_match) override {
148
11
        DCHECK(_parsed) << "Must call init() firstly";
149
150
11
        if (_num_elems == 0) {
151
0
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty");
152
0
        }
153
154
11
        uint32_t left = 0;
155
11
        uint32_t right = _num_elems;
156
157
11
        const void* mid_value = nullptr;
158
159
        // find the first value >= target. after loop,
160
        // - left == index of first value >= target when found
161
        // - left == _num_elems when not found (all values < target)
162
25
        while (left < right) {
163
14
            uint32_t mid = left + (right - left) / 2;
164
14
            mid_value = &_data[PLAIN_PAGE_HEADER_SIZE + mid * SIZE_OF_TYPE];
165
14
            if (TypeTraits<Type>::cmp(mid_value, value) < 0) {
166
3
                left = mid + 1;
167
11
            } else {
168
11
                right = mid;
169
11
            }
170
14
        }
171
11
        if (left >= _num_elems) {
172
1
            return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value");
173
1
        }
174
10
        const void* find_value = &_data[PLAIN_PAGE_HEADER_SIZE + left * SIZE_OF_TYPE];
175
10
        if (TypeTraits<Type>::cmp(find_value, value) == 0) {
176
9
            *exact_match = true;
177
9
        } else {
178
1
            *exact_match = false;
179
1
        }
180
181
10
        _cur_idx = left;
182
10
        return Status::OK();
183
11
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE22seek_at_or_after_valueEPKvPb
184
185
743k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
743k
        DCHECK(_parsed);
187
744k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
743k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
743k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
743k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
743k
        *n = max_fetch;
197
743k
        _cur_idx += max_fetch;
198
199
743k
        return Status::OK();
200
743k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
83.9k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
83.9k
        DCHECK(_parsed);
187
83.9k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
83.9k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
83.9k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
83.9k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
83.9k
        *n = max_fetch;
197
83.9k
        _cur_idx += max_fetch;
198
199
83.9k
        return Status::OK();
200
83.9k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
12.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
12.4k
        DCHECK(_parsed);
187
12.4k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
12.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
12.4k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
12.4k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
12.4k
        *n = max_fetch;
197
12.4k
        _cur_idx += max_fetch;
198
199
12.4k
        return Status::OK();
200
12.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
518k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
518k
        DCHECK(_parsed);
187
519k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
518k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
518k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
518k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
518k
        *n = max_fetch;
197
518k
        _cur_idx += max_fetch;
198
199
518k
        return Status::OK();
200
518k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
90.4k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
90.4k
        DCHECK(_parsed);
187
90.4k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
90.4k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
90.4k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
90.4k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
90.4k
        *n = max_fetch;
197
90.4k
        _cur_idx += max_fetch;
198
199
90.4k
        return Status::OK();
200
90.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
14.8k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
14.8k
        DCHECK(_parsed);
187
14.8k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
14.8k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
14.8k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
14.8k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
14.8k
        *n = max_fetch;
197
14.8k
        _cur_idx += max_fetch;
198
199
14.8k
        return Status::OK();
200
14.8k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
8.82k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
8.82k
        DCHECK(_parsed);
187
8.82k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
8.82k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
8.82k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
8.82k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
8.82k
        *n = max_fetch;
197
8.82k
        _cur_idx += max_fetch;
198
199
8.82k
        return Status::OK();
200
8.82k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
14.0k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
14.0k
        DCHECK(_parsed);
187
14.0k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
14.0k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
14.0k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
14.0k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
14.0k
        *n = max_fetch;
197
14.0k
        _cur_idx += max_fetch;
198
199
14.0k
        return Status::OK();
200
14.0k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
93
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
93
        DCHECK(_parsed);
187
93
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
93
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
93
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
93
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
93
        *n = max_fetch;
197
93
        _cur_idx += max_fetch;
198
199
93
        return Status::OK();
200
93
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
34
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
34
        DCHECK(_parsed);
187
34
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
34
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
34
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
34
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
34
        *n = max_fetch;
197
34
        _cur_idx += max_fetch;
198
199
34
        return Status::OK();
200
34
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
28
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
28
        DCHECK(_parsed);
187
28
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
28
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
28
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
28
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
28
        *n = max_fetch;
197
28
        _cur_idx += max_fetch;
198
199
28
        return Status::OK();
200
28
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
30
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
30
        DCHECK(_parsed);
187
30
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
30
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
30
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
30
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
30
        *n = max_fetch;
197
30
        _cur_idx += max_fetch;
198
199
30
        return Status::OK();
200
30
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
38
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
38
        DCHECK(_parsed);
187
38
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
38
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
38
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
38
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
38
        *n = max_fetch;
197
38
        _cur_idx += max_fetch;
198
199
38
        return Status::OK();
200
38
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
26
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
26
        DCHECK(_parsed);
187
26
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
26
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
26
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
26
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
26
        *n = max_fetch;
197
26
        _cur_idx += max_fetch;
198
199
26
        return Status::OK();
200
26
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
30
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
30
        DCHECK(_parsed);
187
30
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
30
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
30
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
30
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
30
        *n = max_fetch;
197
30
        _cur_idx += max_fetch;
198
199
30
        return Status::OK();
200
30
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
30
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
30
        DCHECK(_parsed);
187
30
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
30
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
30
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
30
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
30
        *n = max_fetch;
197
30
        _cur_idx += max_fetch;
198
199
30
        return Status::OK();
200
30
    }
201
202
    Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n,
203
197k
                          MutableColumnPtr& dst) override {
204
197k
        DCHECK(_parsed);
205
197k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
197k
        auto total = *n;
210
197k
        auto read_count = 0;
211
197k
        _buffer.resize(total);
212
66.3M
        for (size_t i = 0; i < total; ++i) {
213
66.1M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
66.1M
            if (UNLIKELY(ord >= _num_elems)) {
215
4.56k
                break;
216
4.56k
            }
217
218
66.1M
            _buffer[read_count++] =
219
66.1M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
66.1M
        }
221
222
197k
        if (LIKELY(read_count > 0)) {
223
197k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
197k
        }
225
226
197k
        *n = read_count;
227
197k
        return Status::OK();
228
197k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
31.9k
                          MutableColumnPtr& dst) override {
204
31.9k
        DCHECK(_parsed);
205
31.9k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
31.9k
        auto total = *n;
210
31.9k
        auto read_count = 0;
211
31.9k
        _buffer.resize(total);
212
1.34M
        for (size_t i = 0; i < total; ++i) {
213
1.30M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
1.30M
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
1.30M
            _buffer[read_count++] =
219
1.30M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
1.30M
        }
221
222
31.9k
        if (LIKELY(read_count > 0)) {
223
31.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
31.9k
        }
225
226
31.9k
        *n = read_count;
227
31.9k
        return Status::OK();
228
31.9k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
4.11k
                          MutableColumnPtr& dst) override {
204
4.11k
        DCHECK(_parsed);
205
4.11k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
4.11k
        auto total = *n;
210
4.11k
        auto read_count = 0;
211
4.11k
        _buffer.resize(total);
212
592k
        for (size_t i = 0; i < total; ++i) {
213
588k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
588k
            if (UNLIKELY(ord >= _num_elems)) {
215
14
                break;
216
14
            }
217
218
588k
            _buffer[read_count++] =
219
588k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
588k
        }
221
222
4.11k
        if (LIKELY(read_count > 0)) {
223
4.10k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
4.10k
        }
225
226
4.11k
        *n = read_count;
227
4.11k
        return Status::OK();
228
4.11k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
76.2k
                          MutableColumnPtr& dst) override {
204
76.2k
        DCHECK(_parsed);
205
76.2k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
76.2k
        auto total = *n;
210
76.2k
        auto read_count = 0;
211
76.2k
        _buffer.resize(total);
212
37.0M
        for (size_t i = 0; i < total; ++i) {
213
37.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
37.0M
            if (UNLIKELY(ord >= _num_elems)) {
215
2.31k
                break;
216
2.31k
            }
217
218
37.0M
            _buffer[read_count++] =
219
37.0M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
37.0M
        }
221
222
76.2k
        if (LIKELY(read_count > 0)) {
223
76.2k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
76.2k
        }
225
226
76.2k
        *n = read_count;
227
76.2k
        return Status::OK();
228
76.2k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
67.9k
                          MutableColumnPtr& dst) override {
204
67.9k
        DCHECK(_parsed);
205
67.9k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
67.9k
        auto total = *n;
210
67.9k
        auto read_count = 0;
211
67.9k
        _buffer.resize(total);
212
23.8M
        for (size_t i = 0; i < total; ++i) {
213
23.7M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
23.7M
            if (UNLIKELY(ord >= _num_elems)) {
215
1.40k
                break;
216
1.40k
            }
217
218
23.7M
            _buffer[read_count++] =
219
23.7M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
23.7M
        }
221
222
67.9k
        if (LIKELY(read_count > 0)) {
223
67.9k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
67.9k
        }
225
226
67.9k
        *n = read_count;
227
67.9k
        return Status::OK();
228
67.9k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
7.13k
                          MutableColumnPtr& dst) override {
204
7.13k
        DCHECK(_parsed);
205
7.13k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
7.13k
        auto total = *n;
210
7.13k
        auto read_count = 0;
211
7.13k
        _buffer.resize(total);
212
1.50M
        for (size_t i = 0; i < total; ++i) {
213
1.50M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
1.50M
            if (UNLIKELY(ord >= _num_elems)) {
215
539
                break;
216
539
            }
217
218
1.50M
            _buffer[read_count++] =
219
1.50M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
1.50M
        }
221
222
7.13k
        if (LIKELY(read_count > 0)) {
223
7.13k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
7.13k
        }
225
226
7.13k
        *n = read_count;
227
7.13k
        return Status::OK();
228
7.13k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
4.01k
                          MutableColumnPtr& dst) override {
204
4.01k
        DCHECK(_parsed);
205
4.01k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
4.01k
        auto total = *n;
210
4.01k
        auto read_count = 0;
211
4.01k
        _buffer.resize(total);
212
1.09M
        for (size_t i = 0; i < total; ++i) {
213
1.08M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
1.08M
            if (UNLIKELY(ord >= _num_elems)) {
215
31
                break;
216
31
            }
217
218
1.08M
            _buffer[read_count++] =
219
1.08M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
1.08M
        }
221
222
4.01k
        if (LIKELY(read_count > 0)) {
223
4.01k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
4.01k
        }
225
226
4.01k
        *n = read_count;
227
4.01k
        return Status::OK();
228
4.01k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
6.22k
                          MutableColumnPtr& dst) override {
204
6.22k
        DCHECK(_parsed);
205
6.22k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
6.22k
        auto total = *n;
210
6.22k
        auto read_count = 0;
211
6.22k
        _buffer.resize(total);
212
936k
        for (size_t i = 0; i < total; ++i) {
213
930k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
930k
            if (UNLIKELY(ord >= _num_elems)) {
215
261
                break;
216
261
            }
217
218
930k
            _buffer[read_count++] =
219
930k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
930k
        }
221
222
6.22k
        if (LIKELY(read_count > 0)) {
223
6.22k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
6.22k
        }
225
226
6.22k
        *n = read_count;
227
6.22k
        return Status::OK();
228
6.22k
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
229
230
0
    size_t count() const override {
231
0
        DCHECK(_parsed);
232
0
        return _num_elems;
233
0
    }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE5countEv
234
235
1.32M
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
1.32M
        return _cur_idx;
238
1.32M
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
235
231k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
231k
        return _cur_idx;
238
231k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
235
230k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
230k
        return _cur_idx;
238
230k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
235
237k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
237k
        return _cur_idx;
238
237k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
235
65.4k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
65.4k
        return _cur_idx;
238
65.4k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE13current_indexEv
Line
Count
Source
235
116k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
116k
        return _cur_idx;
238
116k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
235
236k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
236k
        return _cur_idx;
238
236k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
235
209k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
209k
        return _cur_idx;
238
209k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE13current_indexEv
Line
Count
Source
235
13
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
13
        return _cur_idx;
238
13
    }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE42EE13current_indexEv
239
240
private:
241
    Slice _data;
242
    PageDecoderOptions _options;
243
    bool _parsed;
244
    uint32_t _num_elems;
245
    uint32_t _cur_idx;
246
    typedef typename TypeTraits<Type>::CppType CppType;
247
    enum { SIZE_OF_TYPE = TypeTraits<Type>::size };
248
249
    std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer;
250
};
251
252
} // namespace segment_v2
253
} // namespace doris