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

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

Writer properties.

All properties except the key-value metadata are immutable, use WriterPropertiesBuilder to assemble these properties.

Implementations

impl WriterProperties[src]

pub fn builder() -> WriterPropertiesBuilder[src]

Returns builder for writer properties with default values.

pub fn data_pagesize_limit(&self) -> usize[src]

Returns data page size limit.

pub fn dictionary_pagesize_limit(&self) -> usize[src]

Returns dictionary page size limit.

pub fn write_batch_size(&self) -> usize[src]

Returns configured batch size for writes.

When writing a batch of data, this setting allows to split it internally into smaller batches so we can better estimate the size of a page currently being written.

pub fn max_row_group_size(&self) -> usize[src]

Returns max size for a row group.

pub fn writer_version(&self) -> WriterVersion[src]

Returns configured writer version.

pub fn created_by(&self) -> &str[src]

Returns created_by string.

pub fn key_value_metadata(&self) -> &Option<Vec<KeyValue>>[src]

Returns key_value_metadata KeyValue pairs.

pub fn dictionary_data_page_encoding(&self) -> Encoding[src]

Returns encoding for a data page, when dictionary encoding is enabled. This is not configurable.

pub fn dictionary_page_encoding(&self) -> Encoding[src]

Returns encoding for dictionary page, when dictionary encoding is enabled. This is not configurable.

pub fn encoding(&self, col: &ColumnPath) -> Option<Encoding>[src]

Returns encoding for a column, if set. In case when dictionary is enabled, returns fallback encoding.

If encoding is not set, then column writer will choose the best encoding based on the column type.

pub fn compression(&self, col: &ColumnPath) -> Compression[src]

Returns compression codec for a column.

pub fn dictionary_enabled(&self, col: &ColumnPath) -> bool[src]

Returns true if dictionary encoding is enabled for a column.

pub fn statistics_enabled(&self, col: &ColumnPath) -> bool[src]

Returns true if statistics are enabled for a column.

pub fn max_statistics_size(&self, col: &ColumnPath) -> usize[src]

Returns max size for statistics. Only applicable if statistics are enabled.

Trait Implementations

impl Clone for WriterProperties[src]

fn clone(&self) -> WriterProperties[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for WriterProperties[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

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

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

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