关于具有esper CEP的match_recognize语法的问题

问题描述 投票:0回答:1

使用esper进行CEP查询时,我使用match_recognize语法。我注意到,在匹配某些事件之后,它将在以后的比赛中忽略它们。例如,如果使用简单的以下模式:

select * from Event
match_recognize (
measures A as a, B as b, C as c
pattern (A B C)
)

它将与流中的事件编号1,2和3匹配。之后,它将匹配事件编号4,5和6。但是我希望它匹配1,2,3,然后匹配事件编号2,3,4,然后匹配3,4,5,依此类推(当然,我会稍后添加更多条件)。是否可以对此语法进行一些简单的调整?

complex-event-processing esper
1个回答
0
投票

请看语法中的after match skipdoc link

match_recognize (
  ...
  after match skip to current row
  pattern (...)
)
© www.soinside.com 2019 - 2024. All rights reserved.