DataSource

Trait DataSource 

Source
pub trait DataSource:
    Debug
    + Send
    + Sync {
    // Required method
    fn load(&self) -> Result<(Arc<ArrowSchema>, Vec<RecordBatch>)>;
}
Expand description

Trait for data sources that can load data into a cube

Data sources must be Send + Sync to allow use in multi-threaded contexts, particularly for Python bindings via PyO3.

Required Methods§

Source

fn load(&self) -> Result<(Arc<ArrowSchema>, Vec<RecordBatch>)>

Load data from the source

Returns a tuple of (Arrow schema, vector of RecordBatches)

Implementors§