Coverage Report

Created: 2026-03-14 18:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/cloud/cloud_rowset_builder.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 "storage/rowset_builder.h"
21
22
namespace doris {
23
24
class CloudTablet;
25
class CloudStorageEngine;
26
27
class CloudRowsetBuilder final : public BaseRowsetBuilder {
28
public:
29
    CloudRowsetBuilder(CloudStorageEngine& engine, const WriteRequest& req,
30
                       RuntimeProfile* profile);
31
32
    ~CloudRowsetBuilder() override;
33
34
    Status init() override;
35
36
    void update_tablet_stats();
37
38
    const RowsetMetaSharedPtr& rowset_meta();
39
40
    Status set_txn_related_delete_bitmap();
41
42
126k
    void set_skip_writing_rowset_metadata(bool skip) { _skip_writing_rowset_metadata = skip; }
43
44
private:
45
    // Convert `_tablet` from `BaseTablet` to `CloudTablet`
46
    CloudTablet* cloud_tablet();
47
48
    Status check_tablet_version_count();
49
50
    CloudStorageEngine& _engine;
51
52
    // whether to skip writing rowset metadata to meta service.
53
    // This is used for empty rowset when config::skip_writing_empty_rowset_metadata is true.
54
    bool _skip_writing_rowset_metadata = false;
55
};
56
57
} // namespace doris