Macro datafusion::physical_plan::handle_state
source · macro_rules! handle_state { ($match_case:expr) => { ... }; }
Expand description
The handle_state
macro is designed to process the result of a state-changing
operation, typically encountered in implementations of EagerJoinStream
. It
operates on a StreamJoinStateResult
by matching its variants and executing
corresponding actions. This macro is used to streamline code that deals with
state transitions, reducing boilerplate and improving readability.
Cases
Ok(StreamJoinStateResult::Continue)
: Continues the loop, indicating the stream join operation should proceed to the next step.Ok(StreamJoinStateResult::Ready(result))
: Returns aPoll::Ready
with the result, either yielding a value or indicating the stream is awaiting more data.Err(e)
: Returns aPoll::Ready
containing an error, signaling an issue during the stream join operation.
Arguments
$match_case
: An expression that evaluates to aResult<StreamJoinStateResult<_>>
.