minor fix
This commit is contained in:
parent
9e68cbb283
commit
feaf9b0adc
@ -297,14 +297,9 @@ public class Datahandler {
|
|||||||
selectUpdate = secondaryIterator;
|
selectUpdate = secondaryIterator;
|
||||||
secondaryIterator += iteratorCap;
|
secondaryIterator += iteratorCap;
|
||||||
}
|
}
|
||||||
final ConcurrentMap<Integer, String> getStringCacheMap = new MapMaker().concurrencyLevel(2).makeMap();
|
String getStringCacheStr = stringCachelocal.get(selectUpdate);
|
||||||
for (int i = 0; i < iteratorCap; i++) {
|
|
||||||
getStringCacheMap.put(i, stringCachelocal.get(selectUpdate));
|
|
||||||
selectUpdate++;
|
|
||||||
}
|
|
||||||
ConcurrentMap<Integer, SimilarityMatrix> matrixUpdateMap = new MapMaker().concurrencyLevel(2).makeMap();
|
ConcurrentMap<Integer, SimilarityMatrix> matrixUpdateMap = new MapMaker().concurrencyLevel(2).makeMap();
|
||||||
ConcurrentMap<Integer, Future<SimilarityMatrix>> futures = new MapMaker().concurrencyLevel(2).makeMap();
|
ConcurrentMap<Integer, Future<SimilarityMatrix>> futures = new MapMaker().concurrencyLevel(2).makeMap();
|
||||||
getStringCacheMap.values().forEach((getStringCacheStr) -> {
|
|
||||||
stringCachelocal.values().forEach((str1) -> {
|
stringCachelocal.values().forEach((str1) -> {
|
||||||
if (!getStringCacheStr.equals(str1)) {
|
if (!getStringCacheStr.equals(str1)) {
|
||||||
boolean present = false;
|
boolean present = false;
|
||||||
@ -361,7 +356,7 @@ public class Datahandler {
|
|||||||
matrixUpdateMap.put(matrixUpdateMap.size() + 1, SMX);
|
matrixUpdateMap.put(matrixUpdateMap.size() + 1, SMX);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
new Thread(() -> {
|
new Thread(() -> {
|
||||||
try {
|
try {
|
||||||
if (!matrixUpdateMap.isEmpty()) {
|
if (!matrixUpdateMap.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user