Commit 3f475b1
feat: make BatchPartitioner::partition_iter public (#21341)
## Which issue does this PR close?
- Closes #21311.
## Rationale for this change
`BatchPartitioner::partition_iter` is already used internally as the
core implementation behind the public `partition` method, and was
intentionally factored out to support both sync and async consumption
patterns. However, since it's private, downstream crates like Ballista
can't use the iterator directly and are forced to run both CPU-bound
partitioning and I/O together in a sync closure.
## What changes are included in this PR?
Changed `partition_iter` visibility from private to public.
## Are these changes tested?
The existing tests for `BatchPartitioner` cover `partition_iter`
indirectly through the `partition` method, which delegates to it. No
behavioral change was made.
## Are there any user-facing changes?
`BatchPartitioner::partition_iter` is now part of the public API. This
is a purely additive change with no breaking impact.
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>1 parent 95630ed commit 3f475b1
1 file changed
Lines changed: 14 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
548 | | - | |
| 548 | + | |
549 | 549 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
554 | 563 | | |
555 | 564 | | |
556 | 565 | | |
| |||
0 commit comments