org.knime.base.node.mine.subgroupminer.freqitemset
Class FrequentItemSetTable

java.lang.Object
  extended by org.knime.base.node.mine.subgroupminer.freqitemset.FrequentItemSetTable
All Implemented Interfaces:
Iterable<DataRow>, DataTable

public class FrequentItemSetTable
extends Object
implements DataTable

A FrequentItemSetTable adds a sorting functionality to the normal DataTable. This can not be done by the SorterNode, since the rows of a FrequentItemSetTable are of variable length ( the rest is filled with empty cells) and the user is able to sort by itemset length.

Author:
Fabian Dill, University of Konstanz

Nested Class Summary
static class FrequentItemSetTable.Sorter
          the feature the table should be sorted by.
 
Constructor Summary
FrequentItemSetTable(FrequentItemSetRow[] rows, DataTableSpec spec)
          Creates a FrequentItemSetTable out of the passed row array and the given DataTableSpec.
FrequentItemSetTable(List<FrequentItemSetRow> rowList, DataTableSpec spec)
          Creates a FrequentItemSetTable out of the passed row list and the given DataTableSpec.
 
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.
 void sortBy(FrequentItemSetTable.Sorter sorter)
          Sorts the table by the given sorter (support or itemset length).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrequentItemSetTable

public FrequentItemSetTable(FrequentItemSetRow[] rows,
                            DataTableSpec spec)
Creates a FrequentItemSetTable out of the passed row array and the given DataTableSpec.

Parameters:
rows - the rows of this table
spec - the DataTableSpec of this Table

FrequentItemSetTable

public FrequentItemSetTable(List<FrequentItemSetRow> rowList,
                            DataTableSpec spec)
Creates a FrequentItemSetTable out of the passed row list and the given DataTableSpec.

Parameters:
rowList - the rows of this table
spec - the DataTableSpec of this table
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

sortBy

public void sortBy(FrequentItemSetTable.Sorter sorter)
Sorts the table by the given sorter (support or itemset length).

Parameters:
sorter - defines by which feature the table should be sorted


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.