org.apache.directory.server.core.partition.impl.btree.jdbm
Class BTreeTupleEnumeration
java.lang.Object
org.apache.directory.server.core.partition.impl.btree.jdbm.BTreeTupleEnumeration
- All Implemented Interfaces:
- java.util.Enumeration, javax.naming.NamingEnumeration
- public class BTreeTupleEnumeration
- extends java.lang.Object
- implements javax.naming.NamingEnumeration
A NamingEnumeration that returns underlying keys in a BTree as values for a
single key within a Tuple. This is used specifically for situations when tables
support duplicate keys and a BTree is used for storing the values for that
key. This enumeration thus advances a browser forwards or reverse returning
keys from a BTree as Tuple values. The key provided in the constructor is always
returned as the key of the Tuple.
WARNING: The tuple returned is reused every time for efficiency and populated
a over and over again with the new value. The key never changes.
- Version:
- $Rev$
- Author:
- Apache Directory Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
close
public void close()
throws javax.naming.NamingException
- Specified by:
close
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
hasMore
public boolean hasMore()
throws javax.naming.NamingException
- Specified by:
hasMore
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
next
public java.lang.Object next()
throws javax.naming.NamingException
- Specified by:
next
in interface javax.naming.NamingEnumeration
- Throws:
javax.naming.NamingException
hasMoreElements
public boolean hasMoreElements()
- Specified by:
hasMoreElements
in interface java.util.Enumeration
nextElement
public java.lang.Object nextElement()
- Specified by:
nextElement
in interface java.util.Enumeration