pyflink.datastream.data_stream.BroadcastConnectedStream.process#
- BroadcastConnectedStream.process(func: BroadcastProcessFunction, output_type: TypeInformation = None) DataStream[source]#
- BroadcastConnectedStream.process(func: KeyedBroadcastProcessFunction, output_type: TypeInformation = None) DataStream
Assumes as inputs a
BroadcastStreamand aDataStreamorKeyedStreamand applies the givenBroadcastProcessFunctionorKeyedBroadcastProcessFunctionon them, thereby creating a transformed output stream.- Parameters
func – The
BroadcastProcessFunctionthat is called for each element in the non-broadcastedDataStream, or theKeyedBroadcastProcessFunctionthat is called for each element in the non-broadcastedKeyedStream.output_type – The type of the output elements, should be
common.TypeInformationor list (implicitRowTypeInfo) or None ( implicitTypes.PICKLED_BYTE_ARRAY()).
- Returns
The transformed
DataStream.