org.apache.ldap.server.db
Interface Evaluator
- All Known Implementing Classes:
- ExpressionEvaluator, LeafEvaluator, ScopeEvaluator, SubstringEvaluator
- public interface Evaluator
Tests if an entry is eligable for return by evaluating a filter expression on
the candidate. The evaluation can proceed by applying the filter on the
attributes of the entry itself or indices can be used for rapid evaluation.
- Version:
- $Rev: 159259 $
- Author:
- Apache Directory Project
Method Summary |
boolean |
evaluate(org.apache.ldap.common.filter.ExprNode node,
IndexRecord record)
Evaluates a candidate to determine if a filter expression selects it. |
evaluate
public boolean evaluate(org.apache.ldap.common.filter.ExprNode node,
IndexRecord record)
throws javax.naming.NamingException
- Evaluates a candidate to determine if a filter expression selects it.
- Parameters:
node
- the filter expression to evaluate on the candidaterecord
- the index record of the entry to evaluate
- Returns:
- true if the filter selects the candidate false otherwise
- Throws:
javax.naming.NamingException
- if there is a database fault during evaluation
Copyright © 2002-2005 . All Rights Reserved.