pub enum CoalescerState {
Continue,
LimitReached,
TargetReached,
}
Expand description
Indicates the state of the BatchCoalescer
buffer after the
BatchCoalescer::push_batch()
operation.
The caller should take diferent actions, depending on the variant returned.
Variants§
Continue
Neither the limit nor the target batch size is reached.
Action: continue pushing batches.
LimitReached
The limit has been reached.
Action: call BatchCoalescer::finish_batch()
to get the final
buffered results as a batch and finish the query.
TargetReached
The specified minimum number of rows a batch should have is reached.
Action: call BatchCoalescer::finish_batch()
to get the current
buffered results as a batch and then continue pushing batches.
Auto Trait Implementations§
impl Freeze for CoalescerState
impl RefUnwindSafe for CoalescerState
impl Send for CoalescerState
impl Sync for CoalescerState
impl Unpin for CoalescerState
impl UnwindSafe for CoalescerState
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
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>
Converts
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>
Converts
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