|
|||||||||
| 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. |
Tuple |
next()
Returns the same Tuple every time but with different key/value pairs. |
Tuple |
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 Tuple next()
throws javax.naming.NamingException
next in interface javax.naming.NamingEnumeration<Tuple>javax.naming.NamingExceptionNamingEnumeration.next()public Tuple nextElement()
nextElement in interface java.util.Enumeration<Tuple>Enumeration.nextElement()public boolean hasMore()
hasMore in interface javax.naming.NamingEnumeration<Tuple>NamingEnumeration.hasMore()public boolean hasMoreElements()
hasMoreElements in interface java.util.Enumeration<Tuple>Enumeration.hasMoreElements()public void close()
close in interface javax.naming.NamingEnumeration<Tuple>NamingEnumeration.close()public boolean doAscendingScan()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||