Skip to main content

Module scan

Module scan 

Source
Expand description

Scan operators.

TableScan pulls rows from any RowSource in fixed-size batches. The trait is the integration seam: the engine implements it over its in-memory and SQLite-backed table state, the FDW layer implements it over MemoryHandler / DuckDBHandler / ArrowHandler, and tests can implement it directly over an in-memory Vec<ResultRow>.

Structs§

PhysicalVecSource
In-memory positional source that preserves a structured RowSchema and shared physical row fragments without round-tripping through named maps.
RowIteratorScan
Physical scan over a fallible row iterator. Unlike VecSource, this adapter preserves producer backpressure and late errors without requiring a cardinality-sized staging vector.
TableScan
TableScan: a leaf operator that drains its RowSource.
VecSource
In-memory source from a precomputed Vec<ResultRow>. Useful for tests and for materialising CTE bodies.

Traits§

RowSource
Source of rows feeding a TableScan. Implementors typically own a snapshot of the underlying table or external relation; the scan operator holds the source as a boxed trait object so callers can mix and match implementations across one query.