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

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

public class IndexEnumeration
extends java.lang.Object
implements javax.naming.NamingEnumeration<IndexRecord>

A NamingEnumeration over an Index which returns IndexRecords.

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

Constructor Summary
IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list)
           
IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list, boolean swapKeyVal)
           
IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list, boolean swapKeyVal, java.util.regex.Pattern regex)
           
 
Method Summary
 void close()
           
 boolean hasMore()
           
 boolean hasMoreElements()
           
 IndexRecord next()
           
 IndexRecord nextElement()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexEnumeration

public IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

IndexEnumeration

public IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list,
                        boolean swapKeyVal)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

IndexEnumeration

public IndexEnumeration(javax.naming.NamingEnumeration<Tuple> list,
                        boolean swapKeyVal,
                        java.util.regex.Pattern regex)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException
Method Detail

next

public IndexRecord next()
                 throws javax.naming.NamingException
Specified by:
next in interface javax.naming.NamingEnumeration<IndexRecord>
Throws:
javax.naming.NamingException
See Also:
NamingEnumeration.next()

nextElement

public IndexRecord nextElement()
Specified by:
nextElement in interface java.util.Enumeration<IndexRecord>
See Also:
Enumeration.nextElement()

hasMore

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

hasMoreElements

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

close

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


Copyright © 2003-2007 The Apache Software Foundation. All Rights Reserved.