public class OneLevelScopeEvaluator<E> extends java.lang.Object implements Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
baseId
The entry identifier of the scope base
|
private Store |
db
the entry db storing entries
|
private boolean |
dereferencing
True if the scope requires alias dereferencing while searching
|
private org.apache.directory.api.ldap.model.filter.ScopeNode |
node
The ScopeNode containing initial search scope constraints
|
| Constructor and Description |
|---|
OneLevelScopeEvaluator(Store db,
org.apache.directory.api.ldap.model.filter.ScopeNode node)
Creates a one level scope node Evaluator for search expressions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
boolean |
evaluate(IndexEntry<?,java.lang.String> indexEntry)
Asserts whether or not a candidate has one level scope while taking
alias dereferencing into account.
|
java.lang.String |
getBaseId()
Gets the id of the search base associated with the ScopeNode expression.
|
org.apache.directory.api.ldap.model.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing()
Gets whether or not dereferencing is enabled for this evaluator.
|
java.lang.String |
toString() |
java.lang.String |
toString(java.lang.String tabs)
Pretty-print an Evaluator
|
private final org.apache.directory.api.ldap.model.filter.ScopeNode node
private final java.lang.String baseId
private final boolean dereferencing
private final Store db
public OneLevelScopeEvaluator(Store db, org.apache.directory.api.ldap.model.filter.ScopeNode node) throws java.lang.Exception
node - the scope nodedb - the database used to evaluate scope nodejava.lang.Exception - on db access failurepublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
throws java.lang.Exception
public boolean evaluate(IndexEntry<?,java.lang.String> indexEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>candidate - the candidate to assertjava.lang.Exception - if db lookups failorg.apache.directory.api.ldap.model.exception.LdapExceptionEvaluator.evaluate(IndexEntry)public org.apache.directory.api.ldap.model.filter.ScopeNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>public java.lang.String getBaseId()
public boolean isDereferencing()
public java.lang.String toString(java.lang.String tabs)
Evaluatorpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()