StreamBetaNode

Struct StreamBetaNode 

Source
pub struct StreamBetaNode {
    pub name: String,
    pub left_input: BetaInput,
    pub right_input: BetaInput,
    pub join_conditions: Vec<JoinCondition>,
    pub strategy: JoinStrategy,
    /* private fields */
}
Expand description

Beta node for joining two streams (or stream + joined result) Supports nested joins for 3+ stream correlation

Fields§

§name: String

Name for debugging

§left_input: BetaInput

Left input (alpha node or nested beta node)

§right_input: BetaInput

Right input (alpha node or nested beta node)

§join_conditions: Vec<JoinCondition>

Join conditions (e.g., zone_id == zone_id)

§strategy: JoinStrategy

Join strategy

Implementations§

Source§

impl StreamBetaNode

Source

pub fn new( name: String, left_input: BetaInput, right_input: BetaInput, join_conditions: Vec<JoinCondition>, strategy: JoinStrategy, ) -> Self

Create a new beta node for stream join

Source

pub fn from_alpha_nodes( name: String, left_alpha: Arc<Mutex<StreamAlphaNode>>, right_alpha: Arc<Mutex<StreamAlphaNode>>, join_conditions: Vec<JoinCondition>, strategy: JoinStrategy, ) -> Self

Create beta node from two alpha nodes (simple 2-stream join)

Source

pub fn from_beta_and_alpha( name: String, left_beta: Arc<Mutex<StreamBetaNode>>, right_alpha: Arc<Mutex<StreamAlphaNode>>, join_conditions: Vec<JoinCondition>, strategy: JoinStrategy, ) -> Self

Create beta node for nested join (beta + alpha)

Source

pub fn process_left_event( &mut self, event: StreamEvent, ) -> Vec<MultiStreamJoinResult>

Process event from left input (wrap in MultiStreamJoinResult)

Source

pub fn process_right_event( &mut self, event: StreamEvent, ) -> Vec<MultiStreamJoinResult>

Process event from right input (wrap in MultiStreamJoinResult)

Source

pub fn process_left_result( &mut self, result: MultiStreamJoinResult, ) -> Vec<MultiStreamJoinResult>

Process join result from left input (for nested beta nodes)

Source

pub fn process_right_result( &mut self, result: MultiStreamJoinResult, ) -> Vec<MultiStreamJoinResult>

Process join result from right input (for nested beta nodes)

Source

pub fn get_stats(&self) -> BetaNodeStats

Get statistics about buffer sizes

Trait Implementations§

Source§

impl Debug for StreamBetaNode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,