pyflink.datastream.data_stream.KeyedStream.connect#
- KeyedStream.connect(ds: DataStream) ConnectedStreams[source]#
- KeyedStream.connect(ds: BroadcastStream) BroadcastConnectedStream
If ds is a
DataStream, creates a newConnectedStreamsby connecting DataStream outputs of (possible) different types with each other. The DataStreams connected using this operator can be used with CoFunctions to apply joint transformations.If ds is a
BroadcastStream, creates a newBroadcastConnectedStreamby connecting the currentDataStreamwith aBroadcastStream. The latter can be created using thebroadcast()method. The resulting stream can be further processed using theBroadcastConnectedStream.process()method.- Parameters
ds – The DataStream or BroadcastStream with which this stream will be connected.
- Returns
The ConnectedStreams or BroadcastConnectedStream.
Changed in version 1.16.0: Support connect BroadcastStream