@Override
        public boolean canDestroy() {
            return set.isEmpty();
        }
This map aggregates the count per each distinct element
modules/siddhi-core/src/main/java/io/siddhi/core/query/selector/attribute/aggregator/UnionSetAttributeAggregatorExecutor.java