在ESPER中值增加超过100次时查找开始值和停止值

时间:2014-09-05 15:16:35

标签: stream complex-event-processing esper data-stream

我在ESPER遇到麻烦。

我有一个模拟库存文件,其中包含大量信息。

当BTC股票的加权价格增加超过100倍时,我想找出所有开始和结束日期。

这是文件的外观。这些是BTC股票:

2010-07-18,0.04951,0.08585,0.05941,0.08584,75.01,0.07 2010-07-19,0.08584,0.09307,0.07723,0.0808,574,0.09 2010-07-20,0.0808,0.08181,0.07426,0.07474,262,0.08

按顺序每个COMMA分离代表:时间戳,开放,高,低,收盘,交易量,平均值

所以基本上我应该做一个查询,做我上面说的^我似乎无法找出如何。我对CEP很新,所以我还在读它。

非常感谢任何帮助。

1 个答案:

答案 0 :(得分:0)

您可以使用" prev"增加命名窗口中的计数,或者针对聚合自定义趋势的API编写聚合函数。