RICH-ATONE

Flink中的WaterMark详解

//参考官网指定时间戳,直接使用lambda表达式获取

        WatermarkStrategy.<Tuple3<Long,String,Integer>>forBoundedOutOfOrderness(Duration.ofSeconds(20))
                .withTimestampAssigner((event,timestamp) -> event.f0) ;

  

参考:

https://ci.apache.org/projects/flink/flink-docs-release-1.12/zh/dev/event_timestamps_watermarks.html

Flink之Watermark实践

Flink的WaterMark详解

posted on 2021-04-24 17:03  RICH-ATONE  阅读(210)  评论(0编辑  收藏  举报

导航