pub trait SpecRecords: Windowed + Debug {
// Required methods
fn rows(&self) -> usize;
fn schema(&self) -> SchemaRef;
fn into_lazy(self: Arc<Self>) -> PolarsResult<LazyFrame>;
fn collect(&self, rows: usize) -> PolarsResult<DataFrame>;
fn sources(&self) -> &[Arc<Bytes>];
}Expand description
The rows a spec reads, however they are framed: what the table, a window of it,
formats check and the fuzz target read through.
Required Methods§
fn rows(&self) -> usize
fn schema(&self) -> SchemaRef
Sourcefn into_lazy(self: Arc<Self>) -> PolarsResult<LazyFrame>
fn into_lazy(self: Arc<Self>) -> PolarsResult<LazyFrame>
The frame: a scan that decodes only what a query asks for.
Sourcefn collect(&self, rows: usize) -> PolarsResult<DataFrame>
fn collect(&self, rows: usize) -> PolarsResult<DataFrame>
The first rows rows, decoded now.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".