Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
RecordBatchWriter in datafusion::common::arrow::record_batch - Rust
[go: Go Back, main page]

Trait RecordBatchWriter

Source
pub trait RecordBatchWriter {
    // Required methods
    fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>;
    fn close(self) -> Result<(), ArrowError>;
}
Expand description

Trait for types that can write RecordBatch’s.

Required Methods§

Source

fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>

Write a single batch to the writer.

Source

fn close(self) -> Result<(), ArrowError>

Write footer or termination data, then mark the writer as done.

Implementations on Foreign Types§

Source§

impl<W> RecordBatchWriter for ArrowWriter<W>
where W: Write + Send,

Source§

fn write(&mut self, batch: &RecordBatch) -> Result<(), ArrowError>

Source§

fn close(self) -> Result<(), ArrowError>

Implementors§

Source§

impl<W> RecordBatchWriter for datafusion::common::arrow::csv::Writer<W>
where W: Write,

Source§

impl<W> RecordBatchWriter for FileWriter<W>
where W: Write,

Source§

impl<W> RecordBatchWriter for StreamWriter<W>
where W: Write,

Source§

impl<W, F> RecordBatchWriter for datafusion::common::arrow::json::Writer<W, F>
where W: Write, F: JsonFormat,