I have a tuple:
public class mytuple
{
private int status;
private int userid;
private int location;
private int count1;
private int count2;
// corresponding getter settrs included.
}
I create two esper statements EPL:
select mytuple.userid as userid, sum(count1) as count1, sum(count2) as count2
from eventStream where mytuple.status = -1
group by userid, location;
and another EPL statement:
select mytuple.userid as userid, sum(count1) as count1, sum(count2) as count2
from eventStream where mytuple.status = 1
group by userid, location;
The event streams are registered inside the configuration.
The issue i am facing is , on the two events being sent out.. one as status= -1 and another as status = +1, I get an incremental count of +2 on first EPL statement.
However, if only one event is being sent, the streams work perfectly. Is there any thing that I am missing here??
Assuming the fact that I have a seperate listener to the Esper view which was created.