Skip to content

Commit d254330

Browse files
committed
x
1 parent cbafabd commit d254330

File tree

1 file changed

+6
-0
lines changed
  • src/query/service/src/pipelines/processors/transforms/new_hash_join

1 file changed

+6
-0
lines changed

src/query/service/src/pipelines/processors/transforms/new_hash_join/join.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,22 @@ pub trait JoinStream: Send + Sync {
2424
}
2525

2626
pub trait Join: Send + Sync + 'static {
27+
/// Push one block into the build side. `None` signals the end of input.
2728
fn add_block(&mut self, data: Option<DataBlock>) -> Result<()>;
2829

30+
/// Finalize build phase in chunks; each call processes the next pending build batch and
31+
/// returns its progress. Once all batches are consumed it returns `None` to signal completion.
2932
fn final_build(&mut self) -> Result<Option<ProgressValues>>;
3033

34+
/// Generate runtime filter packet for the given filter description.
3135
fn build_runtime_filter(&self, _: &RuntimeFiltersDesc) -> Result<JoinRuntimeFilterPacket> {
3236
Ok(JoinRuntimeFilterPacket::default())
3337
}
3438

39+
/// Probe with a single block and return a streaming iterator over results.
3540
fn probe_block(&mut self, data: DataBlock) -> Result<Box<dyn JoinStream + '_>>;
3641

42+
/// Final steps after probing all blocks; used when more output is pending.
3743
fn final_probe(&mut self) -> Result<Option<Box<dyn JoinStream + '_>>> {
3844
Ok(None)
3945
}

0 commit comments

Comments
 (0)