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

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

public class SubstringEnumerator
extends java.lang.Object
implements Enumerator

Enumerator that creates a NamingEnumeration over the set of candidates that satisfy a substring filter expression.

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

Constructor Summary
SubstringEnumerator(BTreePartition db, AttributeTypeRegistry attributeTypeRegistry, SubstringEvaluator evaluator)
          Creates a SubstringEnumerator for a database.
 
Method Summary
 javax.naming.NamingEnumeration enumerate(org.apache.directory.shared.ldap.filter.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

SubstringEnumerator

public SubstringEnumerator(BTreePartition db,
                           AttributeTypeRegistry attributeTypeRegistry,
                           SubstringEvaluator evaluator)
Creates a SubstringEnumerator for a database.

Parameters:
db - the database
evaluator - a substring evaluator
Method Detail

enumerate

public javax.naming.NamingEnumeration enumerate(org.apache.directory.shared.ldap.filter.ExprNode node)
                                         throws javax.naming.NamingException
Description copied from interface: Enumerator
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
See Also:
Enumerator.enumerate( org.apache.directory.shared.ldap.filter.ExprNode)


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