RowIterator

Trait RowIterator 

Source
pub trait RowIterator {
    // Required methods
    fn next_row(&mut self) -> Option<Result<Row>>;
    fn schema(&self) -> &[ColumnMetadata];
}
Expand description

A trait for row-producing iterators in the query execution pipeline.

This trait abstracts over different types of iterators (scan, filter, sort, etc.) allowing them to be composed into execution pipelines.

Required Methods§

Source

fn next_row(&mut self) -> Option<Result<Row>>

Advances the iterator and returns the next row, or None if exhausted.

§Errors

Returns an error if the underlying operation fails (e.g., storage errors, evaluation errors).

Source

fn schema(&self) -> &[ColumnMetadata]

Returns the schema of rows produced by this iterator.

Trait Implementations§

Source§

impl RowIterator for Box<dyn RowIterator + '_>

Source§

fn next_row(&mut self) -> Option<Result<Row>>

Advances the iterator and returns the next row, or None if exhausted. Read more
Source§

fn schema(&self) -> &[ColumnMetadata]

Returns the schema of rows produced by this iterator.

Implementations on Foreign Types§

Source§

impl RowIterator for Box<dyn RowIterator + '_>

Implementors§