java.lang.Object
org.embl.ebi.escience.baclava.JoinIterator
- All Implemented Interfaces:
- java.util.Iterator
- public class JoinIterator
- extends java.lang.Object
- implements java.util.Iterator
Provides an Iterator that iterates over the orthogonal
join of a set of BaclavaIterator instances.
|
Constructor Summary |
JoinIterator(BaclavaIterator[] b)
The iterator is constructed with an
array of BaclavaIterator instances
and creates an iterator that iterates
over the orthogonal join of this set,
where the iterator at position 0 in the
array is regarded as the outermost one |
|
Method Summary |
boolean |
hasNext()
The join has next if any iterator within it has a next
value of true |
java.lang.Object |
next()
Get an array of objects corresponding to the current next state
of the join of the member iterators |
void |
remove()
Calls to the remove operation are not allowed from this iterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
emptyIterator
private boolean emptyIterator
iterators
private BaclavaIterator[] iterators
nextState
private boolean nextState
currentState
private java.lang.Object[] currentState
initialized
private boolean initialized
JoinIterator
public JoinIterator(BaclavaIterator[] b)
- The iterator is constructed with an
array of BaclavaIterator instances
and creates an iterator that iterates
over the orthogonal join of this set,
where the iterator at position 0 in the
array is regarded as the outermost one
hasNext
public boolean hasNext()
- The join has next if any iterator within it has a next
value of true
- Specified by:
hasNext in interface java.util.Iterator
remove
public void remove()
throws java.lang.UnsupportedOperationException
- Calls to the remove operation are not allowed from this iterator
- Specified by:
remove in interface java.util.Iterator
next
public java.lang.Object next()
throws java.util.NoSuchElementException
- Get an array of objects corresponding to the current next state
of the join of the member iterators
- Specified by:
next in interface java.util.Iterator