|
||||||||||
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.BufferFromFileIteratorVersion1x
final class BufferFromFileIteratorVersion1x
(Obsolete) File iterator to read files written by a Buffer
. This
class is used for backward compatibility, it reads all stream written with
KNIME 1.x or the TechPreview of 2.0.
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 | |
---|---|
BufferFromFileIteratorVersion1x(Buffer buffer)
Inits the iterator by opening the 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. |
(package private) static BlobDataCell |
readBlobDataCell(Buffer buffer,
BlobDataCell.BlobAddress blobAddress,
CellClassInfo cl)
Reads the blob from the given blob address. |
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 |
---|
BufferFromFileIteratorVersion1x(Buffer buffer) throws IOException
buffer
- Associated buffer.
IOException
- If stream can't be opened.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 BlobSupportDataRow next()
DataRow
.
next
in interface Iterator<DataRow>
next
in class Buffer.FromFileIterator
DataTable
boolean performClose() throws IOException
performClose
in class Buffer.FromFileIterator
IOException
- 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 Object
Throwable
static BlobDataCell readBlobDataCell(Buffer buffer, BlobDataCell.BlobAddress blobAddress, CellClassInfo cl) throws IOException
buffer
- The owning buffer.blobAddress
- The address to read from.cl
- The expected class.
IOException
- If that fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |