pub struct FileMetaData {
    pub version: i32,
    pub num_rows: usize,
    pub created_by: Option<String>,
    pub row_groups: Vec<RowGroupMetaData, Global>,
    pub key_value_metadata: Option<Vec<KeyValue, Global>>,
    pub schema_descr: SchemaDescriptor,
    pub column_orders: Option<Vec<ColumnOrder, Global>>,
}
Available on crate feature io_parquet only.
Expand description

Metadata for a Parquet file.

Fields

version: i32

version of this file.

num_rows: usize

number of rows in the file.

created_by: Option<String>

String message for application that wrote this file.

This should have the following format: <application> version <application version> (build <application build hash>).

parquet-mr version 1.8.0 (build 0fda28af84b9746396014ad6a415b90592a98b3b)
row_groups: Vec<RowGroupMetaData, Global>

The row groups of this file

key_value_metadata: Option<Vec<KeyValue, Global>>

key_value_metadata of this file.

schema_descr: SchemaDescriptor

schema descriptor.

column_orders: Option<Vec<ColumnOrder, Global>>

Column (sort) order used for min and max values of each column in this file.

Each column order corresponds to one column, determined by its position in the list, matching the position of the column in the schema.

When None is returned, there are no column orders available, and each column should be assumed to have undefined (legacy) column order.

Implementations

Returns the SchemaDescriptor that describes schema of this file.

returns the metadata

Returns column order for ith column in this file. If column orders are not available, returns undefined (legacy) column order.

Deserializes crate::thrift_format::FileMetaData into this struct

Serializes itself to thrift’s [parquet_format_safe::FileMetaData].

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.