org.apache.directory.server.core.partition.impl.btree
Class ExpressionEnumerator

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.ExpressionEnumerator
All Implemented Interfaces:
Enumerator

public class ExpressionEnumerator
extends java.lang.Object
implements Enumerator

Enumerates over candidates that satisfy a filter expression.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
ExpressionEnumerator(BTreePartition db, AttributeTypeRegistry attributeTypeRegistry, ExpressionEvaluator evaluator)
          Creates an expression tree enumerator.
 
Method Summary
 javax.naming.NamingEnumeration enumerate(ExprNode node)
          Creates an enumeration to enumerate through the set of candidates satisfying a filter expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionEnumerator

public ExpressionEnumerator(BTreePartition db,
                            AttributeTypeRegistry attributeTypeRegistry,
                            ExpressionEvaluator evaluator)
Creates an expression tree enumerator.

Parameters:
db - database used by this enumerator
evaluator -
Method Detail

enumerate

public javax.naming.NamingEnumeration enumerate(ExprNode node)
                                         throws javax.naming.NamingException
Creates an enumeration to enumerate through the set of candidates satisfying a filter expression.

Specified by:
enumerate in interface Enumerator
Parameters:
node - a filter expression root
Returns:
an enumeration over the
Throws:
javax.naming.NamingException - if database access fails