Struct parquet::file::metadata::FileMetaData
source · pub struct FileMetaData { /* private fields */ }
Expand description
File level metadata for a Parquet file.
Includes the version of the file, metadata, number of rows, schema, and column orders
Implementations§
source§impl FileMetaData
impl FileMetaData
sourcepub fn new(
version: i32,
num_rows: i64,
created_by: Option<String>,
key_value_metadata: Option<Vec<KeyValue>>,
schema_descr: SchemaDescPtr,
column_orders: Option<Vec<ColumnOrder>>,
) -> Self
pub fn new( version: i32, num_rows: i64, created_by: Option<String>, key_value_metadata: Option<Vec<KeyValue>>, schema_descr: SchemaDescPtr, column_orders: Option<Vec<ColumnOrder>>, ) -> Self
Creates new file metadata.
sourcepub fn created_by(&self) -> Option<&str>
pub fn created_by(&self) -> Option<&str>
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)
sourcepub fn key_value_metadata(&self) -> Option<&Vec<KeyValue>>
pub fn key_value_metadata(&self) -> Option<&Vec<KeyValue>>
Returns key_value_metadata of this file.
sourcepub fn schema(&self) -> &SchemaType
pub fn schema(&self) -> &SchemaType
Returns Parquet Type
that describes schema in this file.
sourcepub fn schema_descr(&self) -> &SchemaDescriptor
pub fn schema_descr(&self) -> &SchemaDescriptor
Returns a reference to schema descriptor.
sourcepub fn schema_descr_ptr(&self) -> SchemaDescPtr
pub fn schema_descr_ptr(&self) -> SchemaDescPtr
Returns reference counted clone for schema descriptor.
sourcepub fn column_orders(&self) -> Option<&Vec<ColumnOrder>>
pub fn column_orders(&self) -> Option<&Vec<ColumnOrder>>
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.
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.
Trait Implementations§
source§impl Clone for FileMetaData
impl Clone for FileMetaData
source§fn clone(&self) -> FileMetaData
fn clone(&self) -> FileMetaData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FileMetaData
impl Debug for FileMetaData
source§impl PartialEq for FileMetaData
impl PartialEq for FileMetaData
impl StructuralPartialEq for FileMetaData
Auto Trait Implementations§
impl Freeze for FileMetaData
impl RefUnwindSafe for FileMetaData
impl Send for FileMetaData
impl Sync for FileMetaData
impl Unpin for FileMetaData
impl UnwindSafe for FileMetaData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)