org.knime.base.node.preproc.columnTrans
Class MinMaxCellFactory

java.lang.Object
  extended by org.knime.base.node.preproc.columnTrans.AbstractMany2OneCellFactory
      extended by org.knime.base.node.preproc.columnTrans.MinMaxCellFactory
All Implemented Interfaces:
CellFactory

public class MinMaxCellFactory
extends AbstractMany2OneCellFactory

Author:
Fabian Dill, University of Konstanz

Constructor Summary
MinMaxCellFactory(DataTableSpec inputSpec, String appendedColumnName, int[] includedColsIndices, boolean max)
           
 
Method Summary
 int findColumnIndex(DataRow row)
          Find the column names to put in the condensed column.
 
Methods inherited from class org.knime.base.node.preproc.columnTrans.AbstractMany2OneCellFactory
getAppendedColumnName, getCells, getColumnSpecs, getIncludedColIndices, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinMaxCellFactory

public MinMaxCellFactory(DataTableSpec inputSpec,
                         String appendedColumnName,
                         int[] includedColsIndices,
                         boolean max)
Parameters:
inputSpec - input spec of the whole table
appendedColumnName - name of the new column
includedColsIndices - indices of columns to condense
max - true if maximum value leads to inclusion
Method Detail

findColumnIndex

public int findColumnIndex(DataRow row)
Find the column names to put in the condensed column.

Specified by:
findColumnIndex in class AbstractMany2OneCellFactory
Parameters:
row - row to search for matching columns
Returns:
matching column names as StringCell array


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.