Class BroadcastConnectedStream<IN1,​IN2>

  • Type Parameters:
    IN1 - The input type of the non-broadcast side.
    IN2 - The input type of the broadcast side.

    @PublicEvolving
    public class BroadcastConnectedStream<IN1,​IN2>
    extends Object
    A BroadcastConnectedStream represents the result of connecting a keyed or non-keyed stream, with a BroadcastStream with broadcast state(s). As in the case of ConnectedStreams these streams are useful for cases where operations on one stream directly affect the operations on the other stream, usually via shared state between the streams.

    An example for the use of such connected streams would be to apply rules that change over time onto another, possibly keyed stream. The stream with the broadcast state has the rules, and will store them in the broadcast state, while the other stream will contain the elements to apply the rules to. By broadcasting the rules, these will be available in all parallel instances, and can be applied to all partitions of the other stream.