|
||||||||||
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.DisjunctionEnumeration
public class DisjunctionEnumeration
A Cursor of Cursors performing a union on all underlying Cursors resulting in the disjunction of expressions represented by the constituant child Cursors. This cursor prefetches underlying Cursor values so that it can comply with the defined Cursor semantics.
Constructor Summary | |
---|---|
DisjunctionEnumeration(javax.naming.NamingEnumeration[] children)
Creates a DisjunctionEnumeration over a set of child NamingEnumerations. |
Method Summary | |
---|---|
void |
close()
Closes all the underlying Cursors and not fail fast. |
boolean |
hasMore()
Tests if a prefetched value exists and a call to advance will hence succeed. |
boolean |
hasMoreElements()
|
java.lang.Object |
next()
Advances this Cursor one position. |
java.lang.Object |
nextElement()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DisjunctionEnumeration(javax.naming.NamingEnumeration[] children) throws javax.naming.NamingException
children
- array of child NamingInstances
javax.naming.NamingException
- if something goes wrongMethod Detail |
---|
public java.lang.Object nextElement()
nextElement
in interface java.util.Enumeration
Enumeration.nextElement()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
Enumeration.hasMoreElements()
public java.lang.Object next() throws javax.naming.NamingException
next
in interface javax.naming.NamingEnumeration
javax.naming.NamingException
- if an error occurspublic boolean hasMore()
hasMore
in interface javax.naming.NamingEnumeration
public void close() throws javax.naming.NamingException
close
in interface javax.naming.NamingEnumeration
javax.naming.NamingException
- if we cannot close all enumerations
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |