diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-01 22:45:55 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-12-01 22:45:55 +0100 |
commit | 6a9681d7f3e42f29bd1d9de9fe9c271489b0c886 (patch) | |
tree | 227e5c3f2e1fcae248e0daf85735358b06971e33 /searchlib | |
parent | 1eb22cc4a24973f52b344c3033cff394c724cbe4 (diff) |
Use well defined order where we output text and generate config. Makes config stable and simple tests predictable.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/abi-spec.json | 1 | ||||
-rwxr-xr-x | searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/ExpressionFunction.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/searchlib/abi-spec.json b/searchlib/abi-spec.json index 16c1b2c0e7d..5413907e967 100644 --- a/searchlib/abi-spec.json +++ b/searchlib/abi-spec.json @@ -277,6 +277,7 @@ "public java.util.List arguments()", "public com.yahoo.searchlib.rankingexpression.RankingExpression getBody()", "public java.util.Map argumentTypes()", + "public com.yahoo.tensor.TensorType getArgumentType(java.lang.String)", "public java.util.Optional returnType()", "public com.yahoo.searchlib.rankingexpression.ExpressionFunction withName(java.lang.String)", "public com.yahoo.searchlib.rankingexpression.ExpressionFunction withBody(com.yahoo.searchlib.rankingexpression.RankingExpression)", diff --git a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/ExpressionFunction.java b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/ExpressionFunction.java index 241a53fb458..171151bfdf4 100755 --- a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/ExpressionFunction.java +++ b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/ExpressionFunction.java @@ -83,6 +83,7 @@ public class ExpressionFunction { /** Returns the types of the arguments of this, if specified. The keys of this may be any subset of the arguments */ public Map<String, TensorType> argumentTypes() { return argumentTypes; } + public TensorType getArgumentType(String argumentName) { return argumentTypes.get(argumentName); } /** Returns the return type of this, or empty if not specified */ public Optional<TensorType> returnType() { return returnType; } |