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.data_stream.DataStream.assign_timestamps_and_watermarks#

DataStream.assign_timestamps_and_watermarks(watermark_strategy: pyflink.common.watermark_strategy.WatermarkStrategy) → pyflink.datastream.data_stream.DataStream[source]#

Assigns timestamps to the elements in the data stream and generates watermarks to signal event time progress. The given {@link WatermarkStrategy} is used to create a TimestampAssigner and WatermarkGenerator.

Parameters

watermark_strategy – The strategy to generate watermarks based on event timestamps.

Returns

The stream after the transformation, with assigned timestamps and watermarks.

previous

pyflink.datastream.data_stream.DataStream.process

next

pyflink.datastream.data_stream.DataStream.partition_custom

Show Source

Created using Sphinx 4.5.0.