pyflink.datastream.data_stream.BroadcastConnectedStream.process#
- BroadcastConnectedStream.process(func: pyflink.datastream.functions.BroadcastProcessFunction, output_type: pyflink.common.typeinfo.TypeInformation = None) pyflink.datastream.data_stream.DataStream[source]#
- BroadcastConnectedStream.process(func: pyflink.datastream.functions.KeyedBroadcastProcessFunction, output_type: pyflink.common.typeinfo.TypeInformation = None) pyflink.datastream.data_stream.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.