ignore null values in tags
This commit is contained in:
@@ -86,12 +86,14 @@ public class DataStore {
|
|||||||
|
|
||||||
final String value = tags.getValue(key);
|
final String value = tags.getValue(key);
|
||||||
|
|
||||||
|
if (value != null) {
|
||||||
final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList());
|
final IntList docIds = valueToDocIds.computeIfAbsent(value, v -> new IntList());
|
||||||
synchronized (docIds) {
|
synchronized (docIds) {
|
||||||
docIds.add(docId);
|
docIds.add(docId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void trimIntLists() {
|
private void trimIntLists() {
|
||||||
final long start = System.nanoTime();
|
final long start = System.nanoTime();
|
||||||
|
|||||||
Reference in New Issue
Block a user