Skip to main content
Ctrl+K
PyFlink 1.20+vvr.11.7.dev0 documentation - Home PyFlink 1.20+vvr.11.7.dev0 documentation - Home
  • API Reference
  • Examples
  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Asynchronous I/O
    • Connectors
    • Formats
  • PyFlink DataFrame
  • PyFlink Common
  • API Reference
  • PyFlink DataStream
  • DataStream
  • pyflink.datastream.data_stream.ConnectedStreams.flat_map

pyflink.datastream.data_stream.ConnectedStreams.flat_map#

ConnectedStreams.flat_map(func: CoFlatMapFunction, output_type: TypeInformation | None = None) → DataStream[source]#

Applies a CoFlatMap transformation on a ConnectedStreams and maps the output to a common type. The transformation calls a CoFlatMapFunction.flatMap1 for each element of the first input and CoFlatMapFunction.flatMap2 for each element of the second input. Each CoFlatMapFunction call returns any number of elements including none.

Parameters:
  • func – The CoFlatMapFunction used to jointly transform the two input DataStreams

  • output_type – TypeInformation for the result type of the function.

Returns:

The transformed DataStream

previous

pyflink.datastream.data_stream.ConnectedStreams.map

next

pyflink.datastream.data_stream.ConnectedStreams.process

On this page
  • ConnectedStreams.flat_map()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.