public class SubtreeScopeEvaluator extends Object implements Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
Constructor and Description |
---|
SubtreeScopeEvaluator(PartitionTxn partitionTxn,
Store db,
org.apache.directory.api.ldap.model.filter.ScopeNode node)
Creates a subtree scope node evaluator for search expressions.
|
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(org.apache.directory.api.ldap.model.entry.Entry candidate)
Evaluates whether or not a candidate, satisfies the expression
associated with this Evaluator .
|
boolean |
evaluate(PartitionTxn partitionTxn,
IndexEntry<?,String> indexEntry)
Evaluates a candidate to determine if a filter expression selects it.
|
String |
getBaseId() |
org.apache.directory.api.ldap.model.filter.ScopeNode |
getExpression()
Gets the expression used by this expression Evaluator.
|
boolean |
isDereferencing() |
String |
toString() |
String |
toString(String tabs)
Pretty-print an Evaluator
|
public SubtreeScopeEvaluator(PartitionTxn partitionTxn, Store db, org.apache.directory.api.ldap.model.filter.ScopeNode node) throws org.apache.directory.api.ldap.model.exception.LdapException
partitionTxn
- The transaction to usedb
- the database used to evaluate scope nodenode
- the scope nodeorg.apache.directory.api.ldap.model.exception.LdapException
- on db access failurepublic boolean evaluate(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 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 org.apache.directory.api.ldap.model.filter.ScopeNode getExpression()
getExpression
in interface Evaluator<org.apache.directory.api.ldap.model.filter.ScopeNode>
public boolean isDereferencing()
public String toString(String tabs)
Evaluator
toString
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 Object
Object.toString()
Copyright © 2003–2023 The Apache Software Foundation. All rights reserved.