pub struct CsvWriterOptions {
pub writer_options: WriterBuilder,
pub compression: CompressionTypeVariant,
}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.
Implementations§
source§impl CsvWriterOptions
impl CsvWriterOptions
pub fn new( writer_options: WriterBuilder, compression: CompressionTypeVariant, ) -> CsvWriterOptions
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
source§type Error = DataFusionError
type Error = DataFusionError
The type returned in the event of a conversion error.
source§fn try_from(value: &CsvOptions) -> Result<CsvWriterOptions, DataFusionError>
fn try_from(value: &CsvOptions) -> Result<CsvWriterOptions, DataFusionError>
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§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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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