|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.ExpressionEvaluator
Top level filter expression evaluator implemenation.
Constructor Summary | |
ExpressionEvaluator(BTreePartition db,
OidRegistry oidRegistry,
AttributeTypeRegistry attributeTypeRegistry)
Creates a top level Evaluator where leaves are delegated to a leaf node evaluator which will be created. |
|
ExpressionEvaluator(LeafEvaluator leafEvaluator)
Creates a top level Evaluator where leaves are delegated to a leaf node evaluator which is already provided. |
Method Summary | |
boolean |
evaluate(ExprNode node,
IndexRecord record)
Evaluates a candidate to determine if a filter expression selects it. |
LeafEvaluator |
getLeafEvaluator()
Gets the leaf evaluator used by this top level expression evaluator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpressionEvaluator(LeafEvaluator leafEvaluator)
leafEvaluator
- handles leaf node evaluation.public ExpressionEvaluator(BTreePartition db, OidRegistry oidRegistry, AttributeTypeRegistry attributeTypeRegistry)
db
- the database this evaluator operates uponoidRegistry
- the oid reg used for attrID to oid resolutionattributeTypeRegistry
- the attribtype reg used for value comparisonMethod Detail |
public LeafEvaluator getLeafEvaluator()
public boolean evaluate(ExprNode node, IndexRecord record) throws javax.naming.NamingException
Evaluator
evaluate
in interface Evaluator
node
- the filter expression to evaluate on the candidaterecord
- the index record of the entry to evaluate
javax.naming.NamingException
- if there is a database fault during evaluationEvaluator.evaluate(ExprNode, IndexRecord)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |