@Override
            public void receive(Event[] events) {
                EventPrinter.print(events);
                //To convert and print event as a map
                //EventPrinter.print(toMap(events));
            }
The sample demonstrate how to use Siddhi within another Java program.
This sample contains a simple filter query.
modules/siddhi-samples/quick-start-samples/src/main/java/io/siddhi/sample/SimpleFilterSample.java