pyflink.datastream.data_stream.BroadcastConnectedStream.process#
- BroadcastConnectedStream.process(func: pyflink.datastream.functions.BroadcastProcessFunction, output_type: pyflink.common.typeinfo.TypeInformation = None) DataStream [source]#
- BroadcastConnectedStream.process(func: pyflink.datastream.functions.KeyedBroadcastProcessFunction, output_type: pyflink.common.typeinfo.TypeInformation = None) DataStream
Assumes as inputs a
BroadcastStream
and aDataStream
orKeyedStream
and applies the givenBroadcastProcessFunction
orKeyedBroadcastProcessFunction
on them, thereby creating a transformed output stream.- Parameters
func – The
BroadcastProcessFunction
that is called for each element in the non-broadcastedDataStream
, or theKeyedBroadcastProcessFunction
that is called for each element in the non-broadcastedKeyedStream
.output_type – The type of the output elements, should be
common.TypeInformation
or list (implicitRowTypeInfo
) or None ( implicitTypes.PICKLED_BYTE_ARRAY()
).
- Returns
The transformed
DataStream
.