public void restore(Map<String, Object> state) {
            if (outputExpectsExpiredEvents || findToBeExecuted) {
                expiredEventQueue.clear();
                expiredEventQueue.restore((SnapshotStateList) state.get("ExpiredEventQueue"));
            }
            resetEvent = (StreamEvent) state.get("ResetEvent");
        }
Implementation of {@link WindowProcessor} which represent a Batch Window that aggregate batch of incoming events
together.
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/BatchWindowProcessor.java