Skip to main content

FormatWriter

Trait FormatWriter 

Source
pub trait FormatWriter {
    // Required methods
    fn write_batch(&mut self, batch: &RecordBatch) -> Result<()>;
    fn finish(self: Box<Self>) -> Result<()>;
    fn bytes_written(&self) -> u64;
}
Expand description

Streaming writer: receives one RecordBatch at a time.

Required Methods§

Source

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

Source

fn finish(self: Box<Self>) -> Result<()>

Source

fn bytes_written(&self) -> u64

Approximate bytes written so far (for file-size splitting).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§