org.apache.directory.server.xdbm.search.impl
Class NoOpOptimizer

java.lang.Object
  extended by org.apache.directory.server.xdbm.search.impl.NoOpOptimizer
All Implemented Interfaces:
Optimizer

public class NoOpOptimizer
extends java.lang.Object
implements Optimizer

A do nothing optimizer which labels all nodes with BigInteger.valueOf( Integer.MAX_VALUE ) , instead of actually taking scan counts.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
NoOpOptimizer()
           
 
Method Summary
 java.lang.Long annotate(org.apache.directory.shared.ldap.filter.ExprNode node)
          Annotates the expression node tree for optimized traversal metrics.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpOptimizer

public NoOpOptimizer()
Method Detail

annotate

public java.lang.Long annotate(org.apache.directory.shared.ldap.filter.ExprNode node)
                        throws javax.naming.NamingException
Description copied from interface: Optimizer
Annotates the expression node tree for optimized traversal metrics.

Specified by:
annotate in interface Optimizer
Parameters:
node - the root of the expression node tree
Throws:
javax.naming.NamingException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.