|
||||||||||
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.FileRowIterator
class FileRowIterator
Row iterator for the FileTable
.
The iterator provides a method
RowIterator
Constructor Summary | |
---|---|
FileRowIterator(FileReaderSettings frSettings,
DataTableSpec tableSpec,
boolean[] skipColumns,
ExecutionContext exec)
The RowIterator for the FileTable. |
Method Summary | |
---|---|
void |
dispose()
Call this before releasing the last reference to this iterator. |
protected void |
finalize()
|
String |
getZipEntryName()
|
boolean |
hasNext()
Returns true if there are more rows and false
otherwise. |
boolean |
iteratorEndedEarly()
The settings allow for specifying a maximum number of rows. |
DataRow |
next()
Returns the next DataRow . |
boolean |
zippedSourceHasMoreEntries()
If the source read was a ZIP archive this method tests if there are more than one entry in the archive. |
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 |
---|
FileRowIterator(FileReaderSettings frSettings, DataTableSpec tableSpec, boolean[] skipColumns, ExecutionContext exec) throws IOException
frSettings
- object containing the wheres and hows to read the datatableSpec
- the spec defining the structure of the rows to create
(the result spec after applying the next argument
'skipColumns')skipColumns
- array with the element set to true if the
corresponding column should be skipped (i.e. read but not be
included in the row). The array must have the length of the
'original' column number (in the file), the specified table
spec is the new one (with less columns).exec
- the execution context to report the progress to
IOException
- if it couldn't open the data fileMethod 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
public boolean iteratorEndedEarly()
hasNext()
method returned false
.
hasNext()
returned false).public boolean zippedSourceHasMoreEntries()
public String getZipEntryName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |