本文簡要介紹 python 語言中pyflink.datastream.StreamExecutionEnvironment.set_stream_time_characteristic
的用法。
用法:
set_stream_time_characteristic(characteristic: pyflink.datastream.time_characteristic.TimeCharacteristic)
設置從此環境創建的所有流的時間特征,例如,處理時間、事件時間或攝取時間。
如果您將特征設置為 EventTime 的 IngestionTime,這將設置默認水印更新間隔為 200 毫秒。如果這不適用於您的應用程序,您應該使用
pyflink.common.ExecutionConfig.set_auto_watermark_interval()
.例子:
>>> env.set_stream_time_characteristic(TimeCharacteristic.EventTime)
參數:
characteristic- 時間特性,可能是
TimeCharacteristic.ProcessingTime
,TimeCharacteristic.IngestionTime
,TimeCharacteristic.EventTime
.
相關用法
- Python pyflink StreamExecutionEnvironment.set_state_backend用法及代碼示例
- Python pyflink StreamExecutionEnvironment.set_restart_strategy用法及代碼示例
- Python pyflink StreamExecutionEnvironment.set_python_executable用法及代碼示例
- Python pyflink StreamExecutionEnvironment.set_default_savepoint_directory用法及代碼示例
- Python pyflink StreamExecutionEnvironment.set_python_requirements用法及代碼示例
- Python pyflink StreamExecutionEnvironment.enable_checkpointing用法及代碼示例
- Python pyflink StreamExecutionEnvironment.add_python_archive用法及代碼示例
- Python pyflink StreamExecutionEnvironment.register_type用法及代碼示例
- Python pyflink StreamExecutionEnvironment.add_default_kryo_serializer用法及代碼示例
- Python pyflink StreamExecutionEnvironment.register_type_with_kryo_serializer用法及代碼示例
- Python pyflink StreamTableEnvironment.from_data_stream用法及代碼示例
- Python pyflink StreamTableEnvironment.create用法及代碼示例
- Python pyflink StreamTableEnvironment.to_changelog_stream用法及代碼示例
- Python pyflink StatementSet.add_insert用法及代碼示例
- Python pyflink Session用法及代碼示例
- Python pyflink Slide用法及代碼示例
- Python pyflink Schema.Builder.watermark用法及代碼示例
- Python pyflink Schema.Builder.column_by_expression用法及代碼示例
- Python pyflink SlidingProcessingTimeWindows用法及代碼示例
- Python pyflink SlidingEventTimeWindows用法及代碼示例
- Python pyflink Table.intersect_all用法及代碼示例
- Python pyflink GroupedTable.select用法及代碼示例
- Python pyflink Expression.to_date用法及代碼示例
- Python pyflink Table.fetch用法及代碼示例
- Python pyflink PulsarSourceBuilder用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 pyflink.datastream.StreamExecutionEnvironment.set_stream_time_characteristic。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。