|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.baclava.iterator.JoinIterator
public class JoinIterator
Provides an Iterator that iterates over the orthogonal join of a set of BaclavaIterator instances.
| Constructor Summary | |
|---|---|
JoinIterator()
|
|
JoinIterator(ResumableIterator[] 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 | |
|---|---|
int[] |
getCurrentLocation()
Get the current location by appending all the current location arrays of all child iterators |
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 |
void |
reset()
Reset the join iterator to its starting state |
int |
size()
Return the total number of iterations this joinIterator will produce, this is the product of the sizes of all component iterators. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JoinIterator()
public JoinIterator(ResumableIterator[] b)
| Method Detail |
|---|
public int[] getCurrentLocation()
getCurrentLocation in interface ResumableIteratorpublic boolean hasNext()
hasNext in interface java.util.Iterator
public void remove()
throws java.lang.UnsupportedOperationException
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException
public java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementExceptionpublic int size()
size in interface ResumableIteratorpublic void reset()
reset in interface ResumableIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||