pub struct JoinExecutor {}Expand description
Modern streaming join executor.
Uses Volcano-style operators for efficient join execution with:
- Streaming probe side (no full materialization)
- Early termination for LIMIT
- Residual filter application during iteration
Implementations§
Source§impl JoinExecutor
impl JoinExecutor
Sourcepub fn execute(&self, request: JoinRequest<'_>) -> Result<JoinResult>
pub fn execute(&self, request: JoinRequest<'_>) -> Result<JoinResult>
Execute a join operation.
This is the main entry point that:
- Analyzes the join condition
- Uses provided algorithm hint or selects optimal algorithm
- Executes with streaming
- Applies early termination
Sourcepub fn execute_streaming(
&self,
request: StreamingJoinRequest<'_>,
) -> Result<JoinResult>
pub fn execute_streaming( &self, request: StreamingJoinRequest<'_>, ) -> Result<JoinResult>
Execute a streaming hash join where probe side streams from an operator.
This is the optimized path for LIMIT queries:
- Build side is materialized (required for hash table)
- Probe side streams row-by-row (O(1) memory)
- Early termination stops probe scan immediately when LIMIT is reached
§Performance
For SELECT ... JOIN ... LIMIT 10:
- Old path: Materialize 10M + 10M rows, then return 10
- This path: Materialize 10M rows, stream until 10 matches
Memory usage is halved, and early termination actually stops work.
Sourcepub fn execute_streaming_result(
&self,
request: StreamingJoinRequest<'_>,
) -> Result<StreamingJoinResult>
pub fn execute_streaming_result( &self, request: StreamingJoinRequest<'_>, ) -> Result<StreamingJoinResult>
Return a pull cursor over one hash edge without collecting its output. The cursor itself enforces LIMIT and closes the whole child pipeline on EOF, cancellation, error, early limit, or drop.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JoinExecutor
impl RefUnwindSafe for JoinExecutor
impl Send for JoinExecutor
impl Sync for JoinExecutor
impl Unpin for JoinExecutor
impl UnsafeUnpin for JoinExecutor
impl UnwindSafe for JoinExecutor
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