pub struct CsvWriterOptions {
pub writer_options: WriterBuilder,
pub compression: CompressionTypeVariant,
pub has_header: bool,
}
Expand description
Options for writing CSV files
Fields§
§writer_options: WriterBuilder
Struct from the arrow crate which contains all csv writing related settings
compression: CompressionTypeVariant
Compression to apply after ArrowWriter serializes RecordBatches. This compression is applied by DataFusion not the ArrowWriter itself.
has_header: bool
Indicates whether WriterBuilder.has_header() is set to true. This is duplicative as WriterBuilder also stores this information. However, WriterBuilder does not allow public read access to the has_header parameter.
Implementations§
source§impl CsvWriterOptions
impl CsvWriterOptions
pub fn new( writer_options: WriterBuilder, compression: CompressionTypeVariant ) -> Self
Trait Implementations§
source§impl Clone for CsvWriterOptions
impl Clone for CsvWriterOptions
source§fn clone(&self) -> CsvWriterOptions
fn clone(&self) -> CsvWriterOptions
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 CsvWriterOptions
impl Debug for CsvWriterOptions
source§impl TryFrom<(&ConfigOptions, &StatementOptions)> for CsvWriterOptions
impl TryFrom<(&ConfigOptions, &StatementOptions)> for CsvWriterOptions
§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
source§fn try_from(value: (&ConfigOptions, &StatementOptions)) -> Result<Self>
fn try_from(value: (&ConfigOptions, &StatementOptions)) -> Result<Self>
Performs the conversion.
Auto Trait Implementations§
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