@Override
protected Object reduce(Map<Integer, Object> map) {
MapEntrySet resultSet = new MapEntrySet();
CacheService service = getService();
for (Map.Entry<Integer, Object> entry : map.entrySet()) {
MapEntrySet mapEntrySet = (MapEntrySet) service.toObject(entry.getValue());
Set<Map.Entry<Data, Data>> entrySet = mapEntrySet.getEntrySet();
for (Map.Entry<Data, Data> dataEntry : entrySet) {
resultSet.add(dataEntry);
}
}