...
To express the semantics of full window processing on DataStream, we need to define the corresponding method in DataStream class. One approach is to directly add a window(WindowAssigner assigner)
method to DataStream. This method only supports passing the EndOfStreamWindows
introduced in FLIP-331. If users want to apply full window processing, the corresponding job code will bedataStream.window(EndOfStreamWindows.get())
.
However, this approach may lead users to mistakenly pass window assigners other than EndOfStreamWindows
to the method, which is not supported.
...