Uses of Class
com.yahoo.searchlib.rankingexpression.rule.ExpressionNode
Packages that use ExpressionNode
Package
Description
Ranking expression execution library, see
RankingExpression
.Ranking expression parser
-
Uses of ExpressionNode in com.yahoo.searchlib.rankingexpression
Methods in com.yahoo.searchlib.rankingexpression that return ExpressionNodeModifier and TypeMethodDescriptionRankingExpression.getRoot()
Returns the root of the expression tree of this expression.Methods in com.yahoo.searchlib.rankingexpression with parameters of type ExpressionNodeModifier and TypeMethodDescriptionvoid
RankingExpression.setRoot
(ExpressionNode root) Sets the root of the expression tree of this expression.Method parameters in com.yahoo.searchlib.rankingexpression with type arguments of type ExpressionNodeModifier and TypeMethodDescriptionExpressionFunction.expand
(SerializationContext context, List<ExpressionNode> argumentValues, Deque<String> path) Creates and returns an instance of this function based on the given arguments.Constructors in com.yahoo.searchlib.rankingexpression with parameters of type ExpressionNodeModifierConstructorDescriptionCreates a ranking expression from an expression root node.RankingExpression
(String name, ExpressionNode root) Creates a named ranking expression from an expression root node. -
Uses of ExpressionNode in com.yahoo.searchlib.rankingexpression.evaluation.gbdtoptimization
Modifier and TypeClassDescriptionclass
An optimized version of a sum of consecutive decision trees.final class
An optimized version of a decision tree. -
Uses of ExpressionNode in com.yahoo.searchlib.rankingexpression.parser
Methods in com.yahoo.searchlib.rankingexpression.parser that return ExpressionNodeModifier and TypeMethodDescriptionfinal ExpressionNode
RankingExpressionParser.arithmeticExpression()
final ExpressionNode
RankingExpressionParser.constantPrimitive
(boolean negate) final ExpressionNode
RankingExpressionParser.expression()
final ExpressionNode
RankingExpressionParser.function()
final ExpressionNode
RankingExpressionParser.rankingExpression()
final ExpressionNode
RankingExpressionParser.value()
Methods in com.yahoo.searchlib.rankingexpression.parser that return types with arguments of type ExpressionNodeModifier and TypeMethodDescriptionfinal List<ExpressionNode>
RankingExpressionParser.args()
final List<ExpressionNode>
RankingExpressionParser.expressionList()
-
Uses of ExpressionNode in com.yahoo.searchlib.rankingexpression.rule
Subclasses of ExpressionNode in com.yahoo.searchlib.rankingexpression.ruleModifier and TypeClassDescriptionfinal class
A binary mathematical operationclass
A node which produces a boolean value when evaluated.class
A node which returns the outcome of a comparison.class
The parent of all node types which contains child nodes.final class
A node which holds a constant (frozen) value.final class
This class represents another expression enclosed in braces.final class
Invocation of a native function.class
A tensor generating function, whose arguments are determined by a tensor typefinal class
A conditional branch of a ranking expression.class
A free, parametrized functionfinal class
An opaque name in a ranking expression.class
A node which flips the sign of the value produced from the nested expressionclass
A node which flips the logical value produced from the nested expression.final class
A node referring either to a value in the context or to a named ranking expression function.class
A node which returns true or false depending on a set membership testclass
A node which performs a tensor functionMethods in com.yahoo.searchlib.rankingexpression.rule that return ExpressionNodeModifier and TypeMethodDescriptionIfNode.getCondition()
IfNode.getFalseExpression()
ComparisonNode.getLeftCondition()
ComparisonNode.getRightCondition()
SetMembershipNode.getTestValue()
The value to check for membership in the setIfNode.getTrueExpression()
EmbracedNode.getValue()
Returns the node enclosed by thisNegativeNode.getValue()
Returns the node creating the value negated by thisNotNode.getValue()
Methods in com.yahoo.searchlib.rankingexpression.rule that return types with arguments of type ExpressionNodeModifier and TypeMethodDescriptionArithmeticNode.children()
ComparisonNode.children()
abstract List<ExpressionNode>
CompositeNode.children()
Returns a read-only list containing the immediate children of this composite.EmbracedNode.children()
FunctionNode.children()
Returns the arguments of thisGeneratorLambdaFunctionNode.children()
IfNode.children()
LambdaFunctionNode.children()
NegativeNode.children()
NotNode.children()
ReferenceNode.children()
Returns an empty list as this has no childrenSetMembershipNode.children()
TensorFunctionNode.children()
Arguments.expressions()
Returns an unmodifiable list of the expressions in this, never nullSetMembershipNode.getSetValues()
Returns an immutable list of the values of the setMethods in com.yahoo.searchlib.rankingexpression.rule with parameters of type ExpressionNodeModifier and TypeMethodDescriptionstatic ArithmeticNode
ArithmeticNode.resolve
(ExpressionNode left, ArithmeticOperator op, ExpressionNode right) TensorFunctionNode.wrap
(ExpressionNode node) static com.yahoo.tensor.functions.ScalarFunction<Reference>
TensorFunctionNode.wrapScalar
(ExpressionNode node) Method parameters in com.yahoo.searchlib.rankingexpression.rule with type arguments of type ExpressionNodeModifier and TypeMethodDescriptionReferenceNode.setArguments
(List<ExpressionNode> arguments) Returns a copy of this where the arguments are replaced by the given argumentsArithmeticNode.setChildren
(List<ExpressionNode> newChildren) ComparisonNode.setChildren
(List<ExpressionNode> children) abstract CompositeNode
CompositeNode.setChildren
(List<ExpressionNode> children) Returns a copy of this where the children is replaced by the given children.EmbracedNode.setChildren
(List<ExpressionNode> newChildren) FunctionNode.setChildren
(List<ExpressionNode> children) Returns a new function node with the children replaced by the given childrenGeneratorLambdaFunctionNode.setChildren
(List<ExpressionNode> children) IfNode.setChildren
(List<ExpressionNode> children) LambdaFunctionNode.setChildren
(List<ExpressionNode> children) NegativeNode.setChildren
(List<ExpressionNode> children) NotNode.setChildren
(List<ExpressionNode> children) ReferenceNode.setChildren
(List<ExpressionNode> newChildren) SetMembershipNode.setChildren
(List<ExpressionNode> children) TensorFunctionNode.setChildren
(List<ExpressionNode> children) TensorFunctionNode.wrapScalars
(Map<com.yahoo.tensor.TensorAddress, ExpressionNode> nodes) Constructors in com.yahoo.searchlib.rankingexpression.rule with parameters of type ExpressionNodeModifierConstructorDescriptionArguments
(ExpressionNode singleArgument) ArithmeticNode
(ExpressionNode leftExpression, ArithmeticOperator operator, ExpressionNode rightExpression) ComparisonNode
(ExpressionNode leftCondition, TruthOperator operator, ExpressionNode rightCondition) EmbracedNode
(ExpressionNode value) Creates a new expression node that embraces another.ExpressionTensorFunction
(ExpressionNode expression) FunctionNode
(Function function, ExpressionNode argument) FunctionNode
(Function function, ExpressionNode argument1, ExpressionNode argument2) Creates a binary function nodeGeneratorLambdaFunctionNode
(com.yahoo.tensor.TensorType type, ExpressionNode generator) IfNode
(ExpressionNode condition, ExpressionNode trueExpression, ExpressionNode falseExpression) IfNode
(ExpressionNode condition, ExpressionNode trueExpression, ExpressionNode falseExpression, Double trueProbability) Creates a new condition node.LambdaFunctionNode
(List<String> arguments, ExpressionNode functionExpression) NegativeNode
(ExpressionNode value) Constructs a new negative nodeNotNode
(ExpressionNode value) SetMembershipNode
(ExpressionNode testValue, List<ExpressionNode> setValues) Constructor parameters in com.yahoo.searchlib.rankingexpression.rule with type arguments of type ExpressionNodeModifierConstructorDescriptionArguments
(List<? extends ExpressionNode> expressions) ArithmeticNode
(List<ExpressionNode> children, List<ArithmeticOperator> operators) ReferenceNode
(String name, List<? extends ExpressionNode> arguments, String output) SetMembershipNode
(ExpressionNode testValue, List<ExpressionNode> setValues) -
Uses of ExpressionNode in com.yahoo.searchlib.rankingexpression.transform
Methods in com.yahoo.searchlib.rankingexpression.transform that return ExpressionNodeModifier and TypeMethodDescriptionConstantDereferencer.transform
(ExpressionNode node, TransformContext context) abstract ExpressionNode
ExpressionTransformer.transform
(ExpressionNode node, CONTEXT context) Transforms an expression node and returns the transformed nodeSimplifier.transform
(ExpressionNode node, TransformContext context) TensorMaxMinTransformer.transform
(ExpressionNode node, CONTEXT context) static ExpressionNode
TensorMaxMinTransformer.transformFunctionNode
(FunctionNode node, com.yahoo.tensor.evaluation.TypeContext<Reference> context) Methods in com.yahoo.searchlib.rankingexpression.transform with parameters of type ExpressionNodeModifier and TypeMethodDescriptionConstantDereferencer.transform
(ExpressionNode node, TransformContext context) abstract ExpressionNode
ExpressionTransformer.transform
(ExpressionNode node, CONTEXT context) Transforms an expression node and returns the transformed nodeSimplifier.transform
(ExpressionNode node, TransformContext context) TensorMaxMinTransformer.transform
(ExpressionNode node, CONTEXT context)