|
||||||||||
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.base.data.filter.column.CloseableFilterColumnRowIterator
final class CloseableFilterColumnRowIterator
Filter column row iterator needed to wrap the filter column's original row iterator. In contrast to the FilterColumnRowIterator this iterator is closeable.
FilterColumnTable
Constructor Summary | |
---|---|
CloseableFilterColumnRowIterator(CloseableRowIterator it,
int[] columns)
Creates a new filter iterator using the original row iterator and an array of column indices. |
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 |
---|
CloseableFilterColumnRowIterator(CloseableRowIterator it, int[] columns)
it
- the original row iteratorcolumns
- an array of column indicesMethod 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 |