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 | 258k | 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 | 258k | return reset(); |
45 | 258k | } _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4initEv 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_9FieldTypeE3EE4initEv Line | Count | Source | 41 | 11.8k | 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 | 11.8k | return reset(); | 45 | 11.8k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 41 | 50.7k | Status init() override { | 42 | | // Reserve enough space for the page, plus a bit of slop since | 43 | | // we often overrun the page by a few values. | 44 | 50.7k | return reset(); | 45 | 50.7k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 41 | 119k | 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 | 119k | return reset(); | 45 | 119k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 41 | 14.9k | 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 | 14.9k | return reset(); | 45 | 14.9k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 41 | 8.81k | 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.81k | return reset(); | 45 | 8.81k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 41 | 10.1k | 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 | 10.1k | return reset(); | 45 | 10.1k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE4initEv |
46 | | |
47 | 766k | bool is_page_full() override { return _remain_element_capacity == 0; }_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE12is_page_fullEv Line | Count | Source | 47 | 84.2k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE12is_page_fullEv Line | Count | Source | 47 | 23.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE12is_page_fullEv Line | Count | Source | 47 | 303k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE12is_page_fullEv Line | Count | Source | 47 | 290k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE12is_page_fullEv Line | Count | Source | 47 | 29.1k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE12is_page_fullEv Line | Count | Source | 47 | 16.5k | bool is_page_full() override { return _remain_element_capacity == 0; } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE12is_page_fullEv Line | Count | Source | 47 | 19.8k | bool is_page_full() override { return _remain_element_capacity == 0; } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE12is_page_fullEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE12is_page_fullEv |
48 | | |
49 | 383k | Status add(const uint8_t* vals, size_t* count) override { |
50 | 383k | if (is_page_full() || *count == 0) { |
51 | 0 | *count = 0; |
52 | 0 | return Status::OK(); |
53 | 0 | } |
54 | 383k | size_t old_size = _buffer.size(); |
55 | 383k | 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 | 383k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); |
59 | 383k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); |
60 | 383k | _count += to_add; |
61 | 383k | _raw_data_size += to_add * SIZE_OF_TYPE; |
62 | | |
63 | 383k | *count = to_add; |
64 | 383k | _remain_element_capacity -= to_add; |
65 | 383k | return Status::OK(); |
66 | 383k | } _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE3addEPKhPm Line | Count | Source | 49 | 42.1k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 42.1k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 42.1k | size_t old_size = _buffer.size(); | 55 | 42.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 | 42.1k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 42.1k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 42.1k | _count += to_add; | 61 | 42.1k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 42.1k | *count = to_add; | 64 | 42.1k | _remain_element_capacity -= to_add; | 65 | 42.1k | return Status::OK(); | 66 | 42.1k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE3addEPKhPm Line | Count | Source | 49 | 11.5k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 11.5k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 11.5k | size_t old_size = _buffer.size(); | 55 | 11.5k | 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 | 11.5k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 11.5k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 11.5k | _count += to_add; | 61 | 11.5k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 11.5k | *count = to_add; | 64 | 11.5k | _remain_element_capacity -= to_add; | 65 | 11.5k | return Status::OK(); | 66 | 11.5k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE3addEPKhPm Line | Count | Source | 49 | 151k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 151k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 151k | size_t old_size = _buffer.size(); | 55 | 151k | 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 | 151k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 151k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 151k | _count += to_add; | 61 | 151k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 151k | *count = to_add; | 64 | 151k | _remain_element_capacity -= to_add; | 65 | 151k | return Status::OK(); | 66 | 151k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE3addEPKhPm Line | Count | Source | 49 | 145k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 145k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 145k | size_t old_size = _buffer.size(); | 55 | 145k | 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 | 145k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 145k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 145k | _count += to_add; | 61 | 145k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 145k | *count = to_add; | 64 | 145k | _remain_element_capacity -= to_add; | 65 | 145k | return Status::OK(); | 66 | 145k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE3addEPKhPm Line | Count | Source | 49 | 14.5k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 14.5k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 14.5k | size_t old_size = _buffer.size(); | 55 | 14.5k | 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 | 14.5k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 14.5k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 14.5k | _count += to_add; | 61 | 14.5k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 14.5k | *count = to_add; | 64 | 14.5k | _remain_element_capacity -= to_add; | 65 | 14.5k | return Status::OK(); | 66 | 14.5k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE3addEPKhPm Line | Count | Source | 49 | 8.28k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 8.28k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 8.28k | size_t old_size = _buffer.size(); | 55 | 8.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 | 8.28k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 8.28k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 8.28k | _count += to_add; | 61 | 8.28k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 8.28k | *count = to_add; | 64 | 8.28k | _remain_element_capacity -= to_add; | 65 | 8.28k | return Status::OK(); | 66 | 8.28k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE3addEPKhPm Line | Count | Source | 49 | 9.93k | Status add(const uint8_t* vals, size_t* count) override { | 50 | 9.93k | if (is_page_full() || *count == 0) { | 51 | 0 | *count = 0; | 52 | 0 | return Status::OK(); | 53 | 0 | } | 54 | 9.93k | size_t old_size = _buffer.size(); | 55 | 9.93k | size_t to_add = std::min(_remain_element_capacity, *count); | 56 | | // This may need a large memory, should return error if could not allocated | 57 | | // successfully, to avoid BE OOM. | 58 | 9.93k | RETURN_IF_CATCH_EXCEPTION(_buffer.resize(old_size + to_add * SIZE_OF_TYPE)); | 59 | 9.93k | memcpy(&_buffer[old_size], vals, to_add * SIZE_OF_TYPE); | 60 | 9.93k | _count += to_add; | 61 | 9.93k | _raw_data_size += to_add * SIZE_OF_TYPE; | 62 | | | 63 | 9.93k | *count = to_add; | 64 | 9.93k | _remain_element_capacity -= to_add; | 65 | 9.93k | return Status::OK(); | 66 | 9.93k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE3addEPKhPm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE3addEPKhPm |
67 | | |
68 | 258k | Status finish(OwnedSlice* slice) override { |
69 | 258k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); |
70 | 258k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); |
71 | 258k | return Status::OK(); |
72 | 258k | } _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 41.7k | Status finish(OwnedSlice* slice) override { | 69 | 41.7k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 41.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 41.7k | return Status::OK(); | 72 | 41.7k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 11.1k | Status finish(OwnedSlice* slice) override { | 69 | 11.1k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 11.1k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 11.1k | return Status::OK(); | 72 | 11.1k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 51.2k | Status finish(OwnedSlice* slice) override { | 69 | 51.2k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 51.2k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 51.2k | return Status::OK(); | 72 | 51.2k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 121k | Status finish(OwnedSlice* slice) override { | 69 | 121k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 121k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 121k | return Status::OK(); | 72 | 121k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 14.7k | Status finish(OwnedSlice* slice) override { | 69 | 14.7k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 14.7k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 14.7k | return Status::OK(); | 72 | 14.7k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 8.11k | Status finish(OwnedSlice* slice) override { | 69 | 8.11k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 8.11k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 8.11k | return Status::OK(); | 72 | 8.11k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE6finishEPNS_10OwnedSliceE Line | Count | Source | 68 | 9.77k | Status finish(OwnedSlice* slice) override { | 69 | 9.77k | encode_fixed32_le((uint8_t*)&_buffer[0], cast_set<uint32_t>(_count)); | 70 | 9.77k | RETURN_IF_CATCH_EXCEPTION({ *slice = _buffer.build(); }); | 71 | 9.77k | return Status::OK(); | 72 | 9.77k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE6finishEPNS_10OwnedSliceE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE6finishEPNS_10OwnedSliceE |
73 | | |
74 | 516k | Status reset() override { |
75 | 516k | RETURN_IF_CATCH_EXCEPTION({ |
76 | 516k | _buffer.reserve(_options.data_page_size); |
77 | 516k | _count = 0; |
78 | 516k | _raw_data_size = 0; |
79 | 516k | _buffer.clear(); |
80 | 516k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); |
81 | 516k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; |
82 | 516k | }); |
83 | 518k | return Status::OK(); |
84 | 516k | } _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE5resetEv Line | Count | Source | 74 | 84.2k | Status reset() override { | 75 | 84.2k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 84.2k | _buffer.reserve(_options.data_page_size); | 77 | 84.2k | _count = 0; | 78 | 84.2k | _raw_data_size = 0; | 79 | 84.2k | _buffer.clear(); | 80 | 84.2k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 84.2k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 84.2k | }); | 83 | 84.3k | return Status::OK(); | 84 | 84.2k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE5resetEv Line | Count | Source | 74 | 22.9k | Status reset() override { | 75 | 22.9k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 22.9k | _buffer.reserve(_options.data_page_size); | 77 | 22.9k | _count = 0; | 78 | 22.9k | _raw_data_size = 0; | 79 | 22.9k | _buffer.clear(); | 80 | 22.9k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 22.9k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 22.9k | }); | 83 | 22.9k | return Status::OK(); | 84 | 22.9k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE5resetEv Line | Count | Source | 74 | 101k | Status reset() override { | 75 | 101k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 101k | _buffer.reserve(_options.data_page_size); | 77 | 101k | _count = 0; | 78 | 101k | _raw_data_size = 0; | 79 | 101k | _buffer.clear(); | 80 | 101k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 101k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 101k | }); | 83 | 102k | return Status::OK(); | 84 | 101k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE5resetEv Line | Count | Source | 74 | 241k | Status reset() override { | 75 | 241k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 241k | _buffer.reserve(_options.data_page_size); | 77 | 241k | _count = 0; | 78 | 241k | _raw_data_size = 0; | 79 | 241k | _buffer.clear(); | 80 | 241k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 241k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 241k | }); | 83 | 241k | return Status::OK(); | 84 | 241k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE5resetEv Line | Count | Source | 74 | 29.7k | Status reset() override { | 75 | 29.7k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 29.7k | _buffer.reserve(_options.data_page_size); | 77 | 29.7k | _count = 0; | 78 | 29.7k | _raw_data_size = 0; | 79 | 29.7k | _buffer.clear(); | 80 | 29.7k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 29.7k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 29.7k | }); | 83 | 29.7k | return Status::OK(); | 84 | 29.7k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE5resetEv Line | Count | Source | 74 | 16.9k | Status reset() override { | 75 | 16.9k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 16.9k | _buffer.reserve(_options.data_page_size); | 77 | 16.9k | _count = 0; | 78 | 16.9k | _raw_data_size = 0; | 79 | 16.9k | _buffer.clear(); | 80 | 16.9k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 16.9k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 16.9k | }); | 83 | 16.9k | return Status::OK(); | 84 | 16.9k | } |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE5resetEv Line | Count | Source | 74 | 19.9k | Status reset() override { | 75 | 19.9k | RETURN_IF_CATCH_EXCEPTION({ | 76 | 19.9k | _buffer.reserve(_options.data_page_size); | 77 | 19.9k | _count = 0; | 78 | 19.9k | _raw_data_size = 0; | 79 | 19.9k | _buffer.clear(); | 80 | 19.9k | _buffer.resize(PLAIN_PAGE_HEADER_SIZE); | 81 | 19.9k | _remain_element_capacity = _options.data_page_size / SIZE_OF_TYPE; | 82 | 19.9k | }); | 83 | 19.9k | return Status::OK(); | 84 | 19.9k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE5resetEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE5resetEv |
85 | | |
86 | 0 | size_t count() const override { return _count; }Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_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 |
87 | | |
88 | 13.4k | uint64_t size() const override { return _buffer.size(); }_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE4sizeEv Line | Count | Source | 88 | 1.89k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE4sizeEv Line | Count | Source | 88 | 1.01k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE4sizeEv Line | Count | Source | 88 | 4.89k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE4sizeEv Line | Count | Source | 88 | 3.12k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE4sizeEv Line | Count | Source | 88 | 1.69k | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE4sizeEv Line | Count | Source | 88 | 408 | uint64_t size() const override { return _buffer.size(); } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE4sizeEv Line | Count | Source | 88 | 470 | 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 |
89 | | |
90 | 258k | uint64_t get_raw_data_size() const override { return _raw_data_size; }_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EE17get_raw_data_sizeEv Line | Count | Source | 90 | 41.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EE17get_raw_data_sizeEv Line | Count | Source | 90 | 11.1k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EE17get_raw_data_sizeEv Line | Count | Source | 90 | 51.2k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EE17get_raw_data_sizeEv Line | Count | Source | 90 | 121k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EE17get_raw_data_sizeEv Line | Count | Source | 90 | 14.7k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EE17get_raw_data_sizeEv Line | Count | Source | 90 | 8.11k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
_ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EE17get_raw_data_sizeEv Line | Count | Source | 90 | 9.77k | uint64_t get_raw_data_size() const override { return _raw_data_size; } |
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EE17get_raw_data_sizeEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EE17get_raw_data_sizeEv |
91 | | |
92 | | private: |
93 | 258k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {}_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE1EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 42.5k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE3EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 11.8k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE5EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 50.5k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE7EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 119k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE9EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 14.9k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE10EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 8.81k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
_ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE11EEC2ERKNS0_18PageBuilderOptionsE Line | Count | Source | 93 | 10.1k | PlainPageBuilder(const PageBuilderOptions& options) : _options(options) {} |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE24EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE14EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE28EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE29EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE41EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE15EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE40EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE16EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE31EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE32EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE33EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE37EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE38EEC2ERKNS0_18PageBuilderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageBuilderILNS_9FieldTypeE39EEC2ERKNS0_18PageBuilderOptionsE |
94 | | |
95 | | faststring _buffer; |
96 | | PageBuilderOptions _options; |
97 | | size_t _count; |
98 | | size_t _remain_element_capacity {0}; |
99 | | uint64_t _raw_data_size = 0; |
100 | | typedef typename TypeTraits<Type>::CppType CppType; |
101 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
102 | | }; |
103 | | |
104 | | template <FieldType Type> |
105 | | class PlainPageDecoder : public PageDecoder { |
106 | | public: |
107 | | PlainPageDecoder(Slice data, const PageDecoderOptions& options) |
108 | 326k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {}_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 70.3k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 20.9k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 127k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 55.0k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 21.3k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 13.5k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Line | Count | Source | 108 | 17.8k | : _data(data), _options(options), _parsed(false), _num_elems(0), _cur_idx(0) {} |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EEC2ENS_5SliceERKNS0_18PageDecoderOptionsE |
109 | | |
110 | 325k | Status init() override { |
111 | 325k | CHECK(!_parsed); |
112 | | |
113 | 325k | 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 | 325k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); |
121 | | |
122 | 325k | 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 | 325k | _parsed = true; |
127 | | |
128 | 325k | RETURN_IF_ERROR(seek_to_position_in_page(0)); |
129 | 325k | return Status::OK(); |
130 | 325k | } _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE4initEv Line | Count | Source | 110 | 70.3k | Status init() override { | 111 | 70.3k | CHECK(!_parsed); | 112 | | | 113 | 70.3k | 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 | 70.3k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 70.3k | 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 | 70.3k | _parsed = true; | 127 | | | 128 | 70.3k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 70.3k | return Status::OK(); | 130 | 70.3k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE4initEv Line | Count | Source | 110 | 20.9k | Status init() override { | 111 | 20.9k | CHECK(!_parsed); | 112 | | | 113 | 20.9k | if (_data.size < PLAIN_PAGE_HEADER_SIZE) { | 114 | 0 | return Status::InternalError( | 115 | 0 | "file corruption: not enough bytes for header in PlainPageDecoder ." | 116 | 0 | "invalid data size:{}, header size:{}", | 117 | 0 | _data.size, PLAIN_PAGE_HEADER_SIZE); | 118 | 0 | } | 119 | | | 120 | 20.9k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 20.9k | if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) { | 123 | 0 | return Status::InternalError("file corruption: unexpected data size."); | 124 | 0 | } | 125 | | | 126 | 20.9k | _parsed = true; | 127 | | | 128 | 20.9k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 20.9k | return Status::OK(); | 130 | 20.9k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE4initEv Line | Count | Source | 110 | 126k | Status init() override { | 111 | 126k | CHECK(!_parsed); | 112 | | | 113 | 126k | 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 | 126k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 126k | 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 | 126k | _parsed = true; | 127 | | | 128 | 126k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 126k | return Status::OK(); | 130 | 126k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE4initEv Line | Count | Source | 110 | 54.9k | Status init() override { | 111 | 54.9k | CHECK(!_parsed); | 112 | | | 113 | 54.9k | if (_data.size < PLAIN_PAGE_HEADER_SIZE) { | 114 | 0 | return Status::InternalError( | 115 | 0 | "file corruption: not enough bytes for header in PlainPageDecoder ." | 116 | 0 | "invalid data size:{}, header size:{}", | 117 | 0 | _data.size, PLAIN_PAGE_HEADER_SIZE); | 118 | 0 | } | 119 | | | 120 | 54.9k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 54.9k | if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) { | 123 | 0 | return Status::InternalError("file corruption: unexpected data size."); | 124 | 0 | } | 125 | | | 126 | 54.9k | _parsed = true; | 127 | | | 128 | 54.9k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 54.9k | return Status::OK(); | 130 | 54.9k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE4initEv Line | Count | Source | 110 | 21.3k | Status init() override { | 111 | 21.3k | CHECK(!_parsed); | 112 | | | 113 | 21.3k | 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 | 21.3k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 21.3k | 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 | 21.3k | _parsed = true; | 127 | | | 128 | 21.3k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 21.3k | return Status::OK(); | 130 | 21.3k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE4initEv Line | Count | Source | 110 | 13.5k | Status init() override { | 111 | 13.5k | CHECK(!_parsed); | 112 | | | 113 | 13.5k | if (_data.size < PLAIN_PAGE_HEADER_SIZE) { | 114 | 0 | return Status::InternalError( | 115 | 0 | "file corruption: not enough bytes for header in PlainPageDecoder ." | 116 | 0 | "invalid data size:{}, header size:{}", | 117 | 0 | _data.size, PLAIN_PAGE_HEADER_SIZE); | 118 | 0 | } | 119 | | | 120 | 13.5k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 13.5k | if (_data.size != PLAIN_PAGE_HEADER_SIZE + _num_elems * SIZE_OF_TYPE) { | 123 | 0 | return Status::InternalError("file corruption: unexpected data size."); | 124 | 0 | } | 125 | | | 126 | 13.5k | _parsed = true; | 127 | | | 128 | 13.5k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 13.5k | return Status::OK(); | 130 | 13.5k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE4initEv Line | Count | Source | 110 | 17.8k | Status init() override { | 111 | 17.8k | CHECK(!_parsed); | 112 | | | 113 | 17.8k | 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 | 17.8k | _num_elems = decode_fixed32_le((const uint8_t*)&_data[0]); | 121 | | | 122 | 17.8k | 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 | 17.8k | _parsed = true; | 127 | | | 128 | 17.8k | RETURN_IF_ERROR(seek_to_position_in_page(0)); | 129 | 17.8k | return Status::OK(); | 130 | 17.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE4initEv Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE4initEv |
131 | | |
132 | 1.94M | Status seek_to_position_in_page(size_t pos) override { |
133 | 18.4E | CHECK(_parsed) << "Must call init()"; |
134 | 1.94M | if (_num_elems == 0) [[unlikely]] { |
135 | 9.76k | 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 | 9.76k | } |
140 | | |
141 | 1.94M | DCHECK_LE(pos, _num_elems); |
142 | | |
143 | 1.94M | _cur_idx = cast_set<uint32_t>(pos); |
144 | 1.94M | return Status::OK(); |
145 | 1.94M | } _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 348k | Status seek_to_position_in_page(size_t pos) override { | 133 | 18.4E | CHECK(_parsed) << "Must call init()"; | 134 | 348k | if (_num_elems == 0) [[unlikely]] { | 135 | 1.35k | 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 | 1.35k | } | 140 | | | 141 | 348k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 348k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 348k | return Status::OK(); | 145 | 348k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 246k | Status seek_to_position_in_page(size_t pos) override { | 133 | 18.4E | CHECK(_parsed) << "Must call init()"; | 134 | 246k | if (_num_elems == 0) [[unlikely]] { | 135 | 807 | 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 | 807 | } | 140 | | | 141 | 246k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 246k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 246k | return Status::OK(); | 145 | 246k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 493k | Status seek_to_position_in_page(size_t pos) override { | 133 | 18.4E | CHECK(_parsed) << "Must call init()"; | 134 | 493k | if (_num_elems == 0) [[unlikely]] { | 135 | 3.29k | if (pos != 0) { | 136 | 0 | return Status::Error<ErrorCode::INTERNAL_ERROR, false>( | 137 | 0 | "seek pos {} is larger than total elements {}", pos, _num_elems); | 138 | 0 | } | 139 | 3.29k | } | 140 | | | 141 | 493k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 493k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 493k | return Status::OK(); | 145 | 493k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 239k | Status seek_to_position_in_page(size_t pos) override { | 133 | 18.4E | CHECK(_parsed) << "Must call init()"; | 134 | 239k | if (_num_elems == 0) [[unlikely]] { | 135 | 2.78k | 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.78k | } | 140 | | | 141 | 239k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 239k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 239k | return Status::OK(); | 145 | 239k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 143k | Status seek_to_position_in_page(size_t pos) override { | 133 | 18.4E | CHECK(_parsed) << "Must call init()"; | 134 | 143k | if (_num_elems == 0) [[unlikely]] { | 135 | 647 | 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 | 647 | } | 140 | | | 141 | 143k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 143k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 143k | return Status::OK(); | 145 | 143k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 244k | Status seek_to_position_in_page(size_t pos) override { | 133 | 244k | CHECK(_parsed) << "Must call init()"; | 134 | 244k | if (_num_elems == 0) [[unlikely]] { | 135 | 415 | 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 | 415 | } | 140 | | | 141 | 244k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 244k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 244k | return Status::OK(); | 145 | 244k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE24seek_to_position_in_pageEm Line | Count | Source | 132 | 225k | Status seek_to_position_in_page(size_t pos) override { | 133 | 225k | CHECK(_parsed) << "Must call init()"; | 134 | 225k | if (_num_elems == 0) [[unlikely]] { | 135 | 459 | 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 | 459 | } | 140 | | | 141 | 225k | DCHECK_LE(pos, _num_elems); | 142 | | | 143 | 225k | _cur_idx = cast_set<uint32_t>(pos); | 144 | 225k | return Status::OK(); | 145 | 225k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE24seek_to_position_in_pageEm Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE24seek_to_position_in_pageEm |
146 | | |
147 | 0 | Status seek_at_or_after_value(const void* value, bool* exact_match) override { |
148 | 0 | DCHECK(_parsed) << "Must call init() firstly"; |
149 | |
|
150 | 0 | if (_num_elems == 0) { |
151 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("page is empty"); |
152 | 0 | } |
153 | | |
154 | 0 | uint32_t left = 0; |
155 | 0 | uint32_t right = _num_elems; |
156 | |
|
157 | 0 | 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 | 0 | while (left < right) { |
163 | 0 | uint32_t mid = left + (right - left) / 2; |
164 | 0 | mid_value = &_data[PLAIN_PAGE_HEADER_SIZE + mid * SIZE_OF_TYPE]; |
165 | 0 | if (TypeTraits<Type>::cmp(mid_value, value) < 0) { |
166 | 0 | left = mid + 1; |
167 | 0 | } else { |
168 | 0 | right = mid; |
169 | 0 | } |
170 | 0 | } |
171 | 0 | if (left >= _num_elems) { |
172 | 0 | return Status::Error<ErrorCode::ENTRY_NOT_FOUND>("all value small than the value"); |
173 | 0 | } |
174 | 0 | const void* find_value = &_data[PLAIN_PAGE_HEADER_SIZE + left * SIZE_OF_TYPE]; |
175 | 0 | if (TypeTraits<Type>::cmp(find_value, value) == 0) { |
176 | 0 | *exact_match = true; |
177 | 0 | } else { |
178 | 0 | *exact_match = false; |
179 | 0 | } |
180 | |
|
181 | 0 | _cur_idx = left; |
182 | 0 | return Status::OK(); |
183 | 0 | } Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE22seek_at_or_after_valueEPKvPb 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 Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE22seek_at_or_after_valueEPKvPb Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE22seek_at_or_after_valueEPKvPb |
184 | | |
185 | 422k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { |
186 | 422k | DCHECK(_parsed); |
187 | 422k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { |
188 | 0 | return Status::OK(); |
189 | 0 | } |
190 | | |
191 | 422k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); |
192 | 422k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; |
193 | | |
194 | 422k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); |
195 | | |
196 | 422k | *n = max_fetch; |
197 | 422k | _cur_idx += max_fetch; |
198 | | |
199 | 422k | return Status::OK(); |
200 | 422k | } _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 119k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 119k | DCHECK(_parsed); | 187 | 119k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 119k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 119k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 119k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 119k | *n = max_fetch; | 197 | 119k | _cur_idx += max_fetch; | 198 | | | 199 | 119k | return Status::OK(); | 200 | 119k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 15.2k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 15.2k | DCHECK(_parsed); | 187 | 15.2k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 15.2k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 15.2k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 15.2k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 15.2k | *n = max_fetch; | 197 | 15.2k | _cur_idx += max_fetch; | 198 | | | 199 | 15.2k | return Status::OK(); | 200 | 15.2k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 188k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 188k | DCHECK(_parsed); | 187 | 188k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 188k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 188k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 188k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 188k | *n = max_fetch; | 197 | 188k | _cur_idx += max_fetch; | 198 | | | 199 | 188k | return Status::OK(); | 200 | 188k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 60.5k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 60.5k | DCHECK(_parsed); | 187 | 60.5k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 60.5k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 60.5k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 60.5k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 60.5k | *n = max_fetch; | 197 | 60.5k | _cur_idx += max_fetch; | 198 | | | 199 | 60.5k | return Status::OK(); | 200 | 60.5k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 16.3k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 16.3k | DCHECK(_parsed); | 187 | 16.3k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 16.3k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 16.3k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 16.3k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 16.3k | *n = max_fetch; | 197 | 16.3k | _cur_idx += max_fetch; | 198 | | | 199 | 16.3k | return Status::OK(); | 200 | 16.3k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 8.82k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 8.82k | DCHECK(_parsed); | 187 | 8.82k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 8.82k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 8.82k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 8.82k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 8.82k | *n = max_fetch; | 197 | 8.82k | _cur_idx += max_fetch; | 198 | | | 199 | 8.82k | return Status::OK(); | 200 | 8.82k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Line | Count | Source | 185 | 12.8k | Status next_batch(size_t* n, MutableColumnPtr& dst) override { | 186 | 12.8k | DCHECK(_parsed); | 187 | 12.8k | if (*n == 0 || _cur_idx >= _num_elems) [[unlikely]] { | 188 | 0 | return Status::OK(); | 189 | 0 | } | 190 | | | 191 | 12.8k | size_t max_fetch = std::min(*n, static_cast<size_t>(_num_elems - _cur_idx)); | 192 | 12.8k | const void* src_data = &_data[PLAIN_PAGE_HEADER_SIZE + _cur_idx * SIZE_OF_TYPE]; | 193 | | | 194 | 12.8k | dst->insert_many_fix_len_data((const char*)src_data, max_fetch); | 195 | | | 196 | 12.8k | *n = max_fetch; | 197 | 12.8k | _cur_idx += max_fetch; | 198 | | | 199 | 12.8k | return Status::OK(); | 200 | 12.8k | } |
Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE Unexecuted instantiation: _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE10next_batchEPmRNS_3COWINS_7IColumnEE11mutable_ptrIS6_EE |
201 | | |
202 | | Status read_by_rowids(const rowid_t* rowids, ordinal_t page_first_ordinal, size_t* n, |
203 | 162k | MutableColumnPtr& dst) override { |
204 | 162k | DCHECK(_parsed); |
205 | 162k | if (*n == 0) [[unlikely]] { |
206 | 0 | return Status::OK(); |
207 | 0 | } |
208 | | |
209 | 162k | auto total = *n; |
210 | 162k | auto read_count = 0; |
211 | 162k | _buffer.resize(total); |
212 | 56.2M | for (size_t i = 0; i < total; ++i) { |
213 | 56.1M | ordinal_t ord = rowids[i] - page_first_ordinal; |
214 | 56.1M | if (UNLIKELY(ord >= _num_elems)) { |
215 | 2.50k | break; |
216 | 2.50k | } |
217 | | |
218 | 56.1M | _buffer[read_count++] = |
219 | 56.1M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); |
220 | 56.1M | } |
221 | | |
222 | 162k | if (LIKELY(read_count > 0)) { |
223 | 162k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); |
224 | 162k | } |
225 | | |
226 | 162k | *n = read_count; |
227 | 162k | return Status::OK(); |
228 | 162k | } _ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 21.9k | MutableColumnPtr& dst) override { | 204 | 21.9k | DCHECK(_parsed); | 205 | 21.9k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 21.9k | auto total = *n; | 210 | 21.9k | auto read_count = 0; | 211 | 21.9k | _buffer.resize(total); | 212 | 944k | for (size_t i = 0; i < total; ++i) { | 213 | 922k | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 922k | if (UNLIKELY(ord >= _num_elems)) { | 215 | 0 | break; | 216 | 0 | } | 217 | | | 218 | 922k | _buffer[read_count++] = | 219 | 922k | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 922k | } | 221 | | | 222 | 21.9k | if (LIKELY(read_count > 0)) { | 223 | 21.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 21.9k | } | 225 | | | 226 | 21.9k | *n = read_count; | 227 | 21.9k | return Status::OK(); | 228 | 21.9k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 9.49k | MutableColumnPtr& dst) override { | 204 | 9.49k | DCHECK(_parsed); | 205 | 9.49k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 9.49k | auto total = *n; | 210 | 9.49k | auto read_count = 0; | 211 | 9.49k | _buffer.resize(total); | 212 | 611k | for (size_t i = 0; i < total; ++i) { | 213 | 602k | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 602k | if (UNLIKELY(ord >= _num_elems)) { | 215 | 13 | break; | 216 | 13 | } | 217 | | | 218 | 602k | _buffer[read_count++] = | 219 | 602k | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 602k | } | 221 | | | 222 | 9.49k | if (LIKELY(read_count > 0)) { | 223 | 9.49k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 9.49k | } | 225 | | | 226 | 9.49k | *n = read_count; | 227 | 9.49k | return Status::OK(); | 228 | 9.49k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 67.3k | MutableColumnPtr& dst) override { | 204 | 67.3k | DCHECK(_parsed); | 205 | 67.3k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 67.3k | auto total = *n; | 210 | 67.3k | auto read_count = 0; | 211 | 67.3k | _buffer.resize(total); | 212 | 25.8M | for (size_t i = 0; i < total; ++i) { | 213 | 25.7M | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 25.7M | if (UNLIKELY(ord >= _num_elems)) { | 215 | 87 | break; | 216 | 87 | } | 217 | | | 218 | 25.7M | _buffer[read_count++] = | 219 | 25.7M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 25.7M | } | 221 | | | 222 | 67.3k | if (LIKELY(read_count > 0)) { | 223 | 67.3k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 67.3k | } | 225 | | | 226 | 67.3k | *n = read_count; | 227 | 67.3k | return Status::OK(); | 228 | 67.3k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 37.9k | MutableColumnPtr& dst) override { | 204 | 37.9k | DCHECK(_parsed); | 205 | 37.9k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 37.9k | auto total = *n; | 210 | 37.9k | auto read_count = 0; | 211 | 37.9k | _buffer.resize(total); | 212 | 25.3M | for (size_t i = 0; i < total; ++i) { | 213 | 25.2M | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 25.2M | if (UNLIKELY(ord >= _num_elems)) { | 215 | 1.54k | break; | 216 | 1.54k | } | 217 | | | 218 | 25.2M | _buffer[read_count++] = | 219 | 25.2M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 25.2M | } | 221 | | | 222 | 37.9k | if (LIKELY(read_count > 0)) { | 223 | 37.9k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 37.9k | } | 225 | | | 226 | 37.9k | *n = read_count; | 227 | 37.9k | return Status::OK(); | 228 | 37.9k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 9.84k | MutableColumnPtr& dst) override { | 204 | 9.84k | DCHECK(_parsed); | 205 | 9.84k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 9.84k | auto total = *n; | 210 | 9.84k | auto read_count = 0; | 211 | 9.84k | _buffer.resize(total); | 212 | 1.11M | for (size_t i = 0; i < total; ++i) { | 213 | 1.10M | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 1.10M | if (UNLIKELY(ord >= _num_elems)) { | 215 | 571 | break; | 216 | 571 | } | 217 | | | 218 | 1.10M | _buffer[read_count++] = | 219 | 1.10M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 1.10M | } | 221 | | | 222 | 9.84k | if (LIKELY(read_count > 0)) { | 223 | 9.84k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 9.84k | } | 225 | | | 226 | 9.84k | *n = read_count; | 227 | 9.84k | return Status::OK(); | 228 | 9.84k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 6.90k | MutableColumnPtr& dst) override { | 204 | 6.90k | DCHECK(_parsed); | 205 | 6.90k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 6.90k | auto total = *n; | 210 | 6.90k | auto read_count = 0; | 211 | 6.90k | _buffer.resize(total); | 212 | 1.15M | for (size_t i = 0; i < total; ++i) { | 213 | 1.14M | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 1.14M | if (UNLIKELY(ord >= _num_elems)) { | 215 | 31 | break; | 216 | 31 | } | 217 | | | 218 | 1.14M | _buffer[read_count++] = | 219 | 1.14M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 1.14M | } | 221 | | | 222 | 6.90k | if (LIKELY(read_count > 0)) { | 223 | 6.90k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 6.90k | } | 225 | | | 226 | 6.90k | *n = read_count; | 227 | 6.90k | return Status::OK(); | 228 | 6.90k | } |
_ZN5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE14read_by_rowidsEPKjmPmRNS_3COWINS_7IColumnEE11mutable_ptrIS8_EE Line | Count | Source | 203 | 8.89k | MutableColumnPtr& dst) override { | 204 | 8.89k | DCHECK(_parsed); | 205 | 8.89k | if (*n == 0) [[unlikely]] { | 206 | 0 | return Status::OK(); | 207 | 0 | } | 208 | | | 209 | 8.89k | auto total = *n; | 210 | 8.89k | auto read_count = 0; | 211 | 8.89k | _buffer.resize(total); | 212 | 1.29M | for (size_t i = 0; i < total; ++i) { | 213 | 1.28M | ordinal_t ord = rowids[i] - page_first_ordinal; | 214 | 1.28M | if (UNLIKELY(ord >= _num_elems)) { | 215 | 261 | break; | 216 | 261 | } | 217 | | | 218 | 1.28M | _buffer[read_count++] = | 219 | 1.28M | unaligned_load<CppType>(&_data[PLAIN_PAGE_HEADER_SIZE + ord * SIZE_OF_TYPE]); | 220 | 1.28M | } | 221 | | | 222 | 8.89k | if (LIKELY(read_count > 0)) { | 223 | 8.89k | dst->insert_many_fix_len_data((char*)_buffer.data(), read_count); | 224 | 8.89k | } | 225 | | | 226 | 8.89k | *n = read_count; | 227 | 8.89k | return Status::OK(); | 228 | 8.89k | } |
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 |
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 |
234 | | |
235 | 1.37M | size_t current_index() const override { |
236 | | DCHECK(_parsed); |
237 | 1.37M | return _cur_idx; |
238 | 1.37M | } _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE1EE13current_indexEv Line | Count | Source | 235 | 225k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 225k | return _cur_idx; | 238 | 225k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE3EE13current_indexEv Line | Count | Source | 235 | 223k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 223k | return _cur_idx; | 238 | 223k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE5EE13current_indexEv Line | Count | Source | 235 | 234k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 234k | return _cur_idx; | 238 | 234k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE7EE13current_indexEv Line | Count | Source | 235 | 138k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 138k | return _cur_idx; | 238 | 138k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE9EE13current_indexEv Line | Count | Source | 235 | 116k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 116k | return _cur_idx; | 238 | 116k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE10EE13current_indexEv Line | Count | Source | 235 | 229k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 229k | return _cur_idx; | 238 | 229k | } |
_ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE11EE13current_indexEv Line | Count | Source | 235 | 204k | size_t current_index() const override { | 236 | | DCHECK(_parsed); | 237 | 204k | return _cur_idx; | 238 | 204k | } |
Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE24EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE14EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE28EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE29EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE41EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE15EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE40EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE16EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE31EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE32EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE33EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE37EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE38EE13current_indexEv Unexecuted instantiation: _ZNK5doris10segment_v216PlainPageDecoderILNS_9FieldTypeE39EE13current_indexEv |
239 | | |
240 | | private: |
241 | | Slice _data; |
242 | | PageDecoderOptions _options; |
243 | | bool _parsed; |
244 | | uint32_t _num_elems; |
245 | | uint32_t _cur_idx; |
246 | | typedef typename TypeTraits<Type>::CppType CppType; |
247 | | enum { SIZE_OF_TYPE = TypeTraits<Type>::size }; |
248 | | |
249 | | std::vector<std::conditional_t<std::is_same_v<CppType, bool>, uint8_t, CppType>> _buffer; |
250 | | }; |
251 | | |
252 | | } // namespace segment_v2 |
253 | | } // namespace doris |