org.apache.directory.server.core.partition.impl.btree
Class IndexEnumeration<T>

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

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

A NamingEnumeration over an Index which returns IndexRecords.

Version:
$Rev: 640657 $
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()
           
 IndexEntry next()
           
 IndexEntry 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 IndexEntry next()
                throws javax.naming.NamingException
Specified by:
next in interface javax.naming.NamingEnumeration<IndexEntry>
Throws:
javax.naming.NamingException
See Also:
NamingEnumeration.next()

nextElement

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

hasMore

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

hasMoreElements

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

close

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


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