From e071d71f19a40e9c08710abf3c4ec8988584f87f Mon Sep 17 00:00:00 2001 From: sixcooler Date: Tue, 9 Feb 2010 18:22:36 +0000 Subject: [PATCH] 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 --- source/net/yacy/kelondro/blob/MapDataMining.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/source/net/yacy/kelondro/blob/MapDataMining.java b/source/net/yacy/kelondro/blob/MapDataMining.java index 0a6d51a0f..645b96425 100644 --- a/source/net/yacy/kelondro/blob/MapDataMining.java +++ b/source/net/yacy/kelondro/blob/MapDataMining.java @@ -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 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 map, final boolean add) {