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

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

public class RegExpCellFactory
extends AbstractMany2OneCellFactory

Author:
Fabian Dill, University of Konstanz

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

RegExpCellFactory

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