[−][src]Struct parquet_format::FileMetaData
Description for file metadata
Fields
version: i32
Version of this file *
schema: Vec<SchemaElement>
Parquet schema for this file. This schema contains metadata for all the columns. The schema is represented as a tree with a single root. The nodes of the tree are flattened to a list by doing a depth-first traversal. The column metadata contains the path in the schema for that column which can be used to map columns to nodes in the schema. The first element is the root *
num_rows: i64
Number of rows in this file *
row_groups: Vec<RowGroup>
Row groups in this file *
key_value_metadata: Option<Vec<KeyValue>>
Optional key/value metadata *
created_by: Option<String>
String for application that wrote this file. This should be in the format
column_orders: Option<Vec<ColumnOrder>>
Sort order used for the min_value and max_value fields of each column in this file. Sort orders are listed in the order matching the columns in the schema. The indexes are not necessary the same though, because only leaf nodes of the schema are represented in the list of sort orders.
Without column_orders, the meaning of the min_value and max_value fields is undefined. To ensure well-defined behaviour, if min_value and max_value are written to a Parquet file, column_orders must be written as well.
The obsolete min and max fields are always sorted by signed comparison regardless of column_orders.
encryption_algorithm: Option<EncryptionAlgorithm>
Encryption algorithm. This field is set only in encrypted files with plaintext footer. Files with encrypted footer store algorithm id in FileCryptoMetaData structure.
Retrieval metadata of key used for signing the footer. Used only in encrypted files with plaintext footer.
Implementations
impl FileMetaData
[src]
pub fn new<F5, F6, F7, F8, F9>(
version: i32,
schema: Vec<SchemaElement>,
num_rows: i64,
row_groups: Vec<RowGroup>,
key_value_metadata: F5,
created_by: F6,
column_orders: F7,
encryption_algorithm: F8,
footer_signing_key_metadata: F9
) -> FileMetaData where
F5: Into<Option<Vec<KeyValue>>>,
F6: Into<Option<String>>,
F7: Into<Option<Vec<ColumnOrder>>>,
F8: Into<Option<EncryptionAlgorithm>>,
F9: Into<Option<Vec<u8>>>,
[src]
version: i32,
schema: Vec<SchemaElement>,
num_rows: i64,
row_groups: Vec<RowGroup>,
key_value_metadata: F5,
created_by: F6,
column_orders: F7,
encryption_algorithm: F8,
footer_signing_key_metadata: F9
) -> FileMetaData where
F5: Into<Option<Vec<KeyValue>>>,
F6: Into<Option<String>>,
F7: Into<Option<Vec<ColumnOrder>>>,
F8: Into<Option<EncryptionAlgorithm>>,
F9: Into<Option<Vec<u8>>>,
pub fn read_from_in_protocol(
i_prot: &mut dyn TInputProtocol
) -> Result<FileMetaData>
[src]
i_prot: &mut dyn TInputProtocol
) -> Result<FileMetaData>
pub fn write_to_out_protocol(
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
[src]
&self,
o_prot: &mut dyn TOutputProtocol
) -> Result<()>
Trait Implementations
impl Clone for FileMetaData
[src]
pub fn clone(&self) -> FileMetaData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FileMetaData
[src]
impl Eq for FileMetaData
[src]
impl Hash for FileMetaData
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FileMetaData
[src]
pub fn cmp(&self, other: &FileMetaData) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<FileMetaData> for FileMetaData
[src]
pub fn eq(&self, other: &FileMetaData) -> bool
[src]
pub fn ne(&self, other: &FileMetaData) -> bool
[src]
impl PartialOrd<FileMetaData> for FileMetaData
[src]
pub fn partial_cmp(&self, other: &FileMetaData) -> Option<Ordering>
[src]
pub fn lt(&self, other: &FileMetaData) -> bool
[src]
pub fn le(&self, other: &FileMetaData) -> bool
[src]
pub fn gt(&self, other: &FileMetaData) -> bool
[src]
pub fn ge(&self, other: &FileMetaData) -> bool
[src]
impl StructuralEq for FileMetaData
[src]
impl StructuralPartialEq for FileMetaData
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileMetaData
[src]
impl Send for FileMetaData
[src]
impl Sync for FileMetaData
[src]
impl Unpin for FileMetaData
[src]
impl UnwindSafe for FileMetaData
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,