Skip to main content

RowSource

Trait RowSource 

Source
pub trait RowSource:
    Send
    + Sync
    + 'static {
    // Required methods
    fn height(&self) -> usize;
    fn schema(&self) -> SchemaRef;
    fn decode(&self, column: usize, index: &IdxCa) -> PolarsResult<Column>;
}
Expand description

A table whose values are decoded from their row numbers.

Required Methods§

Source

fn height(&self) -> usize

Rows on hand, at most MAX_ROWS.

Source

fn schema(&self) -> SchemaRef

Source

fn decode(&self, column: usize, index: &IdxCa) -> PolarsResult<Column>

The schema’s columnth column for the rows index names, in that order. The index comes from the plan’s row index, so it has no nulls and every row is under Self::height; a source still refuses one that is not, rather than read past its bytes.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§