public class OneLevelScopeEvaluator<E> extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
| 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(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn,
IndexEntry<?,String> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
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.
|
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public OneLevelScopeEvaluator(Store db, org.apache.directory.api.ldap.model.filter.ScopeNode node)
node - the scope nodedb - the database used to evaluate scope nodepublic boolean evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>candidate - the candidate entryorg.apache.directory.api.ldap.model.exception.LdapException - if there are faults during evaluationpublic boolean evaluate(org.apache.directory.server.core.api.partition.PartitionTxn partitionTxn, IndexEntry<?,String> indexEntry) throws org.apache.directory.api.ldap.model.exception.LdapException
evaluate in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>partitionTxn - The transaction to useindexEntry - the index record of the entry to evaluateorg.apache.directory.api.ldap.model.exception.LdapException - if there are faults during evaluationpublic org.apache.directory.api.ldap.model.filter.ScopeNode getExpression()
EvaluatorgetExpression in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>public String getBaseId()
public boolean isDereferencing()
public String toString(String tabs)
EvaluatortoString in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>tabs - The tabs to add before the evaluatorObject.toString()public String toString()
toString in class ObjectObject.toString()Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.