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

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.IndexAssertionEnumeration
All Implemented Interfaces:
java.util.Enumeration, javax.naming.NamingEnumeration

public class IndexAssertionEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration

A prefetching NamingEnumeration over an underlying NamingEnumeration which determines if a element should be returned based on a Assertion.

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

Constructor Summary
IndexAssertionEnumeration(javax.naming.NamingEnumeration underlying, IndexAssertion assertion)
           
IndexAssertionEnumeration(javax.naming.NamingEnumeration underlying, IndexAssertion assertion, boolean enableDupCheck)
           
 
Method Summary
 void close()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 java.lang.Object next()
           
 java.lang.Object nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexAssertionEnumeration

public IndexAssertionEnumeration(javax.naming.NamingEnumeration underlying,
                                 IndexAssertion assertion)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException

IndexAssertionEnumeration

public IndexAssertionEnumeration(javax.naming.NamingEnumeration underlying,
                                 IndexAssertion assertion,
                                 boolean enableDupCheck)
                          throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

nextElement

public java.lang.Object nextElement()
Specified by:
nextElement in interface java.util.Enumeration
See Also:
Enumeration.nextElement()

hasMoreElements

public boolean hasMoreElements()
Specified by:
hasMoreElements in interface java.util.Enumeration
See Also:
Enumeration.hasMoreElements()

next

public java.lang.Object next()
                      throws javax.naming.NamingException
Specified by:
next in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException
See Also:
NamingEnumeration.next()

hasMore

public boolean hasMore()
Specified by:
hasMore in interface javax.naming.NamingEnumeration
See Also:
NamingEnumeration.hasMore()

close

public void close()
           throws javax.naming.NamingException
Specified by:
close in interface javax.naming.NamingEnumeration
Throws:
javax.naming.NamingException
See Also:
NamingEnumeration.close()


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