fix for yacy-banner-network-values

http://forum.yacy-websuche.de/viewtopic.php?f=6&t=2521

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6659 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
sixcooler 15 years ago
parent 945e0ba5a5
commit e071d71f19

@ -192,22 +192,28 @@ public class MapDataMining extends MapHeap {
assert (key.length() > 0);
assert (newMap != null);
super.put(key, newMap);
// update sortCluster
if (sortClusterMap != null) updateSortCluster(key, newMap);
// super.put(key, newMap); // moved down for solving yacy-bar-values - needed to be before the other stuff?
//
// // update sortCluster
// if (sortClusterMap != null) updateSortCluster(key, newMap);
// update elementCount
if ((longaccfields != null) || (doubleaccfields != null)) {
final Map<String, String> oldMap = super.get(key, false);
if (oldMap != null) {
// element exists, update acc
if ((longaccfields != null) || (doubleaccfields != null)) updateAcc(oldMap, false);
// if ((longaccfields != null) || (doubleaccfields != null)) updateAcc(oldMap, false); // we already checked this - don't we?
updateAcc(oldMap, false);
}
// update accumulators with new values (add)
updateAcc(newMap, true);
}
super.put(key, newMap);
// update sortCluster
if (sortClusterMap != null) updateSortCluster(key, newMap);
}
private void updateAcc(final Map<String, String> map, final boolean add) {

Loading…
Cancel
Save