|
||||||||||
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.DefaultOptimizer<E>
public class DefaultOptimizer<E>
Optimizer that annotates the filter using scan counts.
Constructor Summary | |
---|---|
DefaultOptimizer(Store<E> db)
Creates an optimizer on a database. |
Method Summary | |
---|---|
java.lang.Long |
annotate(org.apache.directory.shared.ldap.filter.ExprNode node)
Annotates the expression tree to determine optimal evaluation order based on the scan count for indices that exist for each expression node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultOptimizer(Store<E> db) throws java.lang.Exception
db
- the database this optimizer works for.
java.lang.Exception
Method Detail |
---|
public java.lang.Long annotate(org.apache.directory.shared.ldap.filter.ExprNode node) throws java.lang.Exception
annotate
in interface Optimizer
node
- the root of the expression node tree
java.lang.Exception
- if there are failures while optimizingOptimizer.annotate(ExprNode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |