Struct Writer
pub struct Writer<W>where
W: Write,{
writer: Writer<W>,
has_headers: bool,
date_format: Option<String>,
datetime_format: Option<String>,
timestamp_format: Option<String>,
timestamp_tz_format: Option<String>,
time_format: Option<String>,
beginning: bool,
null_value: Option<String>,
}Expand description
A CSV writer
Fields§
§writer: Writer<W>§has_headers: bool§date_format: Option<String>§datetime_format: Option<String>§timestamp_format: Option<String>§timestamp_tz_format: Option<String>§time_format: Option<String>§beginning: bool§null_value: Option<String>Implementations§
§impl<W> Writer<W>where
W: Write,
impl<W> Writer<W>where
W: Write,
pub fn new(writer: W) -> Writer<W>
pub fn new(writer: W) -> Writer<W>
Create a new CsvWriter from a writable object, with default options
pub fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>
pub fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>
Write a RecordBatch to a writable object
pub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Unwraps this Writer<W>, returning the underlying writer.
Trait Implementations§
§impl<W> RecordBatchWriter for Writer<W>where
W: Write,
impl<W> RecordBatchWriter for Writer<W>where
W: Write,
§fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>
fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>
Write a single batch to the writer.
§fn close(self) -> Result<(), ArrowError>
fn close(self) -> Result<(), ArrowError>
Write footer or termination data, then mark the writer as done.
Auto Trait Implementations§
impl<W> Freeze for Writer<W>where
W: Freeze,
impl<W> RefUnwindSafe for Writer<W>where
W: RefUnwindSafe,
impl<W> Send for Writer<W>where
W: Send,
impl<W> Sync for Writer<W>where
W: Sync,
impl<W> Unpin for Writer<W>where
W: Unpin,
impl<W> UnwindSafe for Writer<W>where
W: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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