| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> |
evaluators
The list of evaluators associated with each of the children
|
private org.apache.directory.api.ldap.model.filter.AndNode |
node
The AndNode
|
| Constructor and Description |
|---|
AndEvaluator(org.apache.directory.api.ldap.model.filter.AndNode node,
java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> evaluators)
Creates an instance of AndEvaluator
|
| Modifier and Type | Method and Description |
|---|---|
private java.lang.String |
dumpEvaluators(java.lang.String tabs)
Dumps the evaluators
|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry entry)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluate(IndexEntry<?,java.lang.String> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
org.apache.directory.api.ldap.model.filter.AndNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
private java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> |
optimize(java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> unoptimized)
Takes a set of Evaluators and copies then sorts them in a new list with
increasing scan counts on their expression nodes.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs)
Pretty-print an Evaluator
|
private final java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> evaluators
private final org.apache.directory.api.ldap.model.filter.AndNode node
public AndEvaluator(org.apache.directory.api.ldap.model.filter.AndNode node,
java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> evaluators)
node - The And Nodeevaluators - The list of evaluators for all the contaned nodesprivate java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> optimize(java.util.List<Evaluator<? extends org.apache.directory.api.ldap.model.filter.ExprNode>> unoptimized)
unoptimized - the unoptimized list of Evaluatorspublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry entry)
throws java.lang.Exception
public boolean evaluate(IndexEntry<?,java.lang.String> indexEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
public org.apache.directory.api.ldap.model.filter.AndNode getExpression()
getExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.AndNode>private java.lang.String dumpEvaluators(java.lang.String tabs)
public java.lang.String toString(java.lang.String tabs)
Evaluatorpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()