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

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

public class BinaryCellFactory
extends AbstractMany2OneCellFactory

Cell with value = 1 matches, others don't.

Author:
Fabian Dill, University of Konstanz

Constructor Summary
BinaryCellFactory(DataTableSpec inputSpec, String appendedColumnName, int[] includedColsIndices)
           
 
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

BinaryCellFactory

public BinaryCellFactory(DataTableSpec inputSpec,
                         String appendedColumnName,
                         int[] includedColsIndices)
Parameters:
inputSpec - input spec of the whole table
appendedColumnName - name of the new column
includedColsIndices - indices of columns to condense
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.