diff options
author | Jon Bratseth <bratseth@oath.com> | 2019-06-12 18:49:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 18:49:11 +0200 |
commit | cee1c3a3804d5d3c25407b3c4ac64228e9d194e3 (patch) | |
tree | dd62faee06cd29d5820f9bc33a488be55a6ceef8 /config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java | |
parent | 5311e389929c05707856697e73db61b6acee3c5a (diff) |
Require constant() for large constants and fix a type resolving bug (#9769)
* Require constant() for large constants and fix a type resolving bug
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
* Remove noise
Diffstat (limited to 'config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java b/config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java index 2c0e1eaa56a..630c8644eb1 100644 --- a/config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java +++ b/config-model/src/main/java/com/yahoo/searchdefinition/expressiontransforms/RankProfileTransformContext.java @@ -24,19 +24,17 @@ public class RankProfileTransformContext extends TransformContext { private final ImportedMlModels importedModels; private final Map<String, RankProfile.RankingExpressionFunction> inlineFunctions; private final Map<String, String> rankProperties = new HashMap<>(); - private final MapEvaluationTypeContext types; public RankProfileTransformContext(RankProfile rankProfile, QueryProfileRegistry queryProfiles, ImportedMlModels importedModels, Map<String, Value> constants, Map<String, RankProfile.RankingExpressionFunction> inlineFunctions) { - super(constants); + super(constants, rankProfile.typeContext(queryProfiles)); this.rankProfile = rankProfile; this.queryProfiles = queryProfiles; this.importedModels = importedModels; this.inlineFunctions = inlineFunctions; - this.types = rankProfile.typeContext(queryProfiles); } public RankProfile rankProfile() { return rankProfile; } @@ -45,10 +43,4 @@ public class RankProfileTransformContext extends TransformContext { public Map<String, RankProfile.RankingExpressionFunction> inlineFunctions() { return inlineFunctions; } public Map<String, String> rankProperties() { return rankProperties; } - /** - * Returns the types known in this context. We may have type information for references - * for which no value is available - */ - public MapEvaluationTypeContext types() { return types; } - } |