groupwin的概念就像未对齐的窗口吗? [英] The concept groupwin is like the unaligned windows?
问题描述
我使用esper中的含义
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.
我认为您有能力按组而不是流进行操作(group by用于控制聚合的分组方式.)
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.)
在google的数据流中,未对齐的窗口表示:
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.
这些含义是否相同?
Set<event> XXXX = eventStream.GroupByKey(XXX);
And does these mean the same thing?
Set<event> XXXX = eventStream.GroupByKey(XXX);
推荐答案
分组窗口:与聚合没有关系,如果存在聚合,则聚合仅由group-by子句操作. Esper的分组窗口是一种定义所考虑事件子集的方法.这对于各种用例都是有用的,例如,在一个事件子集上进行匹配识别模式匹配,或者仅在某个事件子集上运行某些功能,或者将同一组中的先前事件与"prev"进行比较.
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".
在Esper中,按组操作"的一般能力是通过上下文来完成的.每个键的上下文分区.
In general ability to "operate per-group" in Esper is done by contexts ie. context partition per key.
这篇关于groupwin的概念就像未对齐的窗口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!