public class ApproximateEvaluator<T,ID> extends Object implements Evaluator<org.apache.directory.shared.ldap.filter.ApproximateNode<T>,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
Constructor and Description |
---|
ApproximateEvaluator(org.apache.directory.shared.ldap.filter.ApproximateNode<T> node,
Store<org.apache.directory.shared.ldap.entry.ServerEntry,ID> db,
org.apache.directory.shared.ldap.schema.SchemaManager schemaManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
boolean |
evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry 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 .
|
org.apache.directory.shared.ldap.filter.ApproximateNode<T> |
getExpression()
Gets the expression used by this expression Evaluator.
|
public org.apache.directory.shared.ldap.filter.ApproximateNode<T> getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.ApproximateNode<T>,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
public boolean evaluateEntry(org.apache.directory.shared.ldap.entry.ServerEntry entry) throws Exception
Evaluator
evaluateEntry
in interface Evaluator<org.apache.directory.shared.ldap.filter.ApproximateNode<T>,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
entry
- the candidate entryException
- if there are faults during evaluationpublic boolean evaluateId(ID id) throws Exception
Evaluator
evaluateId
in interface Evaluator<org.apache.directory.shared.ldap.filter.ApproximateNode<T>,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
id
- the identifier for the candidate entryException
- if there are faults during evaluationpublic boolean evaluate(IndexEntry<?,org.apache.directory.shared.ldap.entry.ServerEntry,ID> indexEntry) throws Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.ApproximateNode<T>,org.apache.directory.shared.ldap.entry.ServerEntry,ID>
indexEntry
- the index record of the entry to evaluateException
- if there are faults during evaluationCopyright © 2003-2013 Apache Software Foundation. All Rights Reserved.