|
|||||||||
| 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.TupleEnumeration
public class TupleEnumeration
A NamingEnumeration that returns underlying Iterator values for a single key as Tuples.
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.
| Constructor Summary | |
|---|---|
TupleEnumeration(java.lang.Object key,
java.util.Iterator<? extends java.lang.Object> iterator)
Creates a cursor over an Iterator of single key's values |
|
| Method Summary | |
|---|---|
void |
close()
|
boolean |
hasMore()
Checks if another value is available. |
boolean |
hasMoreElements()
Checks if another value is available. |
Tuple |
next()
Gets the next value as a Tuple. |
Tuple |
nextElement()
Gets the next value as a Tuple. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TupleEnumeration(java.lang.Object key,
java.util.Iterator<? extends java.lang.Object> iterator)
key - the keys whose duplicate values are to be returnediterator - the underlying iterator this cursor uses| Method Detail |
|---|
public Tuple next()
next in interface javax.naming.NamingEnumeration<Tuple>NamingEnumeration.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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||