@Override
        public void restore(Map<String, Object> state) {
            countMap = (ConcurrentHashMap<String, LossyCount>) state.get("CountMap");
            countMap = (ConcurrentHashMap<String, LossyCount>) state.get("Map");
            totalCount = (Integer) state.get("TotalCount");
            currentBucketId = (Double) state.get("CurrentBucketId");
        }
Inner class to keep the lossy count
modules/siddhi-core/src/main/java/io/siddhi/core/query/processor/stream/window/LossyFrequentWindowProcessor.java