Class NotConstraint
- java.lang.Object
-
- org.apache.jackrabbit.core.query.lucene.constraint.NotConstraint
-
- All Implemented Interfaces:
Constraint
public class NotConstraint extends Object implements Constraint
NotConstraintimplements a NOT constraint.
-
-
Constructor Summary
Constructors Constructor Description NotConstraint(Constraint constraint)Creates a new NOT constraint with the givenconstraintas its operand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanevaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context)Evaluates this constraint for the given row.
-
-
-
Constructor Detail
-
NotConstraint
public NotConstraint(Constraint constraint)
Creates a new NOT constraint with the givenconstraintas its operand.- Parameters:
constraint- the operand.
-
-
Method Detail
-
evaluate
public boolean evaluate(ScoreNode[] row, Name[] selectorNames, EvaluationContext context) throws IOException
Evaluates this constraint for the given row.- Specified by:
evaluatein interfaceConstraint- Parameters:
row- the current row of score nodes.selectorNames- the selector names associated withrow.context- the evaluation context.- Returns:
trueif the row satisfies the constraint,falseotherwise.- Throws:
IOException- if an error occurs while evaluating the constraint.
-
-