public class DefaultOptimizer extends Object implements Optimizer
Constructor and Description |
---|
DefaultOptimizer(Store db)
Creates an optimizer on a database.
|
Modifier and Type | Method and Description |
---|---|
Long |
annotate(PartitionTxn partitionTxn,
org.apache.directory.api.ldap.model.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 DefaultOptimizer(Store db)
db
- the database this optimizer works for.public Long annotate(PartitionTxn partitionTxn, org.apache.directory.api.ldap.model.filter.ExprNode node) throws org.apache.directory.api.ldap.model.exception.LdapException
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.