org.knime.base.node.parallel.appender
Class CombinedTable

java.lang.Object
  extended by org.knime.base.node.parallel.appender.CombinedTable
All Implemented Interfaces:
Iterable<DataRow>, DataTable

 class CombinedTable
extends Object
implements DataTable

Simples helper table whose iterator just concatenates all the tables passed in the constructor. The implementation does not check if the row keys in the passed tables are unique, so you have to assure that by yourself!

Author:
Thorsten Meinl, University of Konstanz

Constructor Summary
CombinedTable(DataTable... tables)
          Creates a new combined table.
 
Method Summary
 DataTableSpec getDataTableSpec()
          Returns the DataTableSpec object of this table which gives information about the structure of this data table.
 RowIterator iterator()
          Returns a row iterator which returns each row one-by-one from the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CombinedTable

public CombinedTable(DataTable... tables)
Creates a new combined table.

Parameters:
tables - the tables to combine
Method Detail

getDataTableSpec

public DataTableSpec getDataTableSpec()
Returns the DataTableSpec object of this table which gives information about the structure of this data table.

Specified by:
getDataTableSpec in interface DataTable
Returns:
the DataTableSpec of this table

iterator

public RowIterator iterator()
Returns a row iterator which returns each row one-by-one from the table.

Specified by:
iterator in interface Iterable<DataRow>
Specified by:
iterator in interface DataTable
Returns:
row iterator
See Also:
DataRow


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.