I'm starting a new stream by using the statement: "insert into middleLayerStream select id, 'response' as constraint from[...]"
Afterwards I'm starting a SELECT-query to the middleLayerStream. In die update-function of my middleLayerStream I want du print out the properties of the stream.
This is my update Function:
public class MiddleLayerListener impplement UpdateListener{
public void update(EventBean[] newEvents, EventBean[] oldEvents){
EventBeant[] event = newEvents[0];
System.out.println(event.getUnderlying());
}
}
When the update-function is called, I don't get the properties but this stetement instead:
{a=MapEventBean eventType=com.espertech.esper.event.map.MapEventType@52500920, b=MapEventBean eventType=com.espertech.esper.event.map.MapEventType@52500920}
How do I get access to the properties?
I just found out, that event is not a simple EventBean but a MapEventBean. Maybe it's because two different types of events (but with the same properties) are inserted into the stream. But how can i handle a MapEventBean and get the properties out of it?
Thank you very much for your help.