[FLINK] Support timer service#29
Open
KevinyhZou wants to merge 4 commits intobigo-sg:gluten-0530from
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
支持Timer service功能
支持process timer service: 每条数据对应不同的key 和 timestamp, 对于每个不同的key 和 timestamp,将其注册并保存到对应的queue 中,并定义对应的 SystemProcessTimer,根据定期的系统timer 时间来触发计算;
支持event timer service:同样每条数据对应不同的key 和 timestamp,注册event timer到对应的key中,当watermar assinger 不断的发送watermark 调用advanceWatermark, 将eventTimerQueue中的timer 取出,逐条与watermark,判断是否watermar 是否触发了计算,如果是的话,则计算结果;