ella_common::row

Trait RowBatchBuilder

Source
pub trait RowBatchBuilder<R>:
    Debug
    + Clone
    + 'static {
    // Required methods
    fn len(&self) -> usize;
    fn push(&mut self, row: R);
    fn build_columns(&mut self) -> Result<Vec<ArrayRef>>;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn build(&mut self, schema: SchemaRef) -> Result<RecordBatch> { ... }
}

Required Methods§

Source

fn len(&self) -> usize

Source

fn push(&mut self, row: R)

Source

fn build_columns(&mut self) -> Result<Vec<ArrayRef>>

Provided Methods§

Source

fn is_empty(&self) -> bool

Source

fn build(&mut self, schema: SchemaRef) -> Result<RecordBatch>

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§

Source§

impl RowBatchBuilder<()> for TupleBuilder<()>

Source§

impl<R> RowBatchBuilder<Row<R>> for RowBuilder<R::Builder>
where R: RowFormat,

Source§

impl<T1> RowBatchBuilder<(T1,)> for TupleBuilder<(T1::Builder,)>
where T1: RowFormat,

Source§

impl<T1, T2> RowBatchBuilder<(T1, T2)> for TupleBuilder<(T1::Builder, T2::Builder)>
where T1: RowFormat, T2: RowFormat,

Source§

impl<T1, T2, T3> RowBatchBuilder<(T1, T2, T3)> for TupleBuilder<(T1::Builder, T2::Builder, T3::Builder)>
where T1: RowFormat, T2: RowFormat, T3: RowFormat,

Source§

impl<T1, T2, T3, T4> RowBatchBuilder<(T1, T2, T3, T4)> for TupleBuilder<(T1::Builder, T2::Builder, T3::Builder, T4::Builder)>
where T1: RowFormat, T2: RowFormat, T3: RowFormat, T4: RowFormat,

Source§

impl<T1, T2, T3, T4, T5> RowBatchBuilder<(T1, T2, T3, T4, T5)> for TupleBuilder<(T1::Builder, T2::Builder, T3::Builder, T4::Builder, T5::Builder)>
where T1: RowFormat, T2: RowFormat, T3: RowFormat, T4: RowFormat, T5: RowFormat,

Source§

impl<T1, T2, T3, T4, T5, T6> RowBatchBuilder<(T1, T2, T3, T4, T5, T6)> for TupleBuilder<(T1::Builder, T2::Builder, T3::Builder, T4::Builder, T5::Builder, T6::Builder)>
where T1: RowFormat, T2: RowFormat, T3: RowFormat, T4: RowFormat, T5: RowFormat, T6: RowFormat,

Source§

impl<T> RowBatchBuilder<T> for ScalarBuilder<T>
where T: TensorValue,

Source§

impl<T, const N: usize> RowBatchBuilder<[T; N]> for ArrayBuilder<T::Builder, N>
where T: RowFormat,