我来自西班牙,请原谅我的英语,因为我不太擅长语言。这是我的问题。我在 ESPER-EPL 中编程。我想检测自特定日期下午 3 点以来的 6 个事件,但我不知道如何正确执行。我知道我必须在任何运算符中输入代码,但我开始发疯了。你可以帮帮我吗?
@Name("DetectoCambiosPares")
INSERT INTO DetectorPares
SELECT a1.systemNumber, a1.time,a1.events,
a2.systemNumber, a2.time,a2.events,
a3.systemNumber, a3.time,a3.events,
a4.systemNumber, a4.time,a4.events,
a5.systemNumber, a5.time,a5.events,
a6.systemNumber, a6.time,a6.events
FROM PATTERN [every (a1 = RankingProd()->
a2 = RankingProd() ->
a3 = RankingProd() -> timer:interval(2 hours)->
a4 = RankingProd() ->
a5 = RankingProd() ->
a6 = RankingProd())
]
WHERE (a1.systemNumber = a4.systemNumber AND
a2.systemNumber=a5.systemNumber AND
a3.systemNumber=a6.systemNumber)!=TRUE;