pub struct NestedLoopJoinOperator { /* private fields */ }Expand description
Nested Loop Join Operator.
For each row in the outer (left) input, scans all rows in the inner (right) input and emits matches based on the join condition.
Implementations§
Source§impl NestedLoopJoinOperator
impl NestedLoopJoinOperator
Sourcepub fn new(
left: Box<dyn Operator>,
right: Box<dyn Operator>,
join_type: JoinType,
condition: Option<Expression>,
) -> Self
pub fn new( left: Box<dyn Operator>, right: Box<dyn Operator>, join_type: JoinType, condition: Option<Expression>, ) -> Self
Create a new nested loop join operator.
§Arguments
left- Left (outer) input operatorright- Right (inner) input operatorjoin_type- Type of join (INNER, LEFT, RIGHT, FULL, CROSS)condition- Join condition (None for CROSS JOIN)
Sourcepub fn with_projection(
self,
columns: Vec<ColumnSource>,
projected_schema: Vec<ColumnInfo>,
) -> Self
pub fn with_projection( self, columns: Vec<ColumnSource>, projected_schema: Vec<ColumnInfo>, ) -> Self
Set fused output projection.
Nested-loop still evaluates the join predicate against the full logical left/right rows. After that predicate boundary, projected output can be built directly, and unmatched OUTER rows can use sparse NULLs only for requested columns.
Trait Implementations§
Source§impl Operator for NestedLoopJoinOperator
impl Operator for NestedLoopJoinOperator
Source§fn schema(&self) -> &[ColumnInfo]
fn schema(&self) -> &[ColumnInfo]
Get the schema (column information) for this operator’s output.
Source§fn estimated_rows(&self) -> Option<usize>
fn estimated_rows(&self) -> Option<usize>
Get an estimate of the number of rows this operator will produce. Read more
Source§fn ordering(&self) -> OrderingProperty
fn ordering(&self) -> OrderingProperty
Physical ordering guaranteed by this operator’s output. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for NestedLoopJoinOperator
impl !Sync for NestedLoopJoinOperator
impl !UnwindSafe for NestedLoopJoinOperator
impl Freeze for NestedLoopJoinOperator
impl Send for NestedLoopJoinOperator
impl Unpin for NestedLoopJoinOperator
impl UnsafeUnpin for NestedLoopJoinOperator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more