if (node == null || (node != null && node.size() == 0))
continue;
Iterator<String> iter = node.keySet().iterator();
while (iter.hasNext()) {
String entryId = iter.next();
ReportEntry entry = entryConfig.get(entryId);
if (entry == null || (entry != null && entry.isLazy()))
continue;
if (result.get(entryId) == null)
result.put(entryId, new HashMap<String, Object>());
Map<String, Object> content = node.get(entryId);
Iterator<String> keyIter = content.keySet().iterator();
while (keyIter.hasNext()) {
String key = keyIter.next();
Object value = content.get(key);
if (key == null || value == null)
continue;
try {
entry.getReduceClass().reducer(entry, key, value, result.get(entryId), reduceType);
} catch (Throwable e) {
logger.error("reduce error entryName:" + entry.getName() + ", key:" + key + ",value:" + value + "," + entry.getReports().toString(), e);
}
}
}