pub struct ArrowWriterOptions { /* private fields */ }Expand description
Arrow-specific configuration settings for writing parquet files.
See ArrowWriter for how to configure the writer.
Implementations§
Source§impl ArrowWriterOptions
impl ArrowWriterOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new ArrowWriterOptions with the default settings.
Sourcepub fn with_properties(self, properties: WriterProperties) -> Self
pub fn with_properties(self, properties: WriterProperties) -> Self
Sets the WriterProperties for writing parquet files.
Sourcepub fn with_skip_arrow_metadata(self, skip_arrow_metadata: bool) -> Self
pub fn with_skip_arrow_metadata(self, skip_arrow_metadata: bool) -> Self
Skip encoding the embedded arrow metadata (defaults to false)
Parquet files generated by the ArrowWriter contain embedded arrow schema
by default.
Set skip_arrow_metadata to true, to skip encoding the embedded metadata.
Sourcepub fn with_schema_root(self, schema_root: String) -> Self
pub fn with_schema_root(self, schema_root: String) -> Self
Set the name of the root parquet schema element (defaults to "arrow_schema")
Sourcepub fn with_parquet_schema(self, schema_descr: SchemaDescriptor) -> Self
pub fn with_parquet_schema(self, schema_descr: SchemaDescriptor) -> Self
Explicitly specify the Parquet schema to be used
If omitted (the default), the ArrowSchemaConverter is used to compute the
Parquet SchemaDescriptor. This may be used When the SchemaDescriptor is
already known or must be calculated using custom logic.
Trait Implementations§
Source§impl Clone for ArrowWriterOptions
impl Clone for ArrowWriterOptions
Source§fn clone(&self) -> ArrowWriterOptions
fn clone(&self) -> ArrowWriterOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more