Apache Flink: Count window with timeout

前端 未结 3 2168
日久生厌
日久生厌 2020-12-19 13:18

Here is a simple code example to illustrate my question:

case class Record( key: String, value: Int )

object Job extends App
{
  val env = StreamExecutionEn         


        
3条回答
  •  自闭症患者
    2020-12-19 13:42

    You could also do this with a custom window Trigger that fires either when the count has been reached or when the timeout expires -- effectively blending the built-in CountTrigger and EventTimeTrigger.

提交回复
热议问题