[][src]Trait parquet::file::writer::FileWriter

pub trait FileWriter {
    fn next_row_group(&mut self) -> Result<Box<dyn RowGroupWriter>>;
fn close_row_group(
        &mut self,
        row_group_writer: Box<dyn RowGroupWriter>
    ) -> Result<()>;
fn close(&mut self) -> Result<()>; }

Parquet file writer API. Provides methods to write row groups sequentially.

The main workflow should be as following:

Required Methods

Creates new row group from this file writer. In case of IO error or Thrift error, returns Err.

There is no limit on a number of row groups in a file; however, row groups have to be written sequentially. Every time the next row group is requested, the previous row group must be finalised and closed using close_row_group method.

Finalises and closes row group that was created using next_row_group method. After calling this method, the next row group is available for writes.

Closes and finalises file writer.

All row groups must be appended before this method is called. No writes are allowed after this point.

Can be called multiple times. It is up to implementation to either result in no-op, or return an Err for subsequent calls.

Implementors

impl FileWriter for SerializedFileWriter
[src]