summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2021-01-10 12:40:27 +0100
committerJon Marius Venstad <venstad@gmail.com>2021-01-10 12:40:27 +0100
commit472de63dd01cb24a576d76b46322e25d9b1aa5b7 (patch)
treed992dc8bb1107f69550578cd3990387f49a2c3ea
parent2f28c5bf5877a119022f6e6251e1ebd6af257b85 (diff)
Update abi spec
-rw-r--r--container-search/abi-spec.json13
-rw-r--r--container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java2
2 files changed, 15 insertions, 0 deletions
diff --git a/container-search/abi-spec.json b/container-search/abi-spec.json
index 1980566b490..b639cdf548f 100644
--- a/container-search/abi-spec.json
+++ b/container-search/abi-spec.json
@@ -5619,6 +5619,19 @@
],
"fields": []
},
+ "com.yahoo.search.query.profile.CompoundNameChildCache": {
+ "superClass": "java.lang.Object",
+ "interfaces": [],
+ "attributes": [
+ "public",
+ "final"
+ ],
+ "methods": [
+ "public void <init>()",
+ "public com.yahoo.processing.request.CompoundName append(com.yahoo.processing.request.CompoundName, java.lang.String)"
+ ],
+ "fields": []
+ },
"com.yahoo.search.query.profile.CopyOnWriteContent": {
"superClass": "com.yahoo.component.provider.FreezableClass",
"interfaces": [
diff --git a/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java b/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java
index bc23db3871e..4163e45ae61 100644
--- a/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java
+++ b/container-search/src/main/java/com/yahoo/search/query/profile/CompoundNameChildCache.java
@@ -8,6 +8,8 @@ import java.util.Map;
/**
* Cache for compound names created through {@link CompoundName#append(String)}.
+ * Creating new {@link CompoundName}s can be expensive, and since they are immutable, they
+ * are safe to cache and reuse. Use this if you will create <em>a lot</em> of them, by appending suffixes.
*
* @author jonmv
*/