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.DataStream.map

pyflink.datastream.data_stream.DataStream.map#

DataStream.map(func: Callable | MapFunction, output_type: TypeInformation | None = None) → DataStream[source]#

Applies a Map transformation on a DataStream. The transformation calls a MapFunction for each element of the DataStream. Each MapFunction call returns exactly one element.

Note that If user does not specify the output data type, the output data will be serialized as pickle primitive byte array.

Parameters:
  • func – The MapFunction that is called for each element of the DataStream.

  • output_type – The type information of the MapFunction output data.

Returns:

The transformed DataStream.

previous

pyflink.datastream.data_stream.DataStream.set_description

next

pyflink.datastream.data_stream.DataStream.flat_map

On this page
  • DataStream.map()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.