|
||||||||||
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.base.node.io.filereader.FileReaderPreviewRowIterator
class FileReaderPreviewRowIterator
The iterator for the
FileReaderPreviewTable
. Wraps
the iterator of the underlying file table. Catches exceptions thrown by the
underlying iterator, returns an "error row" instead and will end the table.
If an error occurres it sets an error message in the underlying table.
Constructor Summary | |
---|---|
FileReaderPreviewRowIterator(FileRowIterator rowIterator,
FileReaderPreviewTable previewTable)
A new non-failing file row iterator. |
Method Summary | |
---|---|
void |
dispose()
Call this before releasing the last reference to this iterator. |
protected void |
finalize()
|
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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
FileReaderPreviewRowIterator(FileRowIterator rowIterator, FileReaderPreviewTable previewTable)
rowIterator
- the row iterator to wrappreviewTable
- the corresponding table this is the iterator from.
Needed to pull the sprc from for creating the row in case of
an error/exception and to tell the table an error occurred.Method Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public void dispose()
next()
after disposing of the iterator has undefined behavior.
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |