pub struct ArrowWriterOptions {
properties: WriterProperties,
skip_arrow_metadata: bool,
schema_root: Option<String>,
schema_descr: Option<SchemaDescriptor>,
}
Expand description
Arrow-specific configuration settings for writing parquet files.
See ArrowWriter
for how to configure the writer.
Fields§
§properties: WriterProperties
§skip_arrow_metadata: bool
§schema_root: Option<String>
§schema_descr: Option<SchemaDescriptor>
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 moreSource§impl Debug for ArrowWriterOptions
impl Debug for ArrowWriterOptions
Source§impl Default for ArrowWriterOptions
impl Default for ArrowWriterOptions
Source§fn default() -> ArrowWriterOptions
fn default() -> ArrowWriterOptions
Auto Trait Implementations§
impl Freeze for ArrowWriterOptions
impl RefUnwindSafe for ArrowWriterOptions
impl Send for ArrowWriterOptions
impl Sync for ArrowWriterOptions
impl Unpin for ArrowWriterOptions
impl UnwindSafe for ArrowWriterOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more