org.knime.core.data.container
Interface RowAppender

All Known Implementing Classes:
BufferedDataContainer, DataContainer

public interface RowAppender

This is a very simple interface that allows adding DataRows to a DataTable, DataContainer, or anything else.

Author:
Thorsten Meinl, University of Konstanz

Method Summary
 void addRowToTable(DataRow row)
          Appends a row to the end of a container.
 

Method Detail

addRowToTable

void addRowToTable(DataRow row)
Appends a row to the end of a container. The row must comply with the settings in the DataTableSpec that has been set when the container or table has been constructed.

Parameters:
row - DataRow to be added
Throws:
NullPointerException - if the argument is null
IllegalStateException - If the state forbids to add rows.
IllegalArgumentException - if the structure of the row forbids to add it to the table
DataContainerException - An IllegalArgumentException may also be wrapped in a DataContainerException if the writing takes place asynchronously. This exception may be caused by the writing of a row that was added previously (not necessarily the current argument). This exception may also indicate the interruption of a write process.
DuplicateKeyException - If the row's key has already been added.


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
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.