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