Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Batch file 如何基于共享属性在Esper中批处理事件_Batch File_Correlation_Esper_Nesper - Fatal编程技术网

Batch file 如何基于共享属性在Esper中批处理事件

Batch file 如何基于共享属性在Esper中批处理事件,batch-file,correlation,esper,nesper,Batch File,Correlation,Esper,Nesper,我试图根据匹配的属性用户从时间窗口批处理一组事件。例如,假设以下事件在1秒内通过esper: 用户文件 A | a1.sys A | a2.inf A | a3.sys B | b1.sys B | b2.sys A | a4.sys B| b3.inf 我想按用户批处理事件,并输出以下两组事件: 产出1 A | a1.sys A | a2.inf A | a3.sys A | a4.sys 产出2 B | b1.sys B | b2.sys B| b3.inf 关键是这些组需要作为一个集合输出

我试图根据匹配的属性用户从时间窗口批处理一组事件。例如,假设以下事件在1秒内通过esper:

用户文件 A | a1.sys A | a2.inf A | a3.sys B | b1.sys B | b2.sys A | a4.sys B| b3.inf

我想按用户批处理事件,并输出以下两组事件:

产出1 A | a1.sys A | a2.inf A | a3.sys A | a4.sys 产出2 B | b1.sys B | b2.sys B| b3.inf

关键是这些组需要作为一个集合输出,而不是每个事件一个输出。我需要模拟从以下查询中得到的响应类型,其中事件a、b和c作为集合返回:

SELECT * FROM pattern[every a -> b -> c]
我就是想不出如何形成这样一个疑问。我尝试了以下方法,但它无法将事件批处理在一起

select * from ActivityEvent().std:groupwin(User).win:time_batch(5) 

有一个batch expression窗口,可以比较事件和发布批次。如[1]所述。 [1]