Coverage Report

Created: 2026-03-16 05:02

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
#include "common/compile_check_begin.h"
28
class FileMetaData {
29
public:
30
    FileMetaData(tparquet::FileMetaData& metadata, size_t mem_size);
31
    ~FileMetaData();
32
    Status init_schema(const bool enable_mapping_varbinary, const bool enable_mapping_timestamp_tz);
33
392
    const FieldDescriptor& schema() const { return _schema; }
34
40
    FieldDescriptor& schema() { return _schema; }
35
    const tparquet::FileMetaData& to_thrift() const;
36
    std::string debug_string() const;
37
0
    size_t get_mem_size() const { return _mem_size; }
38
39
private:
40
    tparquet::FileMetaData _metadata;
41
    FieldDescriptor _schema;
42
    size_t _mem_size;
43
};
44
#include "common/compile_check_end.h"
45
46
} // namespace doris