aboutsummaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2021-12-09 07:30:00 +0100
committerJon Bratseth <bratseth@gmail.com>2021-12-09 07:30:00 +0100
commitccc1235730c483c7367f3ee7a02aa2a24d0804b5 (patch)
treec73ab3707e69010bf9dadf015d9a066e501fd32b /document
parent2853733d3227818dd83e006e63a3c915679a7b53 (diff)
Increase container ideal disk utilization
Diffstat (limited to 'document')
-rw-r--r--document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java b/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
index c950f6b5163..925864b56c9 100644
--- a/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
+++ b/document/src/main/java/com/yahoo/document/DocumentTypeManagerConfigurer.java
@@ -75,15 +75,16 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
}
private static class Apply {
+
public Apply(DocumentmanagerConfig config, DocumentTypeManager manager) {
this.manager = manager;
this.usev8geopositions = config.usev8geopositions();
apply(config);
}
- private Map<Integer, DataType> typesById = new HashMap<>();
- private Map<String, DataType> typesByName = new HashMap<>();
- private Map<Integer, DocumentmanagerConfig.Datatype> configMap = new HashMap<>();
+ private final Map<Integer, DataType> typesById = new HashMap<>();
+ private final Map<String, DataType> typesByName = new HashMap<>();
+ private final Map<Integer, DocumentmanagerConfig.Datatype> configMap = new HashMap<>();
private void inProgress(DataType type) {
var old = typesById.put(type.getId(), type);
@@ -355,7 +356,7 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
}
void createComplexTypes() {
- var toCreate = new ArrayList<Integer>(factoryByIdx.keySet());
+ var toCreate = new ArrayList<>(factoryByIdx.keySet());
for (var dataTypeId : toCreate) {
var type = getOrCreateType(dataTypeId);
assert(type != null);
@@ -363,6 +364,7 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
}
class PerDocTypeData {
+
DocumentmanagerConfig.Doctype docTypeConfig;
DocumentType docType = null;
@@ -518,8 +520,8 @@ public class DocumentTypeManagerConfigurer implements ConfigSubscriber.SingleSub
}
}
- private Map<String, PerDocTypeData> inProgressByName = new HashMap<>();
- private Map<Integer, PerDocTypeData> inProgressById = new HashMap<>();
+ private final Map<String, PerDocTypeData> inProgressByName = new HashMap<>();
+ private final Map<Integer, PerDocTypeData> inProgressById = new HashMap<>();
private void apply(DocumentmanagerConfig config) {
for (var docType : config.doctype()) {