|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.RowIterator
org.knime.core.data.container.CloseableRowIterator
org.knime.core.data.container.JoinTableIterator
class JoinTableIterator
Internal iterator class that concatenates two rows. The iterator assumes that both underlying iterators return the row keys in the same order. No check is done.
Constructor Summary | |
---|---|
JoinTableIterator(CloseableRowIterator itReference,
CloseableRowIterator itAppended,
int[] map,
boolean[] flags)
Creates new iterator based on two iterators. |
Method Summary | |
---|---|
void |
close()
Closes this iterator. |
boolean |
hasNext()
Returns true if there are more rows and false
otherwise. |
DataRow |
next()
Returns the next DataRow . |
Methods inherited from class org.knime.core.data.RowIterator |
---|
remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
JoinTableIterator(CloseableRowIterator itReference, CloseableRowIterator itAppended, int[] map, boolean[] flags)
itReference
- The reference iterator, providing the keys, e.g.itAppended
- The row to be appended.map
- The internal map which columns are contributed from what
iteratorflags
- The flags from which row to use.Method Detail |
---|
public boolean hasNext()
true
if there are more rows and false
otherwise.
hasNext
in interface Iterator<DataRow>
hasNext
in class RowIterator
true
if the iterator has more elements, otherwise
false
RowIterator.next()
public DataRow next()
DataRow
.
next
in interface Iterator<DataRow>
next
in class RowIterator
DataTable
public void close()
RowIterator.hasNext()
will return false
. This method does not need to be called
if the iterator was pushed to the end (stream will be closed
automatically). It's meant to be used in cases where the iterator might
not advance to the end of the table.
This method does nothing if the table is already closed (multiple invocations are ignored).
close
in class CloseableRowIterator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |