public int size() {
        return stateHolder.getState().eventHolder.size();
    }
In-memory event table implementation of SiddhiQL.
modules/siddhi-core/src/main/java/io/siddhi/core/table/InMemoryTable.java