문제

Is there anyway to relate the output of an Esper EventBean object back to the original EPStatement that produced the result using Java?

I have a number of EPStatements defined that use the @Name annotation but I noticed that this value is not present in the resulting EventBean. I need this value so I can uniquely identify the EventBeans that are produced.

Alternatively, is there is some way to attach an additional field that will be present in a resulting EventBean object after Esper outputs a result? This would also work for my use case.

도움이 되었습니까?

해결책

There is a StatementAwareUpdateListener interface that delivers the statement object together with EventBean output.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top