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.CachedDataStream.execute_and_collect

pyflink.datastream.data_stream.CachedDataStream.execute_and_collect#

CachedDataStream.execute_and_collect(job_execution_name: str | None = None, limit: int | None = None) → CloseableIterator | list#

Triggers the distributed execution of the streaming dataflow and returns an iterator over the elements of the given DataStream.

The DataStream application is executed in the regular distributed manner on the target environment, and the events from the stream are polled back to this application process and thread through Flink’s REST API.

The returned iterator must be closed to free all cluster resources.

Parameters:
  • job_execution_name – The name of the job execution.

  • limit – The limit for the collected elements.

previous

pyflink.datastream.data_stream.CachedDataStream.sink_to

next

pyflink.datastream.data_stream.CachedDataStream.print

On this page
  • CachedDataStream.execute_and_collect()

This Page

  • Show Source

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.16.1.