Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink Table
  • PyFlink DataStream
    • StreamExecutionEnvironment
    • DataStream
    • Functions
    • State
    • Timer
    • Window
    • Checkpoint
    • Side Outputs
    • Connectors
    • Formats
  • PyFlink Common

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.add_source#

StreamExecutionEnvironment.add_source(source_func: SourceFunction, source_name: str = 'Custom Source', type_info: Optional[TypeInformation] = 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()
Show Source

Created using Sphinx 5.3.0.