RowBuilder

Trait RowBuilder 

Source
pub trait RowBuilder<Row> {
    type Arrays: IntoRecordBatch;

    // Required methods
    fn append_row(&mut self, row: Row);
    fn append_null_row(&mut self);
    fn append_option_row(&mut self, row: Option<Row>);
    fn append_rows<I: IntoIterator<Item = Row>>(&mut self, rows: I);
    fn append_option_rows<I: IntoIterator<Item = Option<Row>>>(
        &mut self,
        rows: I,
    );
    fn finish(self) -> Self::Arrays;
}
Expand description

Trait implemented by derive-generated builders to append rows of Row and finish into a typed arrays struct.

Required Associated Types§

Source

type Arrays: IntoRecordBatch

The arrays struct produced by finish.

Required Methods§

Source

fn append_row(&mut self, row: Row)

Append a non-null row.

Source

fn append_null_row(&mut self)

Append a null row.

Source

fn append_option_row(&mut self, row: Option<Row>)

Append an optional row.

Source

fn append_rows<I: IntoIterator<Item = Row>>(&mut self, rows: I)

Append an iterator of non-null rows.

Source

fn append_option_rows<I: IntoIterator<Item = Option<Row>>>(&mut self, rows: I)

Append an iterator of optional rows.

Source

fn finish(self) -> Self::Arrays

Finish and produce arrays.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§