pub struct CsvWriterOptions {
pub writer_options: WriterBuilder,
pub compression: CompressionTypeVariant,
}
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.
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<&CsvOptions> for CsvWriterOptions
impl TryFrom<&CsvOptions> for CsvWriterOptions
§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)