pub trait RowFormat: Debug + Clone + 'static {
    type Builder: RowBatchBuilder<Self>;
    type View: RowFormatView<Self>;

    const COLUMNS: usize;

    // Required methods
    fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>;
    fn view(
        rows: usize,
        fields: &[Arc<Field>],
        arrays: &[ArrayRef]
    ) -> Result<Self::View>;
}

Required Associated Types§

Required Associated Constants§

Required Methods§

source

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

Implementations on Foreign Types§

source§

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

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder, <T2 as RowFormat>::Builder, <T3 as RowFormat>::Builder, <T4 as RowFormat>::Builder, <T5 as RowFormat>::Builder, <T6 as RowFormat>::Builder)>

§

type View = TupleView<(T1, T2, T3, T4, T5, T6), (<T1 as RowFormat>::View, <T2 as RowFormat>::View, <T3 as RowFormat>::View, <T4 as RowFormat>::View, <T5 as RowFormat>::View, <T6 as RowFormat>::View)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

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

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder, <T2 as RowFormat>::Builder, <T3 as RowFormat>::Builder, <T4 as RowFormat>::Builder)>

§

type View = TupleView<(T1, T2, T3, T4), (<T1 as RowFormat>::View, <T2 as RowFormat>::View, <T3 as RowFormat>::View, <T4 as RowFormat>::View)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

impl RowFormat for ()

source§

const COLUMNS: usize = 0usize

§

type Builder = TupleBuilder<()>

§

type View = TupleView<(), ()>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

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

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder, <T2 as RowFormat>::Builder)>

§

type View = TupleView<(T1, T2), (<T1 as RowFormat>::View, <T2 as RowFormat>::View)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

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

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder, <T2 as RowFormat>::Builder, <T3 as RowFormat>::Builder)>

§

type View = TupleView<(T1, T2, T3), (<T1 as RowFormat>::View, <T2 as RowFormat>::View, <T3 as RowFormat>::View)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

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

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder, <T2 as RowFormat>::Builder, <T3 as RowFormat>::Builder, <T4 as RowFormat>::Builder, <T5 as RowFormat>::Builder)>

§

type View = TupleView<(T1, T2, T3, T4, T5), (<T1 as RowFormat>::View, <T2 as RowFormat>::View, <T3 as RowFormat>::View, <T4 as RowFormat>::View, <T5 as RowFormat>::View)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

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

source§

const COLUMNS: usize = _

§

type Builder = ArrayBuilder<<T as RowFormat>::Builder, N>

§

type View = ArrayRowView<[T; N], <T as RowFormat>::View, N>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

source§

impl<T1> RowFormat for (T1,)where T1: RowFormat,

source§

const COLUMNS: usize = _

§

type Builder = TupleBuilder<(<T1 as RowFormat>::Builder,)>

§

type View = TupleView<(T1,), (<T1 as RowFormat>::View,)>

source§

fn builder(fields: &[Arc<Field>]) -> Result<Self::Builder>

source§

fn view( rows: usize, fields: &[Arc<Field>], arrays: &[ArrayRef] ) -> Result<Self::View>

Implementors§