Package com.yahoo.searchlib.treenet.rule
Class SetMembershipCondition
java.lang.Object
com.yahoo.searchlib.treenet.rule.TreeNode
com.yahoo.searchlib.treenet.rule.Condition
com.yahoo.searchlib.treenet.rule.SetMembershipCondition
Represents a set membership test on the form
feature IN (integer1, integer2 ...)
- Since:
- 5.1.21
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the ranking expression string for the condition part of this condition, i.e the ...Returns the unmodifiable set of values to checkMethods inherited from class com.yahoo.searchlib.treenet.rule.Condition
getFalseLabel, getLeftValue, getTrueLabel, toRankingExpression
-
Constructor Details
-
SetMembershipCondition
public SetMembershipCondition(String testValue, List<Object> setValues, String trueLabel, String falseLabel) Constructs a new instance of this class.- Parameters:
testValue
- the name of the feature to testsetValues
- the set of values to compare totrueLabel
- the label to jump to if the value is in the setfalseLabel
- the label to jumt to if the value is not in the set
-
-
Method Details
-
getSetValues
Returns the unmodifiable set of values to check -
conditionToRankingExpression
Description copied from class:Condition
Returns the ranking expression string for the condition part of this condition, i.e the ... part ofif(leftValue ..., trueExpression, falseExpression)
- Specified by:
conditionToRankingExpression
in classCondition
-