public class DefaultOptimizer<E,ID> extends Object implements Optimizer
Constructor and Description |
---|
DefaultOptimizer(Store<E,ID> db)
Creates an optimizer on a database.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public Long annotate(org.apache.directory.shared.ldap.filter.ExprNode node) throws Exception
annotate
in interface Optimizer
node
- the root of the expression node treeException
- if there are failures while optimizingOptimizer.annotate(ExprNode)
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.