org.apache.jackrabbit.core.query.lucene.constraint
Class AndConstraint
java.lang.Object
org.apache.jackrabbit.core.query.lucene.constraint.AndConstraint
- All Implemented Interfaces:
- Constraint
public class AndConstraint
- extends Object
- implements Constraint
AndConstraint
implements an AND constraint.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndConstraint
public AndConstraint(Constraint left,
Constraint right)
- Creates a new AND constraint.
- Parameters:
left
- the left operand.right
- the right operand.
evaluate
public boolean evaluate(ScoreNode[] row,
Name[] selectorNames,
EvaluationContext context)
throws IOException
- Evaluates this constraint for the given row.
- Specified by:
evaluate
in interface Constraint
- Parameters:
row
- the current row of score nodes.selectorNames
- the selector names associated with row
.context
- the evaluation context.
- Returns:
true
if the row satisfies the constraint,
false
otherwise.
- Throws:
IOException
- if an error occurs while evaluating the constraint.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.