The general structure of a windowed Flink program is presented below. The first snippet refers to keyed streams,while the second to non-keyed ones. As one can see, the only difference is the keyBy(...) call for the keyed streamsand the window(...) which becomes windowAll(...) for non-keyed streams. This is also going to serve as a roadmapfor the rest of the page.