reworked mergeVerticalData... not actually working
This commit is contained in:
@@ -21,6 +21,7 @@ public class ThreadMapUtil
|
||||
public static final ConcurrentMap<String, long[]> threadAdjData = new ConcurrentHashMap();
|
||||
|
||||
public static final ConcurrentMap<String, boolean[]> projectionMap = new ConcurrentHashMap();
|
||||
public static final ConcurrentMap<String, short[]> projectionShortMap = new ConcurrentHashMap();
|
||||
public static final ConcurrentMap<String, int[][]> heightAndDepthMap = new ConcurrentHashMap();
|
||||
public static final ConcurrentMap<String, long[]> singleDataToMergeMap = new ConcurrentHashMap();
|
||||
|
||||
@@ -125,6 +126,14 @@ public class ThreadMapUtil
|
||||
return projectionMap.get(Thread.currentThread().getName());
|
||||
}
|
||||
|
||||
public static short[] getProjectionShort(int size){
|
||||
if(!projectionShortMap.containsKey(Thread.currentThread().getName()) || (projectionShortMap.get(Thread.currentThread().getName()) == null) || (projectionShortMap.get(Thread.currentThread().getName()).length != size))
|
||||
{
|
||||
projectionShortMap.put(Thread.currentThread().getName(), new short[size]);
|
||||
}
|
||||
return projectionShortMap.get(Thread.currentThread().getName());
|
||||
}
|
||||
|
||||
public static int[][] getHeightAndDepth(int size){
|
||||
if(!heightAndDepthMap.containsKey(Thread.currentThread().getName()) || (heightAndDepthMap.get(Thread.currentThread().getName()) == null) || (heightAndDepthMap.get(Thread.currentThread().getName()).length != size))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user