Coverage Report

Created: 2026-10-11 04:06

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
164k
    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
164k
        return reset();
45
164k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
41
25.6k
    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
25.6k
        return reset();
45
25.6k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
41
5.01k
    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.01k
        return reset();
45
5.01k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
41
42.5k
    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
42.5k
        return reset();
45
42.5k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
41
76.5k
    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
76.5k
        return reset();
45
76.5k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
41
8.09k
    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.09k
        return reset();
45
8.09k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
41
2.87k
    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.87k
        return reset();
45
2.87k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
41
3.69k
    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.69k
        return reset();
45
3.69k
    }
_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
980k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE12is_page_fullEv
Line
Count
Source
47
64.3k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE12is_page_fullEv
Line
Count
Source
47
21.4k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE12is_page_fullEv
Line
Count
Source
47
313k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE12is_page_fullEv
Line
Count
Source
47
544k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE12is_page_fullEv
Line
Count
Source
47
16.6k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE12is_page_fullEv
Line
Count
Source
47
6.56k
    bool is_page_full() override { return _remain_element_capacity == 0; }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE12is_page_fullEv
Line
Count
Source
47
10.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
490k
    Status add(const uint8_t* vals, size_t* count) override {
50
490k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
490k
        size_t old_size = _buffer.size();
55
490k
        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
490k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
490k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
490k
        _count += to_add;
61
490k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
490k
        *count = to_add;
64
490k
        _remain_element_capacity -= to_add;
65
490k
        return Status::OK();
66
490k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE3addEPKhPm
Line
Count
Source
49
32.1k
    Status add(const uint8_t* vals, size_t* count) override {
50
32.1k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
32.1k
        size_t old_size = _buffer.size();
55
32.1k
        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
32.1k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
32.1k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
32.1k
        _count += to_add;
61
32.1k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
32.1k
        *count = to_add;
64
32.1k
        _remain_element_capacity -= to_add;
65
32.1k
        return Status::OK();
66
32.1k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE3addEPKhPm
Line
Count
Source
49
10.7k
    Status add(const uint8_t* vals, size_t* count) override {
50
10.7k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
10.7k
        size_t old_size = _buffer.size();
55
10.7k
        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
10.7k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
10.7k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
10.7k
        _count += to_add;
61
10.7k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
10.7k
        *count = to_add;
64
10.7k
        _remain_element_capacity -= to_add;
65
10.7k
        return Status::OK();
66
10.7k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE3addEPKhPm
Line
Count
Source
49
156k
    Status add(const uint8_t* vals, size_t* count) override {
50
156k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
156k
        size_t old_size = _buffer.size();
55
156k
        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
156k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
156k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
156k
        _count += to_add;
61
156k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
156k
        *count = to_add;
64
156k
        _remain_element_capacity -= to_add;
65
156k
        return Status::OK();
66
156k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE3addEPKhPm
Line
Count
Source
49
272k
    Status add(const uint8_t* vals, size_t* count) override {
50
272k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
272k
        size_t old_size = _buffer.size();
55
272k
        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
272k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
272k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
272k
        _count += to_add;
61
272k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
272k
        *count = to_add;
64
272k
        _remain_element_capacity -= to_add;
65
272k
        return Status::OK();
66
272k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE3addEPKhPm
Line
Count
Source
49
8.33k
    Status add(const uint8_t* vals, size_t* count) override {
50
8.33k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
8.33k
        size_t old_size = _buffer.size();
55
8.33k
        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
8.33k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
8.32k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
8.32k
        _count += to_add;
61
8.32k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
8.32k
        *count = to_add;
64
8.32k
        _remain_element_capacity -= to_add;
65
8.32k
        return Status::OK();
66
8.33k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE3addEPKhPm
Line
Count
Source
49
3.28k
    Status add(const uint8_t* vals, size_t* count) override {
50
3.28k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
3.28k
        size_t old_size = _buffer.size();
55
3.28k
        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.28k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
3.28k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
3.28k
        _count += to_add;
61
3.28k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
3.28k
        *count = to_add;
64
3.28k
        _remain_element_capacity -= to_add;
65
3.28k
        return Status::OK();
66
3.28k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE3addEPKhPm
Line
Count
Source
49
5.17k
    Status add(const uint8_t* vals, size_t* count) override {
50
5.17k
        if (is_page_full() || *count == 0) {
51
0
            *count = 0;
52
0
            return Status::OK();
53
0
        }
54
5.17k
        size_t old_size = _buffer.size();
55
5.17k
        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.17k
        RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE));
59
5.17k
        memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE);
60
5.17k
        _count += to_add;
61
5.17k
        _raw_data_size += to_add * SIZE_OF_TYPE;
62
63
5.17k
        *count = to_add;
64
5.17k
        _remain_element_capacity -= to_add;
65
5.17k
        return Status::OK();
66
5.17k
    }
_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
172k
    Status finish(OwnedSlice* slice) override {
69
172k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
172k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
172k
        return Status::OK();
72
172k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
24.8k
    Status finish(OwnedSlice* slice) override {
69
24.8k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
24.8k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
24.9k
        return Status::OK();
72
24.8k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
4.94k
    Status finish(OwnedSlice* slice) override {
69
4.94k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
4.94k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
4.94k
        return Status::OK();
72
4.94k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
46.6k
    Status finish(OwnedSlice* slice) override {
69
46.6k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
46.6k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
46.6k
        return Status::OK();
72
46.6k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
80.4k
    Status finish(OwnedSlice* slice) override {
69
80.4k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
80.4k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
80.4k
        return Status::OK();
72
80.4k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
8.31k
    Status finish(OwnedSlice* slice) override {
69
8.31k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
8.31k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
8.31k
        return Status::OK();
72
8.31k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
2.90k
    Status finish(OwnedSlice* slice) override {
69
2.90k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
2.90k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
2.90k
        return Status::OK();
72
2.90k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE
Line
Count
Source
68
3.96k
    Status finish(OwnedSlice* slice) override {
69
3.96k
        encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count));
70
3.96k
        RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); });
71
3.96k
        return Status::OK();
72
3.96k
    }
_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
336k
    Status reset() override {
75
336k
        RETURN_IF_CATCH_EXCEPTION({
76
336k
            _buffer.reserve(_options.data_page_size);
77
336k
            _count = 0;
78
336k
            _raw_data_size = 0;
79
336k
            _buffer.clear();
80
336k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
336k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
336k
        });
83
337k
        return Status::OK();
84
336k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5resetEv
Line
Count
Source
74
50.5k
    Status reset() override {
75
50.5k
        RETURN_IF_CATCH_EXCEPTION({
76
50.5k
            _buffer.reserve(_options.data_page_size);
77
50.5k
            _count = 0;
78
50.5k
            _raw_data_size = 0;
79
50.5k
            _buffer.clear();
80
50.5k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
50.5k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
50.5k
        });
83
50.5k
        return Status::OK();
84
50.5k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5resetEv
Line
Count
Source
74
9.95k
    Status reset() override {
75
9.95k
        RETURN_IF_CATCH_EXCEPTION({
76
9.95k
            _buffer.reserve(_options.data_page_size);
77
9.95k
            _count = 0;
78
9.95k
            _raw_data_size = 0;
79
9.95k
            _buffer.clear();
80
9.95k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
9.95k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
9.95k
        });
83
9.96k
        return Status::OK();
84
9.95k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5resetEv
Line
Count
Source
74
89.0k
    Status reset() override {
75
89.0k
        RETURN_IF_CATCH_EXCEPTION({
76
89.0k
            _buffer.reserve(_options.data_page_size);
77
89.0k
            _count = 0;
78
89.0k
            _raw_data_size = 0;
79
89.0k
            _buffer.clear();
80
89.0k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
89.0k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
89.0k
        });
83
89.4k
        return Status::OK();
84
89.0k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5resetEv
Line
Count
Source
74
156k
    Status reset() override {
75
156k
        RETURN_IF_CATCH_EXCEPTION({
76
156k
            _buffer.reserve(_options.data_page_size);
77
156k
            _count = 0;
78
156k
            _raw_data_size = 0;
79
156k
            _buffer.clear();
80
156k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
156k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
156k
        });
83
157k
        return Status::OK();
84
156k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5resetEv
Line
Count
Source
74
16.4k
    Status reset() override {
75
16.4k
        RETURN_IF_CATCH_EXCEPTION({
76
16.4k
            _buffer.reserve(_options.data_page_size);
77
16.4k
            _count = 0;
78
16.4k
            _raw_data_size = 0;
79
16.4k
            _buffer.clear();
80
16.4k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
16.4k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
16.4k
        });
83
16.4k
        return Status::OK();
84
16.4k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5resetEv
Line
Count
Source
74
5.77k
    Status reset() override {
75
5.77k
        RETURN_IF_CATCH_EXCEPTION({
76
5.77k
            _buffer.reserve(_options.data_page_size);
77
5.77k
            _count = 0;
78
5.77k
            _raw_data_size = 0;
79
5.77k
            _buffer.clear();
80
5.77k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
5.77k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
5.77k
        });
83
5.77k
        return Status::OK();
84
5.77k
    }
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5resetEv
Line
Count
Source
74
7.65k
    Status reset() override {
75
7.65k
        RETURN_IF_CATCH_EXCEPTION({
76
7.65k
            _buffer.reserve(_options.data_page_size);
77
7.65k
            _count = 0;
78
7.65k
            _raw_data_size = 0;
79
7.65k
            _buffer.clear();
80
7.65k
            _buffer.resize(PLAIN_PAGE_HEADER_SIZE);
81
7.65k
            _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE;
82
7.65k
        });
83
7.66k
        return Status::OK();
84
7.65k
    }
_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
12.5k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4sizeEv
Line
Count
Source
88
2.08k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4sizeEv
Line
Count
Source
88
885
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4sizeEv
Line
Count
Source
88
4.04k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4sizeEv
Line
Count
Source
88
2.99k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4sizeEv
Line
Count
Source
88
1.38k
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4sizeEv
Line
Count
Source
88
552
    uint64_t size() const override { return _buffer.size(); }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4sizeEv
Line
Count
Source
88
564
    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
172k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv
Line
Count
Source
90
24.8k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv
Line
Count
Source
90
4.94k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv
Line
Count
Source
90
46.6k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv
Line
Count
Source
90
80.4k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv
Line
Count
Source
90
8.31k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv
Line
Count
Source
90
2.89k
    uint64_t get_raw_data_size() const override { return _raw_data_size; }
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv
Line
Count
Source
90
3.96k
    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
164k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
25.6k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
5.00k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
42.3k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
76.4k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
8.07k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
2.87k
    PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE
Line
Count
Source
93
3.68k
    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
267k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
47.4k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
6.77k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
129k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
60.7k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
11.4k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
4.66k
            : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE
Line
Count
Source
108
7.35k
            : _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
267k
    Status init() override {
111
267k
        CHECK(!_parsed);
112
113
267k
        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
267k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
267k
        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
267k
        _parsed = true;
127
128
267k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
267k
        return Status::OK();
130
267k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE4initEv
Line
Count
Source
110
47.4k
    Status init() override {
111
47.4k
        CHECK(!_parsed);
112
113
47.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
47.4k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
47.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
47.4k
        _parsed = true;
127
128
47.4k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
47.4k
        return Status::OK();
130
47.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE4initEv
Line
Count
Source
110
6.77k
    Status init() override {
111
6.77k
        CHECK(!_parsed);
112
113
6.77k
        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.77k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
6.77k
        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.77k
        _parsed = true;
127
128
6.77k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
6.77k
        return Status::OK();
130
6.77k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE4initEv
Line
Count
Source
110
128k
    Status init() override {
111
128k
        CHECK(!_parsed);
112
113
128k
        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
128k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
128k
        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
128k
        _parsed = true;
127
128
128k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
128k
        return Status::OK();
130
128k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE4initEv
Line
Count
Source
110
60.6k
    Status init() override {
111
60.6k
        CHECK(!_parsed);
112
113
60.6k
        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
60.6k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
60.6k
        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
60.6k
        _parsed = true;
127
128
60.6k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
60.6k
        return Status::OK();
130
60.6k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE4initEv
Line
Count
Source
110
11.4k
    Status init() override {
111
11.4k
        CHECK(!_parsed);
112
113
11.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
11.4k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
11.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
11.4k
        _parsed = true;
127
128
11.4k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
11.4k
        return Status::OK();
130
11.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE4initEv
Line
Count
Source
110
4.66k
    Status init() override {
111
4.66k
        CHECK(!_parsed);
112
113
4.66k
        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.66k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
4.66k
        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.66k
        _parsed = true;
127
128
4.66k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
4.66k
        return Status::OK();
130
4.66k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE4initEv
Line
Count
Source
110
7.34k
    Status init() override {
111
7.34k
        CHECK(!_parsed);
112
113
7.34k
        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
7.34k
        _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]);
121
122
7.34k
        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
7.34k
        _parsed = true;
127
128
7.34k
        RETURN_IF_ERROR(seek_to_position_in_page(0));
129
7.34k
        return Status::OK();
130
7.34k
    }
_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
677k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
677k
        if (_num_elems == 0) [[unlikely]] {
135
6.75k
            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
6.75k
        }
140
141
677k
        DCHECK_LE(pos, _num_elems);
142
143
677k
        _cur_idx = cast_set<uint32_t>(pos);
144
677k
        return Status::OK();
145
677k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm
Line
Count
Source
132
103k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
103k
        if (_num_elems == 0) [[unlikely]] {
135
570
            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
570
        }
140
141
103k
        DCHECK_LE(pos, _num_elems);
142
143
103k
        _cur_idx = cast_set<uint32_t>(pos);
144
103k
        return Status::OK();
145
103k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm
Line
Count
Source
132
8.81k
    Status seek_to_position_in_page(size_t pos) override {
133
8.81k
        CHECK(_parsed) << "Must call init()";
134
8.81k
        if (_num_elems == 0) [[unlikely]] {
135
100
            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
100
        }
140
141
8.81k
        DCHECK_LE(pos, _num_elems);
142
143
8.81k
        _cur_idx = cast_set<uint32_t>(pos);
144
8.81k
        return Status::OK();
145
8.81k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm
Line
Count
Source
132
438k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
438k
        if (_num_elems == 0) [[unlikely]] {
135
2.77k
            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
2.77k
        }
140
141
438k
        DCHECK_LE(pos, _num_elems);
142
143
438k
        _cur_idx = cast_set<uint32_t>(pos);
144
438k
        return Status::OK();
145
438k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm
Line
Count
Source
132
97.4k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
97.4k
        if (_num_elems == 0) [[unlikely]] {
135
2.81k
            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
2.81k
        }
140
141
97.4k
        DCHECK_LE(pos, _num_elems);
142
143
97.4k
        _cur_idx = cast_set<uint32_t>(pos);
144
97.4k
        return Status::OK();
145
97.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm
Line
Count
Source
132
15.5k
    Status seek_to_position_in_page(size_t pos) override {
133
18.4E
        CHECK(_parsed) << "Must call init()";
134
15.5k
        if (_num_elems == 0) [[unlikely]] {
135
264
            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
264
        }
140
141
15.5k
        DCHECK_LE(pos, _num_elems);
142
143
15.5k
        _cur_idx = cast_set<uint32_t>(pos);
144
15.5k
        return Status::OK();
145
15.5k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm
Line
Count
Source
132
5.11k
    Status seek_to_position_in_page(size_t pos) override {
133
5.11k
        CHECK(_parsed) << "Must call init()";
134
5.11k
        if (_num_elems == 0) [[unlikely]] {
135
101
            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
101
        }
140
141
5.11k
        DCHECK_LE(pos, _num_elems);
142
143
5.11k
        _cur_idx = cast_set<uint32_t>(pos);
144
5.11k
        return Status::OK();
145
5.11k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm
Line
Count
Source
132
8.53k
    Status seek_to_position_in_page(size_t pos) override {
133
8.53k
        CHECK(_parsed) << "Must call init()";
134
8.53k
        if (_num_elems == 0) [[unlikely]] {
135
119
            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
119
        }
140
141
8.53k
        DCHECK_LE(pos, _num_elems);
142
143
8.53k
        _cur_idx = cast_set<uint32_t>(pos);
144
8.53k
        return Status::OK();
145
8.53k
    }
_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
48
                left = mid + 1;
167
64
            } else {
168
64
                right = mid;
169
64
            }
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
2
                left = mid + 1;
167
12
            } else {
168
12
                right = mid;
169
12
            }
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
582k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
582k
        DCHECK(_parsed);
187
582k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
582k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
582k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
582k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
582k
        *n = max_fetch;
197
582k
        _cur_idx += max_fetch;
198
199
582k
        return Status::OK();
200
582k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
104k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
104k
        DCHECK(_parsed);
187
104k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
104k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
104k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
104k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
104k
        *n = max_fetch;
197
104k
        _cur_idx += max_fetch;
198
199
104k
        return Status::OK();
200
104k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
7.30k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
7.30k
        DCHECK(_parsed);
187
7.30k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
7.30k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
7.30k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
7.30k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
7.30k
        *n = max_fetch;
197
7.30k
        _cur_idx += max_fetch;
198
199
7.30k
        return Status::OK();
200
7.30k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
375k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
375k
        DCHECK(_parsed);
187
376k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
375k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
375k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
375k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
375k
        *n = max_fetch;
197
375k
        _cur_idx += max_fetch;
198
199
375k
        return Status::OK();
200
375k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
74.7k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
74.7k
        DCHECK(_parsed);
187
74.7k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
74.7k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
74.7k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
74.7k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
74.7k
        *n = max_fetch;
197
74.7k
        _cur_idx += max_fetch;
198
199
74.7k
        return Status::OK();
200
74.7k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
10.2k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
10.2k
        DCHECK(_parsed);
187
10.2k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
10.2k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
10.2k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
10.2k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
10.2k
        *n = max_fetch;
197
10.2k
        _cur_idx += max_fetch;
198
199
10.2k
        return Status::OK();
200
10.2k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
3.84k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
3.84k
        DCHECK(_parsed);
187
3.84k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
3.84k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
3.84k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
3.84k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
3.84k
        *n = max_fetch;
197
3.84k
        _cur_idx += max_fetch;
198
199
3.84k
        return Status::OK();
200
3.84k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE
Line
Count
Source
185
5.28k
    Status next_batch(size_t* n, MutableColumnPtr& dst) override {
186
5.28k
        DCHECK(_parsed);
187
5.29k
        if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] {
188
0
            return Status::OK();
189
0
        }
190
191
5.28k
        size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx));
192
5.28k
        const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE];
193
194
5.28k
        dst->insert_many_fix_len_data((const char*)src_data, max_fetch);
195
196
5.28k
        *n = max_fetch;
197
5.28k
        _cur_idx += max_fetch;
198
199
5.28k
        return Status::OK();
200
5.28k
    }
_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
123k
                          MutableColumnPtr& dst) override {
204
123k
        DCHECK(_parsed);
205
123k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
123k
        auto total = *n;
210
123k
        auto read_count = 0;
211
123k
        _buffer.resize(total);
212
43.3M
        for (size_t i = 0; i < total; ++i) {
213
43.2M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
43.2M
            if (UNLIKELY(ord >= _num_elems)) {
215
1.34k
                break;
216
1.34k
            }
217
218
43.2M
            _buffer[read_count++] =
219
43.2M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
43.2M
        }
221
222
123k
        if (LIKELY(read_count > 0)) {
223
123k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
123k
        }
225
226
123k
        *n = read_count;
227
123k
        return Status::OK();
228
123k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
20.8k
                          MutableColumnPtr& dst) override {
204
20.8k
        DCHECK(_parsed);
205
20.8k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
20.8k
        auto total = *n;
210
20.8k
        auto read_count = 0;
211
20.8k
        _buffer.resize(total);
212
118k
        for (size_t i = 0; i < total; ++i) {
213
97.4k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
97.4k
            if (UNLIKELY(ord >= _num_elems)) {
215
9
                break;
216
9
            }
217
218
97.4k
            _buffer[read_count++] =
219
97.4k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
97.4k
        }
221
222
20.8k
        if (LIKELY(read_count > 0)) {
223
20.8k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
20.8k
        }
225
226
20.8k
        *n = read_count;
227
20.8k
        return Status::OK();
228
20.8k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
2.69k
                          MutableColumnPtr& dst) override {
204
2.69k
        DCHECK(_parsed);
205
2.69k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
2.69k
        auto total = *n;
210
2.69k
        auto read_count = 0;
211
2.69k
        _buffer.resize(total);
212
42.3k
        for (size_t i = 0; i < total; ++i) {
213
39.6k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
39.6k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
39.6k
            _buffer[read_count++] =
219
39.6k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
39.6k
        }
221
222
2.69k
        if (LIKELY(read_count > 0)) {
223
2.69k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
2.69k
        }
225
226
2.69k
        *n = read_count;
227
2.69k
        return Status::OK();
228
2.69k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
63.4k
                          MutableColumnPtr& dst) override {
204
63.4k
        DCHECK(_parsed);
205
63.4k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
63.4k
        auto total = *n;
210
63.4k
        auto read_count = 0;
211
63.4k
        _buffer.resize(total);
212
32.1M
        for (size_t i = 0; i < total; ++i) {
213
32.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
32.0M
            if (UNLIKELY(ord >= _num_elems)) {
215
338
                break;
216
338
            }
217
218
32.0M
            _buffer[read_count++] =
219
32.0M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
32.0M
        }
221
222
63.5k
        if (LIKELY(read_count > 0)) {
223
63.5k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
63.5k
        }
225
226
63.4k
        *n = read_count;
227
63.4k
        return Status::OK();
228
63.4k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
26.3k
                          MutableColumnPtr& dst) override {
204
26.3k
        DCHECK(_parsed);
205
26.3k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
26.3k
        auto total = *n;
210
26.3k
        auto read_count = 0;
211
26.3k
        _buffer.resize(total);
212
11.0M
        for (size_t i = 0; i < total; ++i) {
213
11.0M
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
11.0M
            if (UNLIKELY(ord >= _num_elems)) {
215
997
                break;
216
997
            }
217
218
11.0M
            _buffer[read_count++] =
219
11.0M
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
11.0M
        }
221
222
26.3k
        if (LIKELY(read_count > 0)) {
223
26.3k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
26.3k
        }
225
226
26.3k
        *n = read_count;
227
26.3k
        return Status::OK();
228
26.3k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
5.06k
                          MutableColumnPtr& dst) override {
204
5.06k
        DCHECK(_parsed);
205
5.06k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
5.06k
        auto total = *n;
210
5.06k
        auto read_count = 0;
211
5.06k
        _buffer.resize(total);
212
12.9k
        for (size_t i = 0; i < total; ++i) {
213
7.90k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
7.90k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
7.90k
            _buffer[read_count++] =
219
7.90k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
7.90k
        }
221
222
5.06k
        if (LIKELY(read_count > 0)) {
223
5.06k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
5.06k
        }
225
226
5.06k
        *n = read_count;
227
5.06k
        return Status::OK();
228
5.06k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
1.66k
                          MutableColumnPtr& dst) override {
204
1.66k
        DCHECK(_parsed);
205
1.66k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
1.66k
        auto total = *n;
210
1.66k
        auto read_count = 0;
211
1.66k
        _buffer.resize(total);
212
7.36k
        for (size_t i = 0; i < total; ++i) {
213
5.70k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
5.70k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
5.70k
            _buffer[read_count++] =
219
5.70k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
5.70k
        }
221
222
1.66k
        if (LIKELY(read_count > 0)) {
223
1.66k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
1.66k
        }
225
226
1.66k
        *n = read_count;
227
1.66k
        return Status::OK();
228
1.66k
    }
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE
Line
Count
Source
203
3.56k
                          MutableColumnPtr& dst) override {
204
3.56k
        DCHECK(_parsed);
205
3.56k
        if (*n == 0) [[unlikely]] {
206
0
            return Status::OK();
207
0
        }
208
209
3.56k
        auto total = *n;
210
3.56k
        auto read_count = 0;
211
3.56k
        _buffer.resize(total);
212
14.4k
        for (size_t i = 0; i < total; ++i) {
213
10.8k
            ordinal_t ord = rowids[i] - page_first_ordinal;
214
10.8k
            if (UNLIKELY(ord >= _num_elems)) {
215
0
                break;
216
0
            }
217
218
10.8k
            _buffer[read_count++] =
219
10.8k
                    unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]);
220
10.8k
        }
221
222
3.56k
        if (LIKELY(read_count > 0)) {
223
3.56k
            dst->insert_many_fix_len_data((char*)_buffer.data(), read_count);
224
3.56k
        }
225
226
3.56k
        *n = read_count;
227
3.56k
        return Status::OK();
228
3.56k
    }
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
49.8k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
49.8k
        return _cur_idx;
238
49.8k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE13current_indexEv
Line
Count
Source
235
315
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
315
        return _cur_idx;
238
315
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE13current_indexEv
Line
Count
Source
235
155
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
155
        return _cur_idx;
238
155
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE13current_indexEv
Line
Count
Source
235
42.0k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
42.0k
        return _cur_idx;
238
42.0k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE13current_indexEv
Line
Count
Source
235
5.38k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
5.38k
        return _cur_idx;
238
5.38k
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE13current_indexEv
Line
Count
Source
235
141
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
141
        return _cur_idx;
238
141
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE13current_indexEv
Line
Count
Source
235
182
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
182
        return _cur_idx;
238
182
    }
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE13current_indexEv
Line
Count
Source
235
1.53k
    size_t current_index() const override {
236
        DCHECK(_parsed);
237
1.53k
        return _cur_idx;
238
1.53k
    }
_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