当前位置:网站首页>Flinksql window triggered in advance
Flinksql window triggered in advance
2022-07-27 01:14:00 【Me fan】
scene : The window of the day , Want to trigger every minute or other time point
insert into sliding_window_local_pay_day
select userid,
TUMBLE_START (ptime, INTERVAL '1' DAY) as window_start,
TUMBLE_END (ptime, INTERVAL '1' DAY) as window_end,
COUNT (1) as pay_num
from
flink_kafka_join_pay
group by TUMBLE (ptime, INTERVAL '1' DAY), userid;1. Two parameters : Every minute
table.exec.emit.early-fire.enabled: 'true'
table.exec.emit.early-fire.delay: 60s 2. Triggering in the source code means generating Trigger
Generate Trigger The logic of is window aggregation key The first data time point +N individual Interval, It's different key The trigger time is different
/**
* Creates a trigger that fires by a certain interval after reception of the first element.
*
* @param time the certain interval
*/
public static <W extends Window> AfterFirstElementPeriodic<W> every(Duration time) {
return new AfterFirstElementPeriodic<>(time.toMillis());
}3. Trigger effect , Different userid, The trigger time is different

边栏推荐
- The dependency of POM file is invalid when idea imports external projects. Solution
- SQL学习(1)——表相关操作
- Write the changed data in MySQL to Kafka through flinkcdc (datastream mode)
- 腾讯云MLVB技术如何在移动直播服务中突出重围之基础概念
- 快来:鼓励高校毕业生返乡创业就业,助力乡村振兴
- 深度学习报告(3)
- Simple explanation of database table connection
- Li Hongyi machine learning (2017 Edition)_ P13: deep learning
- SQL学习(3)——表的复杂查询与函数操作
- Keil开发环境的搭建送安装包
猜你喜欢

Data warehouse knowledge points

Uni-app 小程序 App 的广告变现之路:Banner 信息流广告

Hidden index and descending index in MySQL 8.0 (new feature)

Tencent upgrades the live broadcast function of video Number applet. Tencent's foundation for continuous promotion of live broadcast is this technology called visual cube (mlvb)

Rabbit学习笔记

不止直播:腾讯云直播MLVB 插件除了推流/拉流还有哪些亮眼功能

adb.exe已停止工作 弹窗问题

Spark ---- shuffle and partition of RDD

物联网将彻底改变制造业,你准备好了吗?

In depth learning report (3)
随机推荐
快来:鼓励高校毕业生返乡创业就业,助力乡村振兴
x 的平方根
SQL learning (3) -- complex query and function operation of tables
Redis -- cache avalanche, cache penetration, cache breakdown
初中高三部曲音视频下载Pronunciation Pairs+Ship or Sheep+Tree or Three
Spark ---- shuffle and partition of RDD
Iptables 详解与实战案例
李宏毅机器学习(2017版)_P13:深度学习
李宏毅机器学习(2017版)_P5:误差
李宏毅机器学习(2017版)_P1-2:机器学习介绍
Which securities company has a low stock commission and which stock is safe to open an account
Hidden index and descending index in MySQL 8.0 (new feature)
物联网将彻底改变制造业,你准备好了吗?
Use and cases of partitions
Applet live broadcast, online live broadcast, live broadcast reward: Tencent cloud mobile live broadcast component mlvb multi scene live broadcast expansion
The difference between golang slice make and new
ks 怎么抓salt值?api,did?
深入理解Pod对象:基本管理
解决rsyslog服务占用内存过高
Spark source code learning - memory tuning