pub enum SchedulingType {
NonCooperative,
Cooperative,
}Expand description
Represents whether an operator’s Stream has been implemented to actively cooperate with the
Tokio scheduler or not. Please refer to the coop module for more details.
Variants§
NonCooperative
The stream generated by execute does not actively participate in
cooperative scheduling. This means the implementation of the Stream returned by
ExecutionPlan::execute does not contain explicit task budget consumption such as
tokio::task::coop::consume_budget.
NonCooperative is the default value and is acceptable for most operators. Please refer to
the coop module for details on when it may be useful to use
Cooperative instead.
Cooperative
The stream generated by execute actively participates in
cooperative scheduling by consuming task budget when it was able to produce a
RecordBatch.
Trait Implementations§
Source§impl Clone for SchedulingType
impl Clone for SchedulingType
Source§fn clone(&self) -> SchedulingType
fn clone(&self) -> SchedulingType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchedulingType
impl Debug for SchedulingType
Source§impl PartialEq for SchedulingType
impl PartialEq for SchedulingType
impl Copy for SchedulingType
impl Eq for SchedulingType
impl StructuralPartialEq for SchedulingType
Auto Trait Implementations§
impl Freeze for SchedulingType
impl RefUnwindSafe for SchedulingType
impl Send for SchedulingType
impl Sync for SchedulingType
impl Unpin for SchedulingType
impl UnwindSafe for SchedulingType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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