Skip to main content

SpecRecords

Trait SpecRecords 

Source
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§

Source

fn rows(&self) -> usize

Source

fn schema(&self) -> SchemaRef

Source

fn into_lazy(self: Arc<Self>) -> PolarsResult<LazyFrame>

The frame: a scan that decodes only what a query asks for.

Source

fn collect(&self, rows: usize) -> PolarsResult<DataFrame>

The first rows rows, decoded now.

Source

fn sources(&self) -> &[Arc<Bytes>]

The bytes the rows are read from, for a reader of the raw bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§