pyflink.datastream.data_stream.BroadcastStream#
- class BroadcastStream(input_stream: Union[pyflink.datastream.data_stream.DataStream, pyflink.datastream.data_stream.KeyedStream], broadcast_state_descriptors: List[pyflink.datastream.state.MapStateDescriptor])[source]#
A BroadcastStream is a stream with
state.BroadcastState
(s). This can be created by any stream using theDataStream.broadcast()
method and implicitly creates states where the user can store elements of the createdBroadcastStream
. (seeBroadcastConnectedStream
).Note that no further operation can be applied to these streams. The only available option is to connect them with a keyed or non-keyed stream, using the
KeyedStream.connect()
and theDataStream.connect()
respectively. Applying these methods will result it aBroadcastConnectedStream
for further processing.New in version 1.16.0.