|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.partition.impl.btree.NoDupsEnumeration
public class NoDupsEnumeration
A simple NamingEnumeration over a TupleBrowser on a table that does not allow duplicates.
WARNING: The Tuple returned by this listing is always the same instance object returned every time. It is reused to for the sake of efficency rather than creating a new tuple for each hasMore() call.
| Constructor Summary | |
|---|---|
NoDupsEnumeration(TupleBrowser browser,
boolean doAscendingScan)
Creates a cursor over a TupleBrowser where duplicates are not expected. |
|
| Method Summary | |
|---|---|
void |
close()
Sets hasNext to false. |
boolean |
doAscendingScan()
Gets the direction of this NamingEnumeration. |
boolean |
hasMore()
|
boolean |
hasMoreElements()
Calls hasMore. |
java.lang.Object |
next()
Returns the same Tuple every time but with different key/value pairs. |
java.lang.Object |
nextElement()
Returns the same Tuple every time but with different key/value pairs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NoDupsEnumeration(TupleBrowser browser,
boolean doAscendingScan)
throws javax.naming.NamingException
javax.naming.NamingException| Method Detail |
|---|
public java.lang.Object next()
throws javax.naming.NamingException
next in interface javax.naming.NamingEnumerationjavax.naming.NamingExceptionNamingEnumeration.next()public java.lang.Object nextElement()
nextElement in interface java.util.EnumerationEnumeration.nextElement()public boolean hasMore()
hasMore in interface javax.naming.NamingEnumerationNamingEnumeration.hasMore()public boolean hasMoreElements()
hasMoreElements in interface java.util.EnumerationEnumeration.hasMoreElements()public void close()
close in interface javax.naming.NamingEnumerationNamingEnumeration.close()public boolean doAscendingScan()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||