@Override
            public void receive(Event[] events) {
                EventPrinter.print(events);
            }
The sample demonstrate how to use Siddhi partitions within another Java program.
This calculates sum of price from the last two events of each symbol.
modules/siddhi-samples/quick-start-samples/src/main/java/io/siddhi/sample/PartitionSample.java