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§
Sourcefn next_row(&mut self) -> Option<Result<Row>>
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).
Sourcefn schema(&self) -> &[ColumnMetadata]
fn schema(&self) -> &[ColumnMetadata]
Returns the schema of rows produced by this iterator.