cep - Esper: "time_order" seems not working -
cep - Esper: "time_order" seems not working -
i'm using esper (the event processing engine), epl query is:
select * event.ext:time_order(timestamp_event, 10000 minutes) duration > 10 but output not ordered "timestamp_event":
id int = 1, timestamp_event= 1412686800000, duration = 30 id int = 4, timestamp_event= 1412685900000, duration = 70 id int = 2, timestamp_event= 1412688600000, duration = 45 id int = 3, timestamp_event= 1412689500000, duration = 60 id int = 5, timestamp_event= 1412636400000, duration = 15 why not "time_order(timestamp_event, 10000 minutes)" instruction work?
i think problem on esper configuration, let's consider simple query:
select * event.win:time(10 sec) order id_event this code of "upate" method of updatelistener:
public void update(eventbean[] newevents, eventbean[] oldevents) { eventbean event = newevents[0]; system.out.println("id int = " + event.get("id_event") + ", timestamp_event = " + ((long)event.get("timestamp_event")).tostring()); but output non ordered "id_event"!
id event = 1, timestamp_event = 1412686800000 id event = 4, timestamp_event = 1412687700000 id event = 2, timestamp_event = 1412687100000 id event = 3, timestamp_event = 1412687400000 id event = 5, timestamp_event = 1412688000000 it seems neither "order by" instruction doesn't work, how possible?
the documentation says select rstream events leaving ordered , not events entering. see http://esper.codehaus.org/esper-5.0.0/doc/reference/en-us/html_single/index.html#view-time-order
cep esper epl
Comments
Post a Comment