|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.xdbm.search.impl.SubstringEvaluator
public class SubstringEvaluator
Evaluates substring filter assertions on an entry.
Constructor Summary | |
---|---|
SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node,
Store<ServerEntry> db,
Registries registries)
Creates a new SubstringEvaluator for substring expressions. |
Method Summary | |
---|---|
boolean |
evaluate(IndexEntry<?,ServerEntry> indexEntry)
Evaluates a candidate to determine if a filter expression selects it. |
boolean |
evaluate(java.lang.Long id)
Evaluates whether or not a candidate, specified by an id, satisfies the expression associated with this Evaluator . |
boolean |
evaluate(ServerEntry entry)
Evaluates whether or not a candidate, satisfies the expression associated with this Evaluator . |
org.apache.directory.shared.ldap.filter.SubstringNode |
getExpression()
Gets the expression used by this expression Evaluator. |
java.util.regex.Pattern |
getPattern()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubstringEvaluator(org.apache.directory.shared.ldap.filter.SubstringNode node, Store<ServerEntry> db, Registries registries) throws java.lang.Exception
node
- the substring expression nodedb
- the database this evaluator usesregistries
- the set of registries
java.lang.Exception
- if there are failures accessing resources and the dbMethod Detail |
---|
public boolean evaluate(IndexEntry<?,ServerEntry> indexEntry) throws java.lang.Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
indexEntry
- the index record of the entry to evaluate
java.lang.Exception
- if there are faults during evaluationpublic boolean evaluate(java.lang.Long id) throws java.lang.Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
id
- the identifier for the candidate entry
java.lang.Exception
- if there are faults during evaluationpublic boolean evaluate(ServerEntry entry) throws java.lang.Exception
Evaluator
evaluate
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
entry
- the candidate entry
java.lang.Exception
- if there are faults during evaluationpublic java.util.regex.Pattern getPattern()
public org.apache.directory.shared.ldap.filter.SubstringNode getExpression()
Evaluator
getExpression
in interface Evaluator<org.apache.directory.shared.ldap.filter.SubstringNode,ServerEntry>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |