Hello Aljoscha <[email protected]>, I have checked again with the (fantastic) blog here: https://flink.apache.org/news/2015/12/04/Introducing-windows.html and I have come to understand that the contents of a window-buffer must be disposed of *only* after the User-defined evaluation function has seen and used them all; in other words, referring to the flow in my mail below, it happens between step <4> and <1>.
Spurred by that sudden 'Aha' moment, I thought I should write to you again, so that you have to take less effort to explain. :-) -- Nirmalya <********* my earlier mail on the same thread ***********> Hello Aljoscha <[email protected]>, Many thanks for the explanation. Referring to the flow from your response: --------------------------------------------------------------- 1. Trigger fires 2. Evictor is called if it exists 3. Elements are evicted from window buffer if evictor returned number > 0 4. User-provided window function is called to emit window results ----------------------------------------------------------------- Just one clarification: If my Trigger acts as FIRE_AND_PURGE, when exactly does the *PURG*ing happen: between <1> and <2> above or between <4> and <1> above? My understanding is that it should happen between <4> and <1> because User-provided window function must be able to *see* the data to process it, *before* window buffer is emptied. -- Nirmalya -- Software Technologist http://www.linkedin.com/in/nirmalyasengupta "If you have built castles in the air, your work need not be lost. That is where they should be. Now put the foundation under them." -- Software Technologist http://www.linkedin.com/in/nirmalyasengupta "If you have built castles in the air, your work need not be lost. That is where they should be. Now put the foundation under them."
