|
||||||||||
| 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<ID>
public class SubstringEvaluator<ID extends Comparable<ID>>
Evaluates substring filter assertions on an entry.
| Constructor Summary | |
|---|---|
SubstringEvaluator(org.apache.directory.shared.ldap.model.filter.SubstringNode node,
Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db,
org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager)
Creates a new SubstringEvaluator for substring expressions. |
|
| Method Summary | |
|---|---|
boolean |
evaluate(IndexEntry<?,ID> indexEntry)
Evaluates a candidate to determine if a filter expression selects it. |
boolean |
evaluateEntry(org.apache.directory.shared.ldap.model.entry.Entry entry)
Evaluates whether or not a candidate, satisfies the expression associated with this Evaluator . |
boolean |
evaluateId(ID id)
|
org.apache.directory.shared.ldap.model.filter.SubstringNode |
getExpression()
Gets the expression used by this expression Evaluator. |
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.model.filter.SubstringNode node,
Store<org.apache.directory.shared.ldap.model.entry.Entry,ID> db,
org.apache.directory.shared.ldap.model.schema.SchemaManager schemaManager)
throws Exception
node - the substring expression nodedb - the database this evaluator usesschemaManager - the schema manager
Exception - if there are failures accessing resources and the db| Method Detail |
|---|
public boolean evaluate(IndexEntry<?,ID> indexEntry)
throws Exception
Evaluator
evaluate in interface Evaluator<org.apache.directory.shared.ldap.model.filter.SubstringNode,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>indexEntry - the index record of the entry to evaluate
Exception - if there are faults during evaluation
public boolean evaluateId(ID id)
throws Exception
Exception
public boolean evaluateEntry(org.apache.directory.shared.ldap.model.entry.Entry entry)
throws Exception
Evaluator
evaluateEntry in interface Evaluator<org.apache.directory.shared.ldap.model.filter.SubstringNode,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>entry - the candidate entry
Exception - if there are faults during evaluationpublic Pattern getPattern()
public org.apache.directory.shared.ldap.model.filter.SubstringNode getExpression()
Evaluator
getExpression in interface Evaluator<org.apache.directory.shared.ldap.model.filter.SubstringNode,org.apache.directory.shared.ldap.model.entry.Entry,ID extends Comparable<ID>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||