pub enum UnionMode {
Parallel,
Sequential,
}Expand description
Controls how union operations combine multiple index scans for OR conditions.
When executing disjunctive (OR) queries across multiple indexes, results must be combined. This enum allows choosing between parallel and sequential execution strategies based on runtime requirements.
Variants§
Parallel
Use standard UnionExec with parallel execution.
This mode spawns Tokio tasks via JoinSet::spawn() to process partitions
concurrently. Best for Tokio-based runtimes with good parallelism support.
Warning: This mode will panic in non-Tokio async runtimes.
Sequential
Use SequentialUnionExec with single-threaded sequential execution.
This mode processes all input partitions sequentially in a single stream without spawning any tasks. Required for non-Tokio runtimes such as custom async executors that don’t support Tokio task spawning.
Trait Implementations§
impl Copy for UnionMode
Auto Trait Implementations§
impl Freeze for UnionMode
impl RefUnwindSafe for UnionMode
impl Send for UnionMode
impl Sync for UnionMode
impl Unpin for UnionMode
impl UnsafeUnpin for UnionMode
impl UnwindSafe for UnionMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more