Search code examples
javaperformancebigdataesper

esper fixed window based on event starting time


I am using Esper for Aggregating my Sensor Data. Data may arrive in any interval i.e. 1 seconds to 120 seconds. Each data point contains TimeStamp and Value.

I want Min TimeStamp, Max TimeStamp, Average value and Count of data points in 30 min window. Start point and end point of 30 min window is fixed i.e. 01:00 am to 01:30 am, 01:30 am to 02:00 am, etc

How can I achieve this using Esper ?


Solution

  • Externally-timed batch window (win:ext_timed_batch) should work for you. But its available from Esper 4.8.0 I think http://esper.codehaus.org/esper-4.8.0/doc/reference/en-US/html_single/index.html#view-win-ext-time-batch