Skip to main content

DataSourceScan

Trait DataSourceScan 

Source
pub trait DataSourceScan: 'static + Send {
    // Required methods
    fn dtype(&self) -> &DType;
    fn partition_count(&self) -> Precision<usize>;
    fn partitions(self: Box<Self>) -> PartitionStream;
}
Expand description

A data source scan produces partitions that can be executed to read data from the source.

Required Methods§

Source

fn dtype(&self) -> &DType

The returned dtype of the scan.

Source

fn partition_count(&self) -> Precision<usize>

Returns an estimate of the total number of partitions the scan will produce.

Source

fn partitions(self: Box<Self>) -> PartitionStream

Returns a stream of partitions to be processed.

Implementations§

Source§

impl dyn DataSourceScan

Source

pub fn into_array_stream(self: Box<Self>) -> impl ArrayStream + Send

Execute partitions lazily, yielding their arrays in the order the partitions are emitted.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§