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
-
public class SetMembershipCondition extends Condition
Represents a set membership test on the formfeature IN (integer1, integer2 ...)
- Since:
- 5.1.21
- Author:
- bratseth
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
conditionToRankingExpression()
Returns the ranking expression string for the condition part of this condition, i.e the ...List<Object>
getSetValues()
Returns the unmodifiable set of values to check-
Methods inherited from class com.yahoo.searchlib.treenet.rule.Condition
getFalseLabel, getLeftValue, getTrueLabel, toRankingExpression
-
-
-
-
Constructor Detail
-
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 Detail
-
conditionToRankingExpression
protected String 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
-
-