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
  • StreamExecutionEnvironment
  • pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.add_source

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.add_source#

StreamExecutionEnvironment.add_source(source_func: SourceFunction, source_name: str = 'Custom Source', type_info: TypeInformation | None = None) → DataStream[source]#

Adds a data source to the streaming topology.

Parameters:
  • source_func – the user defined function.

  • source_name – name of the data source. Optional.

  • type_info – type of the returned stream. Optional.

Returns:

the data stream constructed.

previous

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.create_input

next

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.from_source

On this page
  • StreamExecutionEnvironment.add_source()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.