enum RepartitionExecState {
NotInitialized,
InputStreamsInitialized(Vec<(SendableRecordBatchStream, RepartitionMetrics)>),
ConsumingInputStreams(ConsumingInputStreamsState),
}Expand description
Inner state of RepartitionExec.
Variants§
NotInitialized
Not initialized yet. This is the default state stored in the RepartitionExec node upon instantiation.
InputStreamsInitialized(Vec<(SendableRecordBatchStream, RepartitionMetrics)>)
Input streams are initialized, but they are still not being consumed. The node transitions to this state when the arrow’s RecordBatch stream is created in RepartitionExec::execute(), but before any message is polled.
ConsumingInputStreams(ConsumingInputStreamsState)
The input streams are being consumed. The node transitions to this state when the first message in the arrow’s RecordBatch stream is consumed.
Implementations§
Source§impl RepartitionExecState
impl RepartitionExecState
fn ensure_input_streams_initialized( &mut self, input: Arc<dyn ExecutionPlan>, metrics: ExecutionPlanMetricsSet, output_partitions: usize, ctx: Arc<TaskContext>, ) -> Result<()>
fn consume_input_streams( &mut self, input: Arc<dyn ExecutionPlan>, metrics: ExecutionPlanMetricsSet, partitioning: Partitioning, preserve_order: bool, name: String, context: Arc<TaskContext>, ) -> Result<&mut ConsumingInputStreamsState>
Trait Implementations§
Source§impl Debug for RepartitionExecState
impl Debug for RepartitionExecState
Source§impl Default for RepartitionExecState
impl Default for RepartitionExecState
Source§fn default() -> RepartitionExecState
fn default() -> RepartitionExecState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepartitionExecState
impl !RefUnwindSafe for RepartitionExecState
impl Send for RepartitionExecState
impl !Sync for RepartitionExecState
impl Unpin for RepartitionExecState
impl !UnwindSafe for RepartitionExecState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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