The concept groupwin is like the unaligned windows?

守給你的承諾、 提交于 2019-12-11 04:36:30

问题


groupwin

I use the meaning in esper:

This view groups events into sub-views by the value returned by the specified expression or the combination of values returned by a list of expressions.

I think it is that you have the ability to operate by group,not stream(the group by is used to control how aggregations are grouped.)

unaligned window

In google's dataflow ,unaligned windows means:

By unaligned windows, we mean windows which do not span the entirety of a data source, but instead only a subset of it, such as per-user windows.

And does these mean the same thing? Set<event> XXXX = eventStream.GroupByKey(XXX);


回答1:


Grouped windows: there is no relationship to aggregations and aggregations are operating only by the group-by clause if there is one. Grouped window for Esper is a way to define the subsets of events that are considered. That is useful various use cases, for example match-recognize pattern matching over a subset of events or just running some function over some subset of events or comparing previous events in the same group with "prev".

In general ability to "operate per-group" in Esper is done by contexts ie. context partition per key.



来源:https://stackoverflow.com/questions/41523167/the-concept-groupwin-is-like-the-unaligned-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!