pub struct ArrowWriterOptions {
properties: WriterProperties,
skip_arrow_metadata: bool,
schema_root: Option<String>,
}
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>
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, name: String) -> Self
pub fn with_schema_root(self, name: String) -> Self
Set the name of the root parquet schema element (defaults to "arrow_schema"
)
Trait Implementations§
Source§impl Clone for ArrowWriterOptions
impl Clone for ArrowWriterOptions
Source§fn clone(&self) -> ArrowWriterOptions
fn clone(&self) -> ArrowWriterOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
Converts
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>
Converts
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