Class FunctionReferenceContext
java.lang.Object
com.yahoo.searchlib.rankingexpression.rule.FunctionReferenceContext
- Direct Known Subclasses:
SerializationContext
The context of a function invocation.
- Author:
- bratseth
-
Constructor Summary
ModifierConstructorDescriptionCreate a context for a single serialization taskprotected
FunctionReferenceContext
(com.google.common.collect.ImmutableMap<String, ExpressionFunction> functions, Map<String, String> bindings) Deprecated, for removal: This API element is subject to removal in a future version.FunctionReferenceContext
(Collection<ExpressionFunction> functions) Create a context for a single serialization taskFunctionReferenceContext
(Collection<ExpressionFunction> functions, Map<String, String> bindings) FunctionReferenceContext
(Map<String, ExpressionFunction> functions) Create a context for a single serialization taskFunctionReferenceContext
(Map<String, ExpressionFunction> functions, Map<String, String> bindings) Create a context for a single serialization task -
Method Summary
Modifier and TypeMethodDescriptionprotected com.google.common.collect.ImmutableMap<String,
ExpressionFunction> Deprecated, for removal: This API element is subject to removal in a future version.UsegetFunctions()
insteadgetBinding
(String name) Returns the resolution of an identifier, or null if it isn't defined in this contextgetFunction
(String name) Returns a function or null if it isn't defined in this contextprotected Map<String,
ExpressionFunction> withBindings
(Map<String, String> bindings) Returns a new context with the bindings replaced by the given bindingsReturns a fresh context without bindings
-
Constructor Details
-
FunctionReferenceContext
public FunctionReferenceContext()Create a context for a single serialization task -
FunctionReferenceContext
Create a context for a single serialization task -
FunctionReferenceContext
public FunctionReferenceContext(Collection<ExpressionFunction> functions, Map<String, String> bindings) -
FunctionReferenceContext
Create a context for a single serialization task -
FunctionReferenceContext
public FunctionReferenceContext(Map<String, ExpressionFunction> functions, Map<String, String> bindings) Create a context for a single serialization task -
FunctionReferenceContext
@Deprecated(forRemoval=true, since="7") protected FunctionReferenceContext(com.google.common.collect.ImmutableMap<String, ExpressionFunction> functions, Map<String, String> bindings) Deprecated, for removal: This API element is subject to removal in a future version.UseFunctionReferenceContext(Map, Map)
instead
-
-
Method Details
-
getFunction
Returns a function or null if it isn't defined in this context -
functions
@Deprecated(forRemoval=true, since="7") protected com.google.common.collect.ImmutableMap<String,ExpressionFunction> functions()Deprecated, for removal: This API element is subject to removal in a future version.UsegetFunctions()
instead -
getFunctions
-
getBinding
Returns the resolution of an identifier, or null if it isn't defined in this context -
withBindings
Returns a new context with the bindings replaced by the given bindings -
withoutBindings
Returns a fresh context without bindings
-
FunctionReferenceContext(Map, Map)
instead