org.apache.directory.server.core.partition.impl.btree
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: 434579 $
Author:
Apache Directory Project

Method Summary
 boolean evaluate(org.apache.directory.shared.ldap.filter.ExprNode node, IndexRecord record)
          Evaluates a candidate to determine if a filter expression selects it.
 

Method Detail

evaluate

boolean evaluate(org.apache.directory.shared.ldap.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 candidate
record - 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 © 2003-2010 Apache Software Foundation. All Rights Reserved.