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

pub trait RowGroupWriter {
    fn next_column(&mut self) -> Result<Option<ColumnWriter>>;
fn close_column(&mut self, column_writer: ColumnWriter) -> Result<()>;
fn close(&mut self) -> Result<RowGroupMetaDataPtr>; }

Parquet row group writer API. Provides methods to access column writers in an iterator-like fashion, order is guaranteed to match the order of schema leaves (column descriptors).

All columns should be written sequentially; the main workflow is:

Required Methods

Returns the next column writer, if available; otherwise returns None. In case of any IO error or Thrift error, or if row group writer has already been closed returns Err.

To request the next column writer, the previous one must be finalised and closed using close_column.

Closes column writer that was created using next_column method. This should be called before requesting the next column writer.

Closes this row group writer and returns row group metadata. After calling this method row group writer must not be used.

It is recommended to call this method before requesting another row group, but it will be closed automatically before returning a new row group.

Can be called multiple times. In subsequent calls will result in no-op and return already created row group metadata.

Implementors

impl RowGroupWriter for SerializedRowGroupWriter
[src]