|
||||||||||
| 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.Buffer.FromFileIterator
org.knime.core.data.container.BufferFromFileIteratorVersion20
final class BufferFromFileIteratorVersion20
File iterator to read stream written by a Buffer.
| Nested Class Summary | |
|---|---|
(package private) static class |
BufferFromFileIteratorVersion20.DataCellStreamReader
Utility class that separates the logic of reading DataCells from the stream. |
| Field Summary |
|---|
| Fields inherited from interface org.knime.core.data.container.KNIMEStreamConstants |
|---|
BYTE_ROW_SEPARATOR, BYTE_TYPE_MISSING, BYTE_TYPE_SERIALIZATION, BYTE_TYPE_START, DUMMY_ROW_KEY, TC_ESCAPE, TC_TERMINATE |
| Constructor Summary | |
|---|---|
BufferFromFileIteratorVersion20(Buffer buffer)
Inits iterator, opens input stream. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this iterator. |
protected void |
finalize()
|
boolean |
hasNext()
Returns true if there are more rows and false
otherwise. |
BlobSupportDataRow |
next()
Returns the next DataRow. |
(package private) boolean |
performClose()
Called when the stream closing should take place. |
| 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 |
|---|
BufferFromFileIteratorVersion20(Buffer buffer)
throws IOException
buffer - The associated buffer.
IOException - If stream reading fails.| Method Detail |
|---|
public boolean hasNext()
true if there are more rows and false
otherwise.
hasNext in interface Iterator<DataRow>hasNext in class RowIteratortrue if the iterator has more elements, otherwise
falseRowIterator.next()public BlobSupportDataRow next()
DataRow.
next in interface Iterator<DataRow>next in class Buffer.FromFileIteratorDataTable
boolean performClose()
throws IOException
performClose in class Buffer.FromFileIteratorIOException - If closing fails.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
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||