groupwin 的概念就像未对齐的窗口? [英] The concept groupwin is like the unaligned windows?

查看:27
本文介绍了groupwin 的概念就像未对齐的窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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.)

在谷歌的数据流中,未对齐的窗口意味着:

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.

这些是同一个意思吗?<代码>设置<事件>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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆