Skip to main content

ArrowScanExt

Trait ArrowScanExt 

Source
pub trait ArrowScanExt {
    // Required method
    fn run_record_batches(
        self,
        builder: impl Into<ScanBuilder>,
        schema: Option<SchemaRef>,
    ) -> BoxStream<'static, VortexResult<RecordBatch>>;
}
Expand description

Arrow record-batch output for a scan driver.

Required Methods§

Source

fn run_record_batches( self, builder: impl Into<ScanBuilder>, schema: Option<SchemaRef>, ) -> BoxStream<'static, VortexResult<RecordBatch>>

Runs the scan, executing each batch to an Arrow RecordBatch.

When schema is None, the session derives it from the scan’s output dtype. Conversion and decompression run on the worker producing each batch, in parallel across chunks.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ArrowScanExt for ScanDriver

Source§

fn run_record_batches( self, builder: impl Into<ScanBuilder>, schema: Option<SchemaRef>, ) -> BoxStream<'static, VortexResult<RecordBatch>>

Implementors§