aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-01-10 12:23:57 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-01-10 12:23:57 +0100
commita0a55270b4b370238ee949eef62c9c69e82fd76b (patch)
treece5fe04ee748eb4ea9812523fa87d0e5d53a629e /container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java
parenta8fcb9a0eadd03887fb8efd1602c00e71ed9b261 (diff)
Clean up
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java')
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java b/container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java
index 40e22e8bcb5..b24bf1195eb 100644
--- a/container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java
+++ b/container-search/src/main/java/com/yahoo/search/query/profile/AllValuesQueryProfileVisitor.java
@@ -16,7 +16,7 @@ final class AllValuesQueryProfileVisitor extends PrefixQueryProfileVisitor {
private final Map<String, ValueWithSource> values = new HashMap<>();
/* Lists all values starting at prefix */
- public AllValuesQueryProfileVisitor(CompoundName prefix, Map<CompoundName, Map<String, CompoundName>> pathCache) {
+ public AllValuesQueryProfileVisitor(CompoundName prefix, CompoundNameChildCache pathCache) {
super(prefix, pathCache);
}
@@ -43,7 +43,7 @@ final class AllValuesQueryProfileVisitor extends PrefixQueryProfileVisitor {
QueryProfile owner,
DimensionValues variant,
DimensionBinding binding) {
- CompoundName fullName = cache.computeIfAbsent(currentPrefix, __ -> new HashMap<>()).computeIfAbsent(key, currentPrefix::append);
+ CompoundName fullName = cache.append(currentPrefix, key);
ValueWithSource existing = values.get(fullName.toString());