public class CursorBuilder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private Store |
db
The database used by this builder
|
private EvaluatorBuilder |
evaluatorBuilder
Evaluator dependency on a EvaluatorBuilder
|
| Constructor and Description |
|---|
CursorBuilder(Store db,
EvaluatorBuilder evaluatorBuilder)
Creates an expression tree enumerator.
|
| Modifier and Type | Method and Description |
|---|---|
<T> long |
build(org.apache.directory.api.ldap.model.filter.ExprNode node,
PartitionSearchResult searchResult) |
private long |
computeAnd(org.apache.directory.api.ldap.model.filter.AndNode node,
PartitionSearchResult searchResult)
Creates an AndCursor over a conjunction expression branch node.
|
private <T> long |
computeApproximate(org.apache.directory.api.ldap.model.filter.ApproximateNode<T> node,
PartitionSearchResult searchResult)
Computes the set of candidates for an Approximate filter.
|
private <T> long |
computeEquality(org.apache.directory.api.ldap.model.filter.EqualityNode<T> node,
PartitionSearchResult searchResult)
Computes the set of candidates for an Equality filter.
|
private <T> long |
computeGreaterEq(org.apache.directory.api.ldap.model.filter.GreaterEqNode<T> node,
PartitionSearchResult searchResult)
Computes the set of candidates for an GreateEq filter.
|
private <T> long |
computeLessEq(org.apache.directory.api.ldap.model.filter.LessEqNode<T> node,
PartitionSearchResult searchResult)
Computes the set of candidates for an LessEq filter.
|
private long |
computeNot(org.apache.directory.api.ldap.model.filter.NotNode node,
PartitionSearchResult searchResult)
Creates an AndCursor over a conjunction expression branch node.
|
private long |
computeOneLevelScope(org.apache.directory.api.ldap.model.filter.ScopeNode node,
PartitionSearchResult searchResult)
Computes the set of candidates for a OneLevelScope filter.
|
private <T> long |
computeOr(org.apache.directory.api.ldap.model.filter.OrNode node,
PartitionSearchResult searchResult)
Creates a OrCursor over a disjunction expression branch node.
|
private <T> long |
computePresence(org.apache.directory.api.ldap.model.filter.PresenceNode node,
PartitionSearchResult searchResult)
Computes the set of candidates for a Presence filter.
|
private long |
computeSubLevelScope(org.apache.directory.api.ldap.model.filter.ScopeNode node,
PartitionSearchResult searchResult)
Computes the set of candidates for a SubLevelScope filter.
|
private long |
computeSubstring(org.apache.directory.api.ldap.model.filter.SubstringNode node,
PartitionSearchResult searchResult)
Computes the set of candidates for an Substring filter.
|
private Store db
private EvaluatorBuilder evaluatorBuilder
public CursorBuilder(Store db, EvaluatorBuilder evaluatorBuilder)
db - database used by this enumeratorevaluatorBuilder - the evaluator builderpublic <T> long build(org.apache.directory.api.ldap.model.filter.ExprNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computeApproximate(org.apache.directory.api.ldap.model.filter.ApproximateNode<T> node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computeEquality(org.apache.directory.api.ldap.model.filter.EqualityNode<T> node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computeGreaterEq(org.apache.directory.api.ldap.model.filter.GreaterEqNode<T> node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computeLessEq(org.apache.directory.api.ldap.model.filter.LessEqNode<T> node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computePresence(org.apache.directory.api.ldap.model.filter.PresenceNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate long computeOneLevelScope(org.apache.directory.api.ldap.model.filter.ScopeNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate long computeSubLevelScope(org.apache.directory.api.ldap.model.filter.ScopeNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate long computeSubstring(org.apache.directory.api.ldap.model.filter.SubstringNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
java.lang.Exceptionprivate <T> long computeOr(org.apache.directory.api.ldap.model.filter.OrNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
node - the disjunction expression branch nodejava.lang.Exception - on db access failuresprivate long computeAnd(org.apache.directory.api.ldap.model.filter.AndNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
node - a conjunction expression branch nodejava.lang.Exception - on db access failuresprivate long computeNot(org.apache.directory.api.ldap.model.filter.NotNode node,
PartitionSearchResult searchResult)
throws java.lang.Exception
node - a conjunction expression branch nodejava.lang.Exception - on db access failures