pub struct ParquetWriter<W> { /* private fields */ }
Available on crate feature parquet only.
Expand description

Write a DataFrame to parquet format

Implementations§

Create a new writer

Set the compression used. Defaults to Lz4Raw.

The default compression Lz4Raw has very good performance, but may not yet been supported by older readers. If you want more compatability guarantees, consider using Snappy.

Compute and write statistic

Set the row group size (in number of rows) during writing. This can reduce memory pressure and improve writing performance.

Sets the maximum bytes size of a data page. If None will be 1024^2 bytes.

Write the given DataFrame in the the writer W. Returns the total size of the file.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.