Struct parquet::file::properties::WriterPropertiesBuilder[][src]

pub struct WriterPropertiesBuilder { /* fields omitted */ }
Expand description

Writer properties builder.

Implementations

impl WriterPropertiesBuilder[src]

pub fn build(self) -> WriterProperties[src]

Finalizes the configuration and returns immutable writer properties struct.

pub fn set_writer_version(self, value: WriterVersion) -> Self[src]

Sets writer version.

pub fn set_data_pagesize_limit(self, value: usize) -> Self[src]

Sets data page size limit.

pub fn set_dictionary_pagesize_limit(self, value: usize) -> Self[src]

Sets dictionary page size limit.

pub fn set_write_batch_size(self, value: usize) -> Self[src]

Sets write batch size.

pub fn set_max_row_group_size(self, value: usize) -> Self[src]

Sets max size for a row group.

pub fn set_created_by(self, value: String) -> Self[src]

Sets “created by” property.

pub fn set_key_value_metadata(self, value: Option<Vec<KeyValue>>) -> Self[src]

Sets “key_value_metadata” property.

pub fn set_encoding(self, value: Encoding) -> Self[src]

Sets encoding for any column.

If dictionary is not enabled, this is treated as a primary encoding for all columns. In case when dictionary is enabled for any column, this value is considered to be a fallback encoding for that column.

Panics if user tries to set dictionary encoding here, regardless of dictionary encoding flag being set.

pub fn set_compression(self, value: Compression) -> Self[src]

Sets compression codec for any column.

pub fn set_dictionary_enabled(self, value: bool) -> Self[src]

Sets flag to enable/disable dictionary encoding for any column.

Use this method to set dictionary encoding, instead of explicitly specifying encoding in set_encoding method.

pub fn set_statistics_enabled(self, value: bool) -> Self[src]

Sets flag to enable/disable statistics for any column.

pub fn set_max_statistics_size(self, value: usize) -> Self[src]

Sets max statistics size for any column. Applicable only if statistics are enabled.

pub fn set_column_encoding(self, col: ColumnPath, value: Encoding) -> Self[src]

Sets encoding for a column. Takes precedence over globally defined settings.

If dictionary is not enabled, this is treated as a primary encoding for this column. In case when dictionary is enabled for this column, either through global defaults or explicitly, this value is considered to be a fallback encoding for this column.

Panics if user tries to set dictionary encoding here, regardless of dictionary encoding flag being set.

pub fn set_column_compression(self, col: ColumnPath, value: Compression) -> Self[src]

Sets compression codec for a column. Takes precedence over globally defined settings.

pub fn set_column_dictionary_enabled(self, col: ColumnPath, value: bool) -> Self[src]

Sets flag to enable/disable dictionary encoding for a column. Takes precedence over globally defined settings.

pub fn set_column_statistics_enabled(self, col: ColumnPath, value: bool) -> Self[src]

Sets flag to enable/disable statistics for a column. Takes precedence over globally defined settings.

pub fn set_column_max_statistics_size(
    self,
    col: ColumnPath,
    value: usize
) -> Self
[src]

Sets max size for statistics for a column. Takes precedence over globally defined settings.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V