/// Collect and return all `RecordBatch`es into a `Vec`
Collect and return all `RecordBatch`es into a `Vec`
Collect and return all ` RecordBatch ` es into a ` Vec `
pub async fn collect(&mut self) -> Result<Vec<RecordBatch>, Error> {
        let mut batches = Vec::new();
        while let Some(data) = self.next().await? {
            batches.push(data);
        }
        Ok(batches)
    }
pub async fn collect ( & mut self ) -> Result < Vec < RecordBatch > , Error > { let mut batches = Vec :: new ( ) ; while let Some ( data ) = self . next ( ) . await ? { batches . push ( data ) ; } Ok ( batches ) }
Collect and return all `RecordBatch`es into a `Vec`
Collect and return all ` RecordBatch ` es into a ` Vec `
&mut self