org.knime.base.data.filter.row
Class FilterRowTable

java.lang.Object
  extended by org.knime.base.data.filter.row.FilterRowTable
All Implemented Interfaces:
Iterable<DataRow>, DataTable

public class FilterRowTable
extends Object
implements DataTable

This class filters a given number of rows from a DataTable using the FilterRowGenerator interface to check the criteria.

Author:
Thomas Gabriel, University of Konstanz
See Also:
FilterRowGenerator

Constructor Summary
FilterRowTable(DataTable data, FilterRowGenerator gen)
          Creates a new row filter table by wraping the given data 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

FilterRowTable

public FilterRowTable(DataTable data,
                      FilterRowGenerator gen)
Creates a new row filter table by wraping the given data table. The filter row generator is used to check if each row from the iteration belongs is included in this table.

Parameters:
data - the underlying data table
gen - the filter row generator
Throws:
NullPointerException - if one of the arguments is null
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.