Here is a simple code example to illustrate my question:
case class Record( key: String, value: Int ) object Job extends App { val env = StreamExecutionEn
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.
Trigger
CountTrigger
EventTimeTrigger