Coverage Report

Created: 2026-04-14 17:06

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/format/parquet/vparquet_file_metadata.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
#include <gen_cpp/parquet_types.h>
20
21
#include <string>
22
23
#include "common/status.h"
24
#include "format/parquet/schema_desc.h"
25
26
namespace doris {
27
class FileMetaData {
28
public:
29
    FileMetaData(tparquet::FileMetaData& metadata, size_t mem_size);
30
    ~FileMetaData();
31
    Status init_schema(const bool enable_mapping_varbinary, const bool enable_mapping_timestamp_tz);
32
410
    const FieldDescriptor& schema() const { return _schema; }
33
40
    FieldDescriptor& schema() { return _schema; }
34
    const tparquet::FileMetaData& to_thrift() const;
35
    std::string debug_string() const;
36
0
    size_t get_mem_size() const { return _mem_size; }
37
38
private:
39
    tparquet::FileMetaData _metadata;
40
    FieldDescriptor _schema;
41
    size_t _mem_size;
42
};
43
44
} // namespace doris