public StreamEvent getStreamEvent(int position) {
        return streamEvents[position];
    }
Implementation of StateEvent to be used when executing join/pattern queries
modules/siddhi-core/src/main/java/io/siddhi/core/event/state/StateEvent.java