pub struct FileMetaData {
pub version: i32,
pub num_rows: i64,
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>>,
}
Expand description
Metadata for a Parquet file.
Fields
version: i32
version of this file.
num_rows: i64
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
sourceimpl FileMetaData
impl FileMetaData
sourcepub fn new(
version: i32,
num_rows: i64,
created_by: Option<String>,
row_groups: Vec<RowGroupMetaData, Global>,
key_value_metadata: Option<Vec<KeyValue, Global>>,
schema_descr: SchemaDescriptor,
column_orders: Option<Vec<ColumnOrder, Global>>
) -> FileMetaData
pub fn new(
version: i32,
num_rows: i64,
created_by: Option<String>,
row_groups: Vec<RowGroupMetaData, Global>,
key_value_metadata: Option<Vec<KeyValue, Global>>,
schema_descr: SchemaDescriptor,
column_orders: Option<Vec<ColumnOrder, Global>>
) -> FileMetaData
Creates new file metadata.
sourcepub fn schema(&self) -> &SchemaDescriptor
pub fn schema(&self) -> &SchemaDescriptor
Returns the [’SchemaDescriptor`] that describes schema of this file.
sourcepub fn column_order(&self, i: usize) -> ColumnOrder
pub fn column_order(&self, i: usize) -> ColumnOrder
Returns column order for i
th column in this file.
If column orders are not available, returns undefined (legacy) column order.
pub fn into_thrift(self) -> Result<FileMetaData, ParquetError>
Trait Implementations
sourceimpl Clone for FileMetaData
impl Clone for FileMetaData
sourcefn clone(&self) -> FileMetaData
fn clone(&self) -> FileMetaData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for FileMetaData
impl Send for FileMetaData
impl Sync for FileMetaData
impl Unpin for FileMetaData
impl UnwindSafe for FileMetaData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more