net.sf.saffron.runtime
Class CalcIterator

java.lang.Object
  |
  +--net.sf.saffron.runtime.CalcIterator
All Implemented Interfaces:
Iterator

public abstract class CalcIterator
extends Object
implements Iterator

CalcIterator is an abstract base for iterator implementations generated by IterCalcRel.


Field Summary
protected  Iterator inputIterator
           
protected  Object nextRow
           
 
Constructor Summary
protected CalcIterator(Iterator inputIterator)
          Constructor.
 
Method Summary
protected abstract  Object calcNext()
          Method to be implemented by subclasses to calculate next row.
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputIterator

protected Iterator inputIterator

nextRow

protected Object nextRow
Constructor Detail

CalcIterator

protected CalcIterator(Iterator inputIterator)
Constructor.

Parameters:
inputIterator - iterator producing results to be transformed
Method Detail

next

public Object next()
Specified by:
next in interface Iterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

calcNext

protected abstract Object calcNext()
Method to be implemented by subclasses to calculate next row.

Returns:
row or null if no more

SourceForge.net_Logo