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.set_stream_time_characteristic#

StreamExecutionEnvironment.set_stream_time_characteristic(characteristic: TimeCharacteristic)[source]#

Sets the time characteristic for all streams create from this environment, e.g., processing time, event time, or ingestion time.

If you set the characteristic to IngestionTime of EventTime this will set a default watermark update interval of 200 ms. If this is not applicable for your application you should change it using pyflink.common.ExecutionConfig.set_auto_watermark_interval().

Example:

>>> env.set_stream_time_characteristic(TimeCharacteristic.EventTime)
Parameters

characteristic – The time characteristic, which could be TimeCharacteristic.ProcessingTime, TimeCharacteristic.IngestionTime, TimeCharacteristic.EventTime.

previous

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.register_type

next

pyflink.datastream.stream_execution_environment.StreamExecutionEnvironment.get_stream_time_characteristic

On this page
  • StreamExecutionEnvironment.set_stream_time_characteristic()
Show Source

Created using Sphinx 5.3.0.