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§
Sourcefn partition_count(&self) -> Precision<usize>
fn partition_count(&self) -> Precision<usize>
Returns an estimate of the total number of partitions the scan will produce.
Sourcefn partitions(self: Box<Self>) -> PartitionStream
fn partitions(self: Box<Self>) -> PartitionStream
Returns a stream of partitions to be processed.
Implementations§
Source§impl dyn DataSourceScan
impl dyn DataSourceScan
Sourcepub fn into_array_stream(self: Box<Self>) -> impl ArrayStream + Send
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".