public abstract class RelationStreamIterator extends java.lang.Object implements RelationIterator
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_internalNextCalled |
protected Tuple |
m_nextTuple |
protected java.util.List<Tuple> |
m_outputTuples |
| Constructor and Description |
|---|
RelationStreamIterator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
protected abstract Tuple |
internalNext()
Method that must be implemented by every non-abstract
relation; it returns the next tuple
of the enumeration, if any.
|
Tuple |
next() |
void |
remove() |
void |
reset()
Resets the enumeration of tuples, i.e.
|
protected java.util.List<Tuple> m_outputTuples
protected Tuple m_nextTuple
protected boolean m_internalNextCalled
public final boolean hasNext()
hasNext in interface java.util.Iterator<Tuple>protected abstract Tuple internalNext()
next and
hasNext use the return value of internalNext
and additionally remove any duplicate tuples from the output
enumeration. Hence a call to next may result in
multiple calls to the relation's internalNext, if
the tuples returned are already part of the result (this is
especially true of Projections.public final void remove()
remove in interface java.util.Iterator<Tuple>public void reset()
reset in interface RelationIteratorCopyright © Sylvain HallĂ©. All Rights Reserved.