Trait datafusion::exec::Batch
[−]
[src]
pub trait Batch { fn col_count(&self) -> usize; fn row_count(&self) -> usize; fn column(&self, index: usize) -> &Rc<ColumnData>; fn row_slice(&self, index: usize) -> Vec<Value>; }
A batch of data organized as columns. The intent is to implement this using Apache Arrow soon but for now there will be a naive version while I integrate this.
Required Methods
fn col_count(&self) -> usize
fn row_count(&self) -> usize
fn column(&self, index: usize) -> &Rc<ColumnData>
fn row_slice(&self, index: usize) -> Vec<Value>
copy values into a row (EXPENSIVE)
Implementors
impl Batch for ColumnBatch