Coverage Report

Created: 2026-09-28 21:26

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
2.10k
    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.10k
        return reset();
45
2.10k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
41
1.49k
    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
1.49k
        return reset();
45
1.49k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
41
377
    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
377
        return reset();
45
377
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
41
9
    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
9
        return reset();
45
9
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
41
22
    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
22
        return reset();
45
22
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE4initEv
Line
Count
Source
41
3
    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
3
        return reset();
45
3
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
41
126
    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
126
        return reset();
45
126
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
41
36
    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
36
        return reset();
45
36
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
41
36
    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
36
        return reset();
45
36
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE4initEv
46
47
212k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
47
201k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
47
10.2k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
47
25
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
47
51
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE12is_page_fullEv
Line
Count
Source
47
3
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
47
260
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
47
80
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
47
80
    bool is_page_full() override { return _remain_element_capacity == 0; }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE12is_page_fullEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE12is_page_fullEv
48
49
106k
    Status add(const uint8_t* vals, size_t* count) override {
50
106k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
106k
        size_t old_size = _buffer.size();
55
106k
        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
106k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
106k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
106k
        _count += to_add;
61
106k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
106k
        *count = to_add;
64
106k
        _remain_element_capacity -= to_add;
65
106k
        return Status::OK();
66
106k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
49
100k
    Status add(const uint8_t* vals, size_t* count) override {
50
100k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
100k
        size_t old_size = _buffer.size();
55
100k
        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
100k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
100k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
100k
        _count += to_add;
61
100k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
100k
        *count = to_add;
64
100k
        _remain_element_capacity -= to_add;
65
100k
        return Status::OK();
66
100k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
49
5.13k
    Status add(const uint8_t* vals, size_t* count) override {
50
5.13k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
5.13k
        size_t old_size = _buffer.size();
55
5.13k
        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.13k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
5.13k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
5.13k
        _count += to_add;
61
5.13k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
5.13k
        *count = to_add;
64
5.13k
        _remain_element_capacity -= to_add;
65
5.13k
        return Status::OK();
66
5.13k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
49
13
    Status add(const uint8_t* vals, size_t* count) override {
50
13
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
13
        size_t old_size = _buffer.size();
55
13
        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
13
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
13
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
13
        _count += to_add;
61
13
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
13
        *count = to_add;
64
13
        _remain_element_capacity -= to_add;
65
13
        return Status::OK();
66
13
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
49
26
    Status add(const uint8_t* vals, size_t* count) override {
50
26
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
26
        size_t old_size = _buffer.size();
55
26
        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
26
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
26
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
26
        _count += to_add;
61
26
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
26
        *count = to_add;
64
26
        _remain_element_capacity -= to_add;
65
26
        return Status::OK();
66
26
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE3addEPKhPm
Line
Count
Source
49
3
    Status add(const uint8_t* vals, size_t* count) override {
50
3
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
3
        size_t old_size = _buffer.size();
55
3
        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
3
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
3
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
3
        _count += to_add;
61
3
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
3
        *count = to_add;
64
3
        _remain_element_capacity -= to_add;
65
3
        return Status::OK();
66
3
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
49
130
    Status add(const uint8_t* vals, size_t* count) override {
50
130
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
130
        size_t old_size = _buffer.size();
55
130
        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
130
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
130
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
130
        _count += to_add;
61
130
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
130
        *count = to_add;
64
130
        _remain_element_capacity -= to_add;
65
130
        return Status::OK();
66
130
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
49
40
    Status add(const uint8_t* vals, size_t* count) override {
50
40
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
40
        size_t old_size = _buffer.size();
55
40
        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
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
40
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
40
        _count += to_add;
61
40
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
40
        *count = to_add;
64
40
        _remain_element_capacity -= to_add;
65
40
        return Status::OK();
66
40
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
49
40
    Status add(const uint8_t* vals, size_t* count) override {
50
40
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
40
        size_t old_size = _buffer.size();
55
40
        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
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
40
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
40
        _count += to_add;
61
40
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
40
        *count = to_add;
64
40
        _remain_element_capacity -= to_add;
65
40
        return Status::OK();
66
40
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE3addEPKhPm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE3addEPKhPm
67
68
2.15k
    Status finish(OwnedSlice* slice) override {
69
2.15k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
2.15k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
2.15k
        return Status::OK();
72
2.15k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
1.52k
    Status finish(OwnedSlice* slice) override {
69
1.52k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
1.52k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
1.52k
        return Status::OK();
72
1.52k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
391
    Status finish(OwnedSlice* slice) override {
69
391
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
391
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
391
        return Status::OK();
72
391
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE6finishEPNS_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_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
22
    Status finish(OwnedSlice* slice) override {
69
22
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
22
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
22
        return Status::OK();
72
22
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
3
    Status finish(OwnedSlice* slice) override {
69
3
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
3
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
3
        return Status::OK();
72
3
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
126
    Status finish(OwnedSlice* slice) override {
69
126
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
126
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
126
        return Status::OK();
72
126
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
36
    Status finish(OwnedSlice* slice) override {
69
36
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
36
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
36
        return Status::OK();
72
36
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
36
    Status finish(OwnedSlice* slice) override {
69
36
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
36
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
36
        return Status::OK();
72
36
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE
73
74
4.24k
    Status reset() override {
75
4.24k
        RETURN_IF_CATCH_EXCEPTION({
76
4.24k
            _buffer.reserve(_options.data_page_size);
77
4.24k
            _count = 0;
78
4.24k
            _raw_data_size = 0;
79
4.24k
            _buffer.clear();
80
4.24k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
4.24k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
4.24k
        });
83
4.24k
        return Status::OK();
84
4.24k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
74
3.02k
    Status reset() override {
75
3.02k
        RETURN_IF_CATCH_EXCEPTION({
76
3.02k
            _buffer.reserve(_options.data_page_size);
77
3.02k
            _count = 0;
78
3.02k
            _raw_data_size = 0;
79
3.02k
            _buffer.clear();
80
3.02k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
3.02k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
3.02k
        });
83
3.02k
        return Status::OK();
84
3.02k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
74
766
    Status reset() override {
75
766
        RETURN_IF_CATCH_EXCEPTION({
76
766
            _buffer.reserve(_options.data_page_size);
77
766
            _count = 0;
78
766
            _raw_data_size = 0;
79
766
            _buffer.clear();
80
766
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
766
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
766
        });
83
766
        return Status::OK();
84
766
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
74
17
    Status reset() override {
75
17
        RETURN_IF_CATCH_EXCEPTION({
76
17
            _buffer.reserve(_options.data_page_size);
77
17
            _count = 0;
78
17
            _raw_data_size = 0;
79
17
            _buffer.clear();
80
17
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
17
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
17
        });
83
17
        return Status::OK();
84
17
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
74
43
    Status reset() override {
75
43
        RETURN_IF_CATCH_EXCEPTION({
76
43
            _buffer.reserve(_options.data_page_size);
77
43
            _count = 0;
78
43
            _raw_data_size = 0;
79
43
            _buffer.clear();
80
43
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
43
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
43
        });
83
43
        return Status::OK();
84
43
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE5resetEv
Line
Count
Source
74
3
    Status reset() override {
75
3
        RETURN_IF_CATCH_EXCEPTION({
76
3
            _buffer.reserve(_options.data_page_size);
77
3
            _count = 0;
78
3
            _raw_data_size = 0;
79
3
            _buffer.clear();
80
3
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
3
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
3
        });
83
3
        return Status::OK();
84
3
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
74
252
    Status reset() override {
75
252
        RETURN_IF_CATCH_EXCEPTION({
76
252
            _buffer.reserve(_options.data_page_size);
77
252
            _count = 0;
78
252
            _raw_data_size = 0;
79
252
            _buffer.clear();
80
252
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
252
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
252
        });
83
252
        return Status::OK();
84
252
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
74
72
    Status reset() override {
75
72
        RETURN_IF_CATCH_EXCEPTION({
76
72
            _buffer.reserve(_options.data_page_size);
77
72
            _count = 0;
78
72
            _raw_data_size = 0;
79
72
            _buffer.clear();
80
72
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
72
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
72
        });
83
72
        return Status::OK();
84
72
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
74
72
    Status reset() override {
75
72
        RETURN_IF_CATCH_EXCEPTION({
76
72
            _buffer.reserve(_options.data_page_size);
77
72
            _count = 0;
78
72
            _raw_data_size = 0;
79
72
            _buffer.clear();
80
72
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
72
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
72
        });
83
72
        return Status::OK();
84
72
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE5resetEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE5resetEv
85
86
0
    size_t count() const override { return _count; }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5countEv
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
87
88
827
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
88
694
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
88
33
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
88
4
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
88
4
    uint64_t size() const override { return _buffer.size(); }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE4sizeEv
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
88
60
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
88
16
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
88
16
    uint64_t size() const override { return _buffer.size(); }
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
89
90
2.14k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
90
1.52k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
90
389
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
90
8
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
90
21
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
90
126
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
90
36
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
90
36
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv
91
92
private:
93
2.10k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
1.49k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
377
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
9
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
22
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
3
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
126
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
36
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
36
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE
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
282
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
221
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
35
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
1
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
2
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
3
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
20
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
109
110
282
    Status init() override {
111
282
        CHECK(!_parsed);
112
113
282
        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
282
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
282
        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
282
        _parsed = true;
127
128
282
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
282
        return Status::OK();
130
282
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
110
221
    Status init() override {
111
221
        CHECK(!_parsed);
112
113
221
        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
221
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
221
        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
221
        _parsed = true;
127
128
221
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
221
        return Status::OK();
130
221
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
110
35
    Status init() override {
111
35
        CHECK(!_parsed);
112
113
35
        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
35
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
35
        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
35
        _parsed = true;
127
128
35
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
35
        return Status::OK();
130
35
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
110
1
    Status init() override {
111
1
        CHECK(!_parsed);
112
113
1
        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
1
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
1
        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
1
        _parsed = true;
127
128
1
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
1
        return Status::OK();
130
1
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
110
2
    Status init() override {
111
2
        CHECK(!_parsed);
112
113
2
        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
2
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
2
        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
2
        _parsed = true;
127
128
2
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
2
        return Status::OK();
130
2
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE4initEv
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_9FieldTypeE1EE4initEv
Line
Count
Source
110
20
    Status init() override {
111
20
        CHECK(!_parsed);
112
113
20
        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
20
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
20
        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
20
        _parsed = true;
127
128
20
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
20
        return Status::OK();
130
20
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE4initEv
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE4initEv
131
132
705
    Status seek_to_position_in_page(size_t pos) override {
133
705
        CHECK(_parsed) << "Must call init()";
134
705
        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
705
        DCHECK_LE(pos, _num_elems);
142
143
705
        _cur_idx = cast_set<uint32_t>(pos);
144
705
        return Status::OK();
145
705
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
132
341
    Status seek_to_position_in_page(size_t pos) override {
133
341
        CHECK(_parsed) << "Must call init()";
134
341
        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
341
        DCHECK_LE(pos, _num_elems);
142
143
341
        _cur_idx = cast_set<uint32_t>(pos);
144
341
        return Status::OK();
145
341
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
132
137
    Status seek_to_position_in_page(size_t pos) override {
133
137
        CHECK(_parsed) << "Must call init()";
134
137
        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
137
        DCHECK_LE(pos, _num_elems);
142
143
137
        _cur_idx = cast_set<uint32_t>(pos);
144
137
        return Status::OK();
145
137
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
132
101
    Status seek_to_position_in_page(size_t pos) override {
133
101
        CHECK(_parsed) << "Must call init()";
134
101
        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
101
        DCHECK_LE(pos, _num_elems);
142
143
101
        _cur_idx = cast_set<uint32_t>(pos);
144
101
        return Status::OK();
145
101
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
132
102
    Status seek_to_position_in_page(size_t pos) override {
133
102
        CHECK(_parsed) << "Must call init()";
134
102
        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
102
        DCHECK_LE(pos, _num_elems);
142
143
102
        _cur_idx = cast_set<uint32_t>(pos);
144
102
        return Status::OK();
145
102
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE24seek_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_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
132
21
    Status seek_to_position_in_page(size_t pos) override {
133
21
        CHECK(_parsed) << "Must call init()";
134
21
        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
21
        DCHECK_LE(pos, _num_elems);
142
143
21
        _cur_idx = cast_set<uint32_t>(pos);
144
21
        return Status::OK();
145
21
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm
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
50
                left = mid + 1;
167
62
            } else {
168
62
                right = mid;
169
62
            }
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
    }
_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
23
                left = mid + 1;
167
26
            } else {
168
26
                right = mid;
169
26
            }
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_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_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE22seek_at_or_after_valueEPKvPb
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
184
185
573
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
573
        DCHECK(_parsed);
187
573
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
573
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
573
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
573
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
573
        *n = max_fetch;
197
573
        _cur_idx += max_fetch;
198
199
573
        return Status::OK();
200
573
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
222
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
222
        DCHECK(_parsed);
187
222
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
222
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
222
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
222
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
222
        *n = max_fetch;
197
222
        _cur_idx += max_fetch;
198
199
222
        return Status::OK();
200
222
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
139
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
139
        DCHECK(_parsed);
187
139
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
139
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
139
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
139
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
139
        *n = max_fetch;
197
139
        _cur_idx += max_fetch;
198
199
139
        return Status::OK();
200
139
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
101
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
101
        DCHECK(_parsed);
187
101
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
101
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
101
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
101
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
101
        *n = max_fetch;
197
101
        _cur_idx += max_fetch;
198
199
101
        return Status::OK();
200
101
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
101
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
101
        DCHECK(_parsed);
187
101
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
101
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
101
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
101
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
101
        *n = max_fetch;
197
101
        _cur_idx += max_fetch;
198
199
101
        return Status::OK();
200
101
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
10
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
10
        DCHECK(_parsed);
187
10
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
10
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
10
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
10
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
10
        *n = max_fetch;
197
10
        _cur_idx += max_fetch;
198
199
10
        return Status::OK();
200
10
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
201
202
    Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n,
203
125
                          MutableColumnPtr& dst) override {
204
125
        DCHECK(_parsed);
205
125
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
125
        auto total = *n;
210
125
        auto read_count = 0;
211
125
        _buffer.resize(total);
212
8.47k
        for (size_t i = 0; i < total; ++i) {
213
8.35k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
8.35k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
8.35k
            _buffer[read_count++] =
219
8.35k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
8.35k
        }
221
222
125
        if (LIKELY(read_count > 0)) {
223
125
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
125
        }
225
226
125
        *n = read_count;
227
125
        return Status::OK();
228
125
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
106
                          MutableColumnPtr& dst) override {
204
106
        DCHECK(_parsed);
205
106
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
106
        auto total = *n;
210
106
        auto read_count = 0;
211
106
        _buffer.resize(total);
212
8.43k
        for (size_t i = 0; i < total; ++i) {
213
8.32k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
8.32k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
8.32k
            _buffer[read_count++] =
219
8.32k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
8.32k
        }
221
222
106
        if (LIKELY(read_count > 0)) {
223
106
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
106
        }
225
226
106
        *n = read_count;
227
106
        return Status::OK();
228
106
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
8
                          MutableColumnPtr& dst) override {
204
8
        DCHECK(_parsed);
205
8
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
8
        auto total = *n;
210
8
        auto read_count = 0;
211
8
        _buffer.resize(total);
212
22
        for (size_t i = 0; i < total; ++i) {
213
14
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
14
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
14
            _buffer[read_count++] =
219
14
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
14
        }
221
222
8
        if (LIKELY(read_count > 0)) {
223
8
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
8
        }
225
226
8
        *n = read_count;
227
8
        return Status::OK();
228
8
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
1
                          MutableColumnPtr& dst) override {
204
1
        DCHECK(_parsed);
205
1
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
1
        auto total = *n;
210
1
        auto read_count = 0;
211
1
        _buffer.resize(total);
212
2
        for (size_t i = 0; i < total; ++i) {
213
1
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
1
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
1
            _buffer[read_count++] =
219
1
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
1
        }
221
222
1
        if (LIKELY(read_count > 0)) {
223
1
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
1
        }
225
226
1
        *n = read_count;
227
1
        return Status::OK();
228
1
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
10
                          MutableColumnPtr& dst) override {
204
10
        DCHECK(_parsed);
205
10
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
10
        auto total = *n;
210
10
        auto read_count = 0;
211
10
        _buffer.resize(total);
212
21
        for (size_t i = 0; i < total; ++i) {
213
11
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
11
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
11
            _buffer[read_count++] =
219
11
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
11
        }
221
222
10
        if (LIKELY(read_count > 0)) {
223
10
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
10
        }
225
226
10
        *n = read_count;
227
10
        return Status::OK();
228
10
    }
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE14read_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
229
230
0
    size_t count() const override {
231
0
        DCHECK(_parsed);
232
0
        return _num_elems;
233
0
    }
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE5countEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE5countEv
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
234
235
438
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
438
        return _cur_idx;
238
438
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
235
117
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
117
        return _cur_idx;
238
117
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
235
106
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
106
        return _cur_idx;
238
106
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
235
101
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
101
        return _cur_idx;
238
101
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
235
101
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
101
        return _cur_idx;
238
101
    }
_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_9FieldTypeE1EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE13current_indexEv
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE13current_indexEv
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
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