Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.embl.ebi.escience.baclava
Class JoinIterator  view JoinIterator download JoinIterator.java

java.lang.Object
  extended byorg.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.


Field Summary
private  java.lang.Object[] currentState
           
private  boolean emptyIterator
           
private  boolean initialized
           
private  BaclavaIterator[] iterators
           
private  boolean nextState
           
 
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
 

Field Detail

emptyIterator

private boolean emptyIterator

iterators

private BaclavaIterator[] iterators

nextState

private boolean nextState

currentState

private java.lang.Object[] currentState

initialized

private boolean initialized
Constructor Detail

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

Method Detail

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