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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
inputIterator
protected Iterator inputIterator
nextRow
protected Object nextRow
CalcIterator
protected CalcIterator(Iterator inputIterator)
- Constructor.
- Parameters:
inputIterator
- iterator producing results to be transformed
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