org.knime.core.data
Interface DataTable

All Superinterfaces:
Iterable<DataRow>
All Known Subinterfaces:
BufferedDataTable.KnowsRowCountTable, DataArray
All Known Implementing Classes:
AffineTransTable, AppendedColumnTable, AppendedRowsTable, ARFFTable, BasisFunctionLearnerTable, BufferedDataTable, CombinedTable, ConcatenateTable, ContainerTable, DefaultDataArray, DefaultTable, FileReaderPreviewTable, FileTable, FilterColumnTable, FilterRowTable, FrequentItemSetTable, FuzzyHierarchyFilterRowContainer, JoinedTable, JoinedTable, MissingValueHandlingTable, NominalTable, RearrangeColumnsTable, ReplacedColumnsTable, RowFilterTable, SortedTable, StatisticsTable, TableSpecReplacerTable, WrappedTable

public interface DataTable
extends Iterable<DataRow>

Most general data interface in table structure with a fixed number of columns and iterable rows (no random access).

Each DataTable is a read-only container of DataRow elements which are returned by the RowIterator. Each row must have the same number of DataCell elements (columns), is read-only, and must provide a unique row identifier. A table also contains a DataTableSpec member which provides information about the structure of the table. The DataTableSpec consists of DataColumnSpecs which contain information about the column, e.g. name, type, and possible values etc.

Author:
Thomas Gabriel, University of Konstanz
See Also:
DataCell, DataRow, RowIterator

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.
 

Method Detail

getDataTableSpec

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

Returns:
the DataTableSpec of this table

iterator

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

Specified by:
iterator in interface Iterable<DataRow>
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.