public interface Evaluator<N extends org.apache.directory.shared.ldap.filter.ExprNode,E,ID>
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IndexEntry<?,E,ID> entry)
Evaluates a candidate to determine if a filter expression selects it.
|
boolean |
evaluateEntry(E entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluateId(ID id)
Evaluates whether or not a candidate, specified by an id, satisfies the
expression associated with this Evaluator .
|
N |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean evaluate(IndexEntry<?,E,ID> entry) throws Exception
entry
- the index record of the entry to evaluateException
- if there are faults during evaluationboolean evaluateId(ID id) throws Exception
id
- the identifier for the candidate entryException
- if there are faults during evaluationboolean evaluateEntry(E entry) throws Exception
entry
- the candidate entryException
- if there are faults during evaluationN getExpression()
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.