pub struct CsvWriterOptions {
pub writer_options: WriterBuilder,
pub compression: CompressionTypeVariant,
pub compression_level: Option<u32>,
}Expand description
Options for writing CSV files
Fields§
§writer_options: WriterBuilderStruct from the arrow crate which contains all csv writing related settings
compression: CompressionTypeVariantCompression to apply after ArrowWriter serializes RecordBatches. This compression is applied by DataFusion not the ArrowWriter itself.
compression_level: Option<u32>Compression level for the output file.
Implementations§
Source§impl CsvWriterOptions
impl CsvWriterOptions
pub fn new( writer_options: WriterBuilder, compression: CompressionTypeVariant, ) -> Self
Sourcepub fn new_with_level(
writer_options: WriterBuilder,
compression: CompressionTypeVariant,
compression_level: u32,
) -> Self
pub fn new_with_level( writer_options: WriterBuilder, compression: CompressionTypeVariant, compression_level: u32, ) -> Self
Create a new CsvWriterOptions with the specified compression level.
Trait Implementations§
Source§impl Clone for CsvWriterOptions
impl Clone for CsvWriterOptions
Source§fn clone(&self) -> CsvWriterOptions
fn clone(&self) -> CsvWriterOptions
Returns a duplicate 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 CsvWriterOptions
impl Debug for CsvWriterOptions
Source§impl TryFrom<&CsvOptions> for CsvWriterOptions
impl TryFrom<&CsvOptions> for CsvWriterOptions
Source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
Source§fn try_from(value: &CsvOptions) -> Result<Self>
fn try_from(value: &CsvOptions) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for CsvWriterOptions
impl RefUnwindSafe for CsvWriterOptions
impl Send for CsvWriterOptions
impl Sync for CsvWriterOptions
impl Unpin for CsvWriterOptions
impl UnwindSafe for CsvWriterOptions
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§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