pub fn to_arrow(&self, selection: Selection<'_>) -> Result<RecordBatch> {
        let schema = self.schema(selection)?;
        let columns = schema
            .iter()
            .map(|(_, field)| {
                let column = self
                    .columns
                    .get(field.name())
                    .expect("schema contains non-existent column");

                column.to_arrow().context(ColumnError {
                    column: field.name(),
                })
            })
            .collect::<Result<Vec<_>>>()?;

        RecordBatch::try_new(schema.into(), columns).context(ArrowError {})
    }
/// Converts this table to an arrow record batch
///
/// If Selection::All the returned columns are sorted by name
Converts this table to an arrow record batch
If Selection::All the returned columns are sorted by name
Converts this table to an arrow record batch If Selection :: All the returned columns are sorted by name
pub fn to_arrow(&self, selection: Selection<'_>) -> Result<RecordBatch> {
        let schema = self.schema(selection)?;
        let columns = schema
            .iter()
            .map(|(_, field)| {
                let column = self
                    .columns
                    .get(field.name())
                    .expect("schema contains non-existent column");
                column.to_arrow().context(ColumnError {
                    column: field.name(),
                })
            })
            .collect::<Result<Vec<_>>>()?;
        RecordBatch::try_new(schema.into(), columns).context(ArrowError {})
    }
pub fn to_arrow ( & self , selection : Selection < ' _ > ) -> Result < RecordBatch > { let schema = self . schema ( selection ) ? ; let columns = schema . iter ( ) . map ( | ( _ , field ) | { let column = self . columns . get ( field . name ( ) ) . expect ( " " ) ; column . to_arrow ( ) . context ( ColumnError { column : field . name ( ) , } ) } ) . collect :: < Result < Vec < _ > > > ( ) ? ; RecordBatch :: try_new ( schema . into ( ) , columns ) . context ( ArrowError { } ) }
Converts this table to an arrow record batch
If Selection::All the returned columns are sorted by name
Converts this table to an arrow record batch If Selection :: All the returned columns are sorted by name
&self
selection
Selection<'_>
&self
selection
Selection<'_>