public abstract class CloseableRowIterator extends RowIterator implements Closeable
row iteratorthat can be closed in order to save resources. Iterator of this class are returned by tables created with a
BufferedDataContainer, which typically read from file. If the iterator is not pushed to the end of the table, the input stream is not closed, which can cause system failures. This iterator allows the user to close the stream early on (before reaching the end of the table in which case the stream is closed anyway).
|Constructor and Description|
|Modifier and Type||Method and Description|
Closes this iterator.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public abstract void close()
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).
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.