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§
fn write_batch(&mut self, batch: &RecordBatch) -> Result<()>
fn finish(self: Box<Self>) -> Result<()>
Sourcefn bytes_written(&self) -> u64
fn bytes_written(&self) -> u64
Approximate bytes written so far (for file-size splitting).